cancel
Showing results for 
Search instead for 
Did you mean: 

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

H.Darwish
Associate II

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?

3 REPLIES 3
Imen Ezzine
ST Employee

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

KhPaul
Associate II

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

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