Skip to main content
H.Darwish
Associate II
March 9, 2019
Question

what is the option bytes commands to make the RDP level to 1?

  • March 9, 2019
  • 2 replies
  • 1213 views

Hello

I am using stm32f030f4 and i want to use the STM32Cubeprogrammer in automatic mode , i had tried to use –ob rdp=1 to change the read out protection level to 1 ,but its not working .

what is the right option bytes command?

This topic has been closed for replies.

2 replies

Imen Ezzine
ST Employee
August 6, 2020

Hi H.Darwish,

If all you need is to change the RDP level from level '0' ti level '1' using the STM32Cubeprogrammer software, all you need is to connect your board and select the option bytes window, then go to Read out protection and apply the desired level and it should work with no problems.

If what you mean is you want to go back from a read out protection, then I believe an RDP regression is needed, meaning you need to return from RDP level 1 to level 0 at the same time as you come back from read out protection (in the same apply action)

For more details you can check the reference manual to see the needed steps in the 'option bytes' section.

I hope this help

-Imen

Associate
March 11, 2024

So, the right commands are

[RDP_Level 0]          -ob rdp=0xaa

[RDP_Level 1]          -ob rdp=0xbb   (or any other value except 0xaa and 0xcc)

[RDP_Level 2]          -ob rdp=0xcc

Associate
March 11, 2024

That's cool we can change it with GUI, but for automatic scenario would be better to know right command that I didn't found in manual as well as  H.Darwish