2014-02-26 08:46 AM
Hi!
I'm coding for a IAP program using standard procedures as follows://normal startup
JumpAddress = *(__IO uint32_t*) (ApplicationAddress + 4);
Jump_To_Application = (pFunction) JumpAddress;
__set_MSP(*(__IO uint32_t*) ApplicationAddress);
Jump_To_Application();
For firmware update, I can save
JumpAddress
and stack pointer to SRAM variables before programming to flash memory, but for normal startup with RDP activated, I cann't read it from flash.
My question is how can I implement it when Flash Read out Protection is active? (It is OK when RDP is inactive) Do I have to use external memory to save
JumpAddress
and stack pointer?
Thanks!
#iap-rdp
2014-02-26 09:00 AM
Read-out protection does not preclude code running in Flash from reading data in Flash.