cancel
Showing results for 
Search instead for 
Did you mean: 

Can not update option bytes.

musatoff
Associate II
Posted on December 17, 2013 at 20:11

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.0

STM32 ST-LINK Command Line Interface

Connected via SWD.

Device ID:0x411 

Device family :STM32F4xx

Updating option bytes...

Could not update the option bytes!

Option bytes:

RDP         : Level 1

IWDG_SW     : 1

nRST_STOP   : 1

nRST_STDBY  : 1

BOR         : Level 0

WRP         : 0x00000FFF

I 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.

3 REPLIES 3
Posted on December 17, 2013 at 22:50

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?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
musatoff
Associate II
Posted on December 17, 2013 at 23:45

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 Interface

Connected via SWD.

Device ID:0x411 

Device family :STM32F4xx

Full chip erase...

Read out protection is activated

Option bytes:

RDP         : Level 1

IWDG_SW     : 1

nRST_STOP   : 1

nRST_STDBY  : 1

BOR         : Level 0

WRP         : 0x00000FFF

musatoff
Associate II
Posted on December 18, 2013 at 00:00

Solve is to disconnect ST-link and pc board from computer and power for several hours.