Bootloader: get uploaded application version from the 4 last bytes of its firmware

This commit is contained in:
Szczepan Zalega
2019-08-24 08:49:31 +02:00
parent 3a1ea275cc
commit 7fddd58704
3 changed files with 8 additions and 9 deletions

View File

@ -46,7 +46,7 @@
#define LAST_ADDR (APPLICATION_END_ADDR-2048 + 8)
#define NEW_FW_VERSION_ADDR (AUTH_WORD_ADDR-8)
#define BOOT_VERSION_PAGE (APPLICATION_END_PAGE)
#define BOOT_VERSION_ADDR (0x08000000 + BOOT_VERSION_PAGE*FLASH_PAGE_SIZE)
#define BOOT_VERSION_ADDR (0x08000000 + BOOT_VERSION_PAGE*FLASH_PAGE_SIZE + 8)
#define LAST_PAGE (APPLICATION_END_PAGE-1)