2010-09-21 06:29 AM
Issues with FLASH_ReadOutProtection(ENABLE);
2011-05-17 05:08 AM
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.2011-05-17 05:08 AM
Thanks Clive,
Did not think of power cycling it, since my target is battery powered. With power cycling it worked fine.2011-05-17 05:08 AM
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.