fixed issue with bootloader not correctly reading application version word from program flash memory

This commit is contained in:
2019-08-22 01:02:32 -04:00
parent cb90e4f40a
commit 7dd18d2772
5 changed files with 10 additions and 8 deletions

View File

@@ -168,7 +168,7 @@
<property key="use-iar" value="false"/>
<property key="verbose" value="false"/>
<property key="warning-level" value="-3"/>
<property key="what-to-do" value="ignore"/>
<property key="what-to-do" value="require"/>
</HI-TECH-COMP>
<HI-TECH-LINK>
<property key="additional-options-checksum" value=""/>

View File

@@ -30,8 +30,8 @@
#include "memory.h"
#ifdef LINK_FOR_BOOTLOADER
// only define this if building fw to be used with the bootloader
const uint16_t VersionWord __at(APP_FW_VERSION_ADDRESS) = 0x0100;
// the version word of this application - will be read and displayed by the firmware flash utility
const unsigned int VersionWord __at(APP_FW_VERSION_ADDRESS) = 0x0100;
#endif
void main(void)