Skip to main content
Associate
September 6, 2024
Question

Not able to update option bytes

  • September 6, 2024
  • 4 replies
  • 1824 views

Hi All,

I am working on STM32H743VITx. Somehow by mistake "readout protection" is being on. RDP level has set to 1. I am trying to set it 0 by ST-Lint utilities (GUI & STM32Programmer both tried). but the message ''Could not set Option bytes!'' appeared. Please Help me out of this. #option-bytes

This topic has been closed for replies.

4 replies

TDK
September 6, 2024

In STM32CubeProgrammer, connect, go to the OB tab, select 0xAA for the RDP, and hit apply.

If that doesn't work, post a screenshot of the error message you receive and the log messages.

 

ST-Link Utilities is deprecated and will not work for recent chips.

"If you feel a post has answered your question, please click ""Accept as Solution""."
TabrezAuthor
Associate
September 9, 2024

This is the error message I get when change to 0xAA for RDP

 

Tabrez_0-1725857271298.png

10:15:52 : UPLOADING OPTION BYTES DATA ...
10:15:52 : Bank : 0x00
10:15:52 : Address : 0x5200201c
10:15:52 : Size : 308 Bytes
10:15:52 : OPTION BYTE PROGRAMMING VERIFICATION:
10:15:52 : Error: Expected value for Option Byte "RDP": 0xAA, found: 0x0
10:15:52 : Error: Option Byte Programming failed Or modified by application after OB_LAUNCH
10:15:52 : Time elapsed during option Bytes configuration: 00:00:00.415

Associate II
October 15, 2024

Did you find any solutions for this? I have the same problem for stm32wb5mm dk

EXUE.2
ST Employee
October 16, 2024

you can use command window in your STM32programmer install folder to execute 'STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe -c port=SWD mode=UR freq=4000 -rdu -hardrst' command to try.

this command is to change RDP to level 0.