changed bootloader back to using the minimal usb stack it came with because I have no idea how to get the bootloader code working with the full MLA HID USB stack
This commit is contained in:
@@ -27,11 +27,15 @@
|
||||
#ifndef MEMORY_
|
||||
#define MEMORY_
|
||||
|
||||
#define APP_FW_MEMORY_OFFSET 0x2080
|
||||
#define APP_FW_MEMORY_OFFSET 0x2000
|
||||
|
||||
#define BOOTLOADER_ENTRYPOINT 0x001C
|
||||
|
||||
#define APP_FW_VERSION_ADDRESS (APP_FW_MEMORY_OFFSET + 0x0016)
|
||||
#define APP_FW_VERSION_ADDRESS (APP_FW_MEMORY_OFFSET + 0x16)
|
||||
|
||||
#define APP_SIGNATURE_ADDRESS (APP_FW_MEMORY_OFFSET + 0x06) //0x1C06 and 0x1C07 contains the "signature" WORD, indicating successful erase/program/verify operation
|
||||
#define APP_SIGNATURE_VALUE 0x600D //leet "GOOD", implying that the erase/program was a success and the bootloader intentionally programmed the APP_SIGNATURE_ADDRESS with this value
|
||||
#define APP_VERSION_ADDRESS APP_FW_VERSION_ADDRESS //0x1C16 and 0x1C17 should contain the application image firmware version number
|
||||
|
||||
#endif /* MEMORY_ */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user