cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F2 : How to Remove Flash Read Protection Level 1 ( Level 1 back to level 0) ?

tranhoanthaidls
Associate
Posted on February 11, 2012 at 07:10

Hello all. I have a trouble with STM32F2 MCU's Read Protection. I've accidentaly activate the Flash Read protection to Protection level 1 ( Option Byte 1 (0x40023c15) = 0xFF ). Now I can not Program the Flash memory any more by JTAG ( I use Lauterbach  & also IAR Debug with Jlink ). & can not change the Flash Option register value.

Please help me how to remove (unprotect) the Read Protection by JTAG or by some other ways? I know that it will cause Flash mass erase but that's not a problem, I can program it again. Thanks a lot for any ideas :)

#stm32f2-flash
2 REPLIES 2
Posted on February 11, 2012 at 13:47

With the STM32F1 the quickest way to remove ROP is to communicate with the System ROM loader with a couple of bytes via the serial port, or use the JlinkSTM32.exe tool. I would try to get a current set of JLink drivers, and see if the tools support the F2 or F4 devices.

http://www.stmcu.org/download/index.php?act=down&id=214

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/CAN Bootloader. Commands with ROP dependece&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=424]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FCAN%20Bootloader.%20Commands%20with%20ROP%20dependece&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=424

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
tranhoanthaidls
Associate
Posted on February 14, 2012 at 05:28

Thanks a lot , clive1, your advice is working, i can remove the RDP now! :)

Best regard!