2013-12-17 11:11 AM
I use STLink v2 to develop project with STM32. Current project is based on STM32F417 chip. Problem with option bytes stand up unexpectedly. Disconnection STLink from computer and board did not solve problem. I can't to clear option bytes from windows utility ''STM32 ST-LINK Utility.exe'' and from command line utility:
ST-LINK_CLI.exe -OB RDP=0 -rOB STM32 ST-LINK CLI v1.3.0STM32 ST-LINK Command Line Interface
Connected via SWD.Device ID:0x411 Device family :STM32F4xxUpdating option bytes...Could not update the option bytes!Option bytes:RDP : Level 1IWDG_SW : 1nRST_STOP : 1nRST_STDBY : 1BOR : Level 0WRP : 0x00000FFFI had this problem twice and solve it by connecting to STLink board with another chip then 417. But I have not any other board with ST chip now. Get me method to solve this problem.2013-12-17 01:50 PM
Get me method to solve this problem.
I'm not sure that's the most winning strategy here. If RDP is enabled you might need to do a Mass Erase (Chip Erase?). The other alternative open to you is to use the serial port and the System Loader via the Flash Demonstrator, or manually. Check also firmware level on ST-LINK. May be a Segger J-Link can fix it?2013-12-17 02:45 PM
Thank you!
I tried mass erase. I tried update firmware. I use IAR C.STM32 ST-LINK CLI v1.3.0
STM32 ST-LINK Command Line InterfaceConnected via SWD.Device ID:0x411 Device family :STM32F4xxFull chip erase...Read out protection is activatedOption bytes:RDP : Level 1IWDG_SW : 1nRST_STOP : 1nRST_STDBY : 1BOR : Level 0WRP : 0x00000FFF2013-12-17 03:00 PM
Solve is to disconnect ST-link and pc board from computer and power for several hours.