cancel
Showing results for 
Search instead for 
Did you mean: 

How to use STM32CubeProgrammer to set the OEM key and RDP0 to RDP2?

ShimiaoWang
Associate III

STM32C5 unlock RDP2 need OEM key, How to use STM32CubeProgrammer to set the OEM key and RDP0 to RDP2? 

Please provide me with a correct operation procedure. Thank you.

PixPin_2026-03-20_10-42-29.png

PixPin_2026-03-20_10-43-37.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Aziz BRIGUI
ST Employee

Hi @ShimiaoWang,

You can set the RDP level 2 password by writing four 32-bit words into the password field and click on "Set password". If you want to set a password for RDP level 2 with boundary scan, you can write a 32-bit BSKEY.

 

Please carefully refer to How to set the RDP password keys and levels on STM32C5 MCUs - stm32mcu and STM32CubeProgrammer software description - User manual before any manipulation.

PS: @MGogr.1, STM32CubeProgrammer v2.22.0 supports STM32C5 and the message has been changed as per the screenshot from @ShimiaoWang.

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
MGogr.1
Senior

Cube Programmer supports for the following:

"Lock RDP command is only available with STM32U5/STM32WBA/STM32U0/STM32U3".

Since your Controller is C5 series it wont possible.

Aziz BRIGUI
ST Employee

Hi @ShimiaoWang,

You can set the RDP level 2 password by writing four 32-bit words into the password field and click on "Set password". If you want to set a password for RDP level 2 with boundary scan, you can write a 32-bit BSKEY.

 

Please carefully refer to How to set the RDP password keys and levels on STM32C5 MCUs - stm32mcu and STM32CubeProgrammer software description - User manual before any manipulation.

PS: @MGogr.1, STM32CubeProgrammer v2.22.0 supports STM32C5 and the message has been changed as per the screenshot from @ShimiaoWang.

Aziz


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

OK. Thanks.

I'll need to update my Programmer.