cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with FLASH_ReadOutProtection(ENABLE);

jeba
Associate II
Posted on September 21, 2010 at 15:29

Issues with FLASH_ReadOutProtection(ENABLE);

3 REPLIES 3
Posted on May 17, 2011 at 14:08

Sounds very familiar, the only things that worked for me was to cycle the power after ROP is enabled, not resetting. Resetting just got the device locked up as if ROP was active but the flash was blank.

It can be recovered from this state (disabling ROP) using the serial boot loader or the J-Link stm32 utility. Both these methods will erase any code in the flash so post-mortem on why it locks is difficult.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jeba
Associate II
Posted on May 17, 2011 at 14:08

Thanks Clive,

Did not think of power cycling it, since my target is battery powered. With power cycling it worked fine.

Posted on May 17, 2011 at 14:08

Yes, the reset method never worked for me, and I tried a lot of different combinations, delays, etc . I have a serial port attached to a boot loader / monitor application, so I could enable ROP using that with/without JTAG attached.

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