Other Parts Discussed in Thread: MSPM0L2228
Tool/software:
Hi evrybody.
I am trying to reach to a bootmanager-bootloader-application system.
Bootmanager shall start after reset and decide if the bootloader ar the application shall have the controll after that.
If there is no need for the application change (i.e. no bootloader will be involved), a jump to application shall be made. Otherwise, it shall jump to bootloader.
For this purpose I have have used 2 empty examples. The first one (that i call it bootmanager), is using the provided linker file for gcc environment, and is performin a jump at the adress 0x7000 (where the "application" will be stored). (This jump works, since when I use a function placed via linker at 0x7000, i stepp inside the function - this is just for testing the "jumping" to the proper adress)
Now, in the next step, the "bootmanager" contain only the jump (and the initialization of the MCU provided by example)
The second empty example is linked at adress 0x7000.
after a mass erase, I flash the "bootmanager", and i check the memory. At adress 0x0 it looks ok
In the same time at 0x7000 it is still empty.
Atter I flashh the "application" (i do it via "Load program"): ,
i've got a lot of errors:
I clear the error via the Reset script:
the device is in the reset handler:
and I inspect the memory.
At address 0x7000 looks Ok:
but it look that at address 0x0 it was changed/overwritten:
Any ideeas, why this is hapenning? How can I solve this?
Many thanks,
Ovi