Use the proper "-Wl,--undefined=BootloaderAPI_JumpTable" linker command line parameter in the bootloaders to ensure that the API jump tables are not discarded, rather than the previous C volatile pointer hack (thanks to Opendous Inc.).
This commit is contained in:
1 parent
d619214854
commit
075538abb9
6 files changed
+2
-16
No files matched your search
@@ -99,10 +99,6 @@ static uint16_t EndAddr = 0x0000;
|
||||
*/
|
||||
int main(void)
|
||||
{
|
||||
/* Force a reference to the API jump table to prevent the linker from discarding it */
|
||||
uint8_t* volatile Dummy = BootloaderAPI_JumpTable;
|
||||
(void)Dummy;
|
||||
|
||||
/* Configure hardware required by the bootloader */
|
||||
SetupHardware();
|
||||
|
||||
|
||||
Reference in new issue
Block a user