-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Programs device but reported CRC is wrong.
- Loading branch information
Showing
14 changed files
with
17,441 additions
and
130 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
// bootloader.h | ||
|
||
#define CMD_NOP 0x00 | ||
#define CMD_WRITE_BUFFER 0x01 | ||
#define CMD_READ_BUFFER 0x02 | ||
#define CMD_ERASE_APP_SECTION 0x03 | ||
#define CMD_READ_FLASH_CRCS 0x04 | ||
#define CMD_READ_MCU_IDS 0x05 | ||
#define CMD_READ_FUSES 0x06 | ||
#define CMD_WRITE_PAGE 0x07 | ||
#define CMD_READ_PAGE 0x08 | ||
#define CMD_ERASE_USER_SIG_ROW 0x09 | ||
#define CMD_WRITE_USER_SIG_ROW 0x0A | ||
#define CMD_READ_USER_SIG_ROW 0x0B | ||
#define CMD_NOP 0x00 | ||
#define CMD_RESET_POINTER 0x01 | ||
#define CMD_READ_BUFFER 0x02 | ||
#define CMD_ERASE_APP_SECTION 0x03 | ||
#define CMD_READ_FLASH_CRCS 0x04 | ||
#define CMD_READ_MCU_IDS 0x05 | ||
#define CMD_READ_FUSES 0x06 | ||
#define CMD_WRITE_PAGE 0x07 | ||
#define CMD_READ_PAGE 0x08 | ||
#define CMD_ERASE_USER_SIG_ROW 0x09 | ||
#define CMD_WRITE_USER_SIG_ROW 0x0A | ||
#define CMD_READ_USER_SIG_ROW 0x0B | ||
#define CMD_READ_SERIAL 0x0C | ||
#define CMD_READ_BOOTLOADER_VERSION 0x0D | ||
|
||
|
||
#define APP_SECTION_ERASE_TIMEOUT_MS 2000 | ||
#define APP_SECTION_ERASE_TIMEOUT_MS 100 | ||
#define APP_SECTION_NUM_PAGES 256 | ||
#define APP_SECTION_PAGE_SIZE 512 | ||
#define READ_FLASH_CRCS_TIMEOUT_MS 5000 | ||
|
||
|
||
#define HID_DATA_BYTES 32 | ||
#define HID_DATA_BYTES 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.