2026-05-13 9:46 AM
I'm looking at setting the RDP Level to Level 1 for an STM32F103 and I don't see the AA BB CC type stuff like in the current manual. Is this something that STM32CubeProgrammer is doing on purpose for this MCU? I definitely don't want to enable Level 2 by accident and brick my chip. Here is a screenshot of what I see:
Is it safe to check this?
Solved! Go to Solution.
2026-05-14 2:13 AM
Hello,
In STM32F10xx (first STM32 series), the flash protection was simple. No RDP levels 0, 1 and 2. Only RDP activated / RDP not activated.
Please refer to PM0075.
So yes you can check it to protect the flash from reading.
2026-05-14 2:13 AM
Hello,
In STM32F10xx (first STM32 series), the flash protection was simple. No RDP levels 0, 1 and 2. Only RDP activated / RDP not activated.
Please refer to PM0075.
So yes you can check it to protect the flash from reading.
2026-05-14 7:54 AM
Thanks for the reminder to check the data sheet (and doing so on my behalf). The internet is a dogs breakfast. Even here, simply skimming topics can be, um, insufficient.
STM32F1 microcontrollers offer three levels of read-out protection: level 0 (no protection), level 1 (Flash memory, backup SRAM, and backup registers protected), and level 2 (same as level 1, but with permanent protection by locking the option bytes). It's important to note that level 2 should only be considered for the final product, not during development stages.
https://community.st.com/t5/stm32-mcus/how-to-change-the-read-out-protection-on-stm32f1/ta-p/49408
2026-05-14 8:26 AM
Hello @Grant Bt ,
Thanks for sharing.
I need to check with the knowledge base article owner.
To me STM32F10x has only two levels Level 0: no read protection, Level 1: read out protection enabled. (unless I'm missing something).
Even in the driver (stm32f1xx_hal_flash_ex.h), two levels are available:
/** @defgroup FLASHEx_OB_Read_Protection Option Byte Read Protection
* @{
*/
#define OB_RDP_LEVEL_0 ((uint8_t)0xA5)
#define OB_RDP_LEVEL_1 ((uint8_t)0x00)
2026-05-14 10:02 AM
Contacted the knowledge base article owner and confirmed the issue: No RDP level 2 on STM32F10xx
The article will updated then.
So my answer is valid.
2026-05-14 10:30 AM
Thank you!
2026-05-15 6:47 AM
The article has been updated and mentioned that there is no RDP L2 on STM32F103.
Thank you for your contribution.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.