cancel
Showing results for 
Search instead for 
Did you mean: 

IAP when Flash RDP?

l9tsong
Associate
Posted on February 26, 2014 at 17:46

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
1 REPLY 1
Posted on February 26, 2014 at 18:00

Read-out protection does not preclude code running in Flash from reading data in Flash.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..