Hello!
We some questions about creating a dual image bootloader (in the main memory). We are using for MCU the MSP430F5359/5659 on a custom hardware device. This device uses wireless a wireless medium to upload and upgrade firmware of the device.
We have read the slaa600a document and looked at the MSPboot project and modified it for the MCU. We also made a simple input program (that flashes a led) that the bootloader needs to jump to and flash when needed.
Our first step to manual program the input program and the bootloader and then run the bootloader and jump to te application.
When we run the bootloader (with the debugger) it starts but when we jump to the app space using the TI_MSPBoot_APPMGR_JUMPTOAPP() function the debugger jumps to a wrong address 0x4. It should jump to the app reset vector(0x47FFC).
Both the bootloader and input program use a large data model for 20 pointers.
Does the mspboot work with large pointers? And what could be the reason that when jumping to the input program the program pointer jumps to a wrong address? If more information is needed or code is needed please let us know.
In the bootloader linker file we have made the following memory layout:
/* Flash memory addresses */
/* Download area: 87FFF-48000*/
/* App area : 10000-47FFF*/
/* Boot area : 8000-FFFF*/
Of course any feedback is appreciated!