Part Number: MSPM0G3519
Hi,
I am using MSPM0G3519 Launchpad, By using this I am developing code for firmware upgrade.
I am using custom Bootloader.
I am doing following.
- Bootloader Code: This code runs after reset. Handles Flash copy (Temporary memory to Application Memory). Check whether upgrade requested using a flag at memory 0x00007C00.
2. Application Code: This is the 1st Firmware running . It stays at 0x00008000. It runs after bootloader checks if any valid data present at 0x00008000.
This code receives updates via BLE. the new firmware received is storing in 0x00058000. after completely receiving of the firmware, storing an update flag at location 0x00007C00.
My Expectations:
After Reset, bootloader code will check whether update flag is present in 0x00007C00, if yes then it should copy the data from 0x00058000 to 0x00008000, then it should run the application.
But after reset, I am not getting any data at 0x00058000. Why it is getting erased after Reset?
Is there any settings I need to follow?
In runtime I already checked this by copying the data from 0x00058000 to 0x00008000, it is working fine. Now I want to copy after reseting the board.
Please guide me.
I got stucked at this point.
Thanks