2012-02-10 10:10 PM
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-flash2012-02-11 04:47 AM
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¤tviews=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=4242012-02-13 08:28 PM
Thanks a lot , clive1, your advice is working, i can remove the RDP now! :)
Best regard!