Skip to main content
kRaje.1
Associate III
July 1, 2025
Question

Readout protection level 1

  • July 1, 2025
  • 2 replies
  • 319 views

Hi team,

I am using the STM32WLE5CC microcontroller and I am facing an issue with Readout Protection Level 1. I am utilizing the open bootloader from ST and updating hex files using the STM32Cube Programmer software using USART. Up to this point, everything has been working fine.

However, after applying Readout Protection Level 1 to my application code, I entered bootloader mode and attempted to connect to the STM32Cube Programmer software. Unfortunately, it displays an error indicating that Readout Protection is activated. Additionally, when I use open bootloader commands through RealTerm software, it also fails to work.

Could you suggest any other tools, apart from STM32Cube Programmer, or provide some solutions regarding the issue mentioned above? Thank you!

2 replies

STTwo-32
Technical Moderator
July 1, 2025

Hello @kRaje.1 

In RDP level 1, the bootloader is in a protected state and can only execute a limited set of commands, such as the "GetVersion," "GetDeviceID," "GetCmd," and "ReadUnprotect" commands. Any other commands, including read, write, or erase operations, are rejected with a NACK response. So, if you want to connect to the STM32WLE throw USART Bootloader, you have to set the RDP to level 0 using the "ReadUnprotect" command. Or on the STM32CubeProg, you can check the Read Unprotect option, and it will set the RDP to level 0 on the connection throw the programmer.

Best Regards.

STTwo-32 

kRaje.1
kRaje.1Author
Associate III
July 2, 2025

Hi,

Thank you for your response. However, I'm facing a problem with the ReadUnprotect option or setting the RDP to level 0 in the STM32Cube Programmer software. I am concerned that this will erase my flash data, including the open bootloader code, since I have placed the open bootloader in the flash memory.

Do you have any alternative solutions apart from the ones mentioned above? Thank you!

Tesla DeLorean
Guru
July 2, 2025

You presumably have access to the source for the open bootloader, perhaps explore the "fails to work"

On many STM32 RDP-1 also write protects some of the sectors/pages in FLASH.

Changing to RDP-0 always involve the erasure of all code in FLASH, tends to be the way of making things secure and providing less of a threat surface.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..