2019-03-09 04:47 AM
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?
2020-08-06 09:03 AM
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
2024-03-11 02:09 AM
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
2024-03-11 02:29 AM
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