Skip to main content
jeba
Associate II
September 21, 2010
Question

Issues with FLASH_ReadOutProtection(ENABLE);

  • September 21, 2010
  • 3 replies
  • 798 views
Posted on September 21, 2010 at 15:29

Issues with FLASH_ReadOutProtection(ENABLE);

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    May 17, 2011
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    May 17, 2011
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    jeba
    jebaAuthor
    Associate II
    May 17, 2011
    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.