Skip to main content
Graduate II
August 20, 2025
Question

RDP Protection

  • August 20, 2025
  • 2 replies
  • 626 views

Hi I'm using STM32F411RET6 MCU.

 

I tried to connect using the programmer to download the firmware, but there was an error as shown below, and the data cannot be read.

 

13:18:34 : UR connection mode is defined with the HWrst reset mode
13:18:34 : ST-LINK SN : 54FF71067880565211170167
13:18:34 : ST-LINK FW : V2J45S7
13:18:34 : Board : --
13:18:34 : Voltage : 3.22V
13:18:34 : SWD freq : 4000 KHz
13:18:34 : Connect mode: Normal
13:18:34 : Reset mode : Software reset
13:18:34 : Device ID : 0x431
13:18:34 : Revision ID : Rev A
13:18:34 : Debug in Low Power mode is not supported for this device.
13:18:34 : UPLOADING OPTION BYTES DATA ...
13:18:34 : Bank : 0x00
13:18:34 : Address : 0x40023c14
13:18:34 : Size : 8 Bytes
13:18:34 : UPLOADING ...
13:18:34 : Size : 1024 Bytes
13:18:34 : Address : 0x8000000
13:18:34 : Read progress:
13:18:34 : Error: Data read failed

 

After that, the firmware will not be downloaded, and the message core is locked up.

I checked that it was a problem related to RDP, and it was set to FF.

giwonKIM_0-1755663629237.png

 


RDP cannot be set to another level.

How do you solve this problem?

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    August 20, 2025

    Hello @giwonKIM 

    I am moving this thread to the CubeProgrammer forum to ensure you receive more specialized assistance.

    THX

    Ghofrane

    giwonKIMAuthor
    Graduate II
    August 20, 2025

    Thank you for your service.

    Super User
    August 20, 2025

    If the chip is in RDP level 1, you will not be able to read the flash memory. A full chip reset is required in order to set it back to RDP level 0.

    What happens when you select 0xAA for RDP and hit apply?

     

    giwonKIMAuthor
    Graduate II
    August 20, 2025

    If convert to 0xAA and press apply, you get an error that you cannot change it, and the value 0xFF is read again.

    Super User
    August 21, 2025

    Is this a NUCLEO or other ST dev board or your own custom board? If your own custom board, show the schematic for the debug/SWD connector to the STM32 chip.

    Have you EVER been able to program this particular board?