Skip to main content
Associate II
May 14, 2024
Question

How to unlock RDP level 1 on a STM32U0k8

  • May 14, 2024
  • 3 replies
  • 1930 views

Hi,

I am working on a project using an STM32U031K8U6.I have been experimenting with various low power modes and somehow, It appears that I have accidentally set RDP level 1 protection.

I have been using STM32CubeIDE to create and build code and then I used Seggers J-Flash and a J-Link debugger to actually program the device. I was able to successfully program my MCU multiple times with this setup. The last time that I attempted to flash a new program I received the following error message:

 

---------------------------------------------------------------------------------------------------------------------------

 Auto programming target (9124 bytes, 1 range) ...
- Connecting ...
- Connecting via USB to probe/ programmer device 0
- Probe/ Programmer firmware: J-Link V11 compiled Mar 14 2024 13:16:08
- Probe/ Programmer S/N: 601009238
- Device "STM32U031K8" selected.
- Target interface speed: 4000 kHz (Fixed)
- VTarget = 2.941V
- InitTarget() start
- RDP Level 1 protection is set. Reading flash memory is restricted.
- RDP Level 1 password is set.
- To unlock device please use Device Provisioner utility for STM32U0 option-bytes programming: https://wiki.segger.com/ST_STM32U0_Option_Bytes_Programming
- InitTarget() end - Took 48.5ms
- Found SW-DP with ID 0x6BA02477
- Failed to power up DAP
- InitTarget() start
- RDP Level 1 protection is set. Reading flash memory is restricted.
- RDP Level 1 password is set.
- To unlock device please use Device Provisioner utility for STM32U0 option-bytes programming: https://wiki.segger.com/ST_STM32U0_Option_Bytes_Programming
- InitTarget() end - Took 46.1ms
- Found SW-DP with ID 0x6BA02477
- Failed to power up DAP
- ERROR: Failed to connect.
Could not establish a connection to target.
- ERROR: Connect failed
- ERROR: Could not auto program target, not connected

-----------------------------------------------------------------------------------------------------------------------------

 

I attempted to use Seggers "Device Provisioner utility" without success. Is there some way to unlock this processor using the facilities in STM32CubeIDE or some other ST provided utility?

 

This topic has been closed for replies.

3 replies

ST Technical Moderator
May 15, 2024

Hello @JFP ,

Could you please try with latest release of CubeProgrammer v2.16

Then, please keep me informed about your update.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
ST Technical Moderator
May 15, 2024

Hi @JFP ,

I confirm that the regression from RDP 1 to 0 can't be done using STM32CubeProgrammer v2.16.

Our team are working to resolve this issue and will include a patch in the next version of CubeProgrammer to fix this.

Sorry, for the inconvenience it may cause and thank you for your understanding

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
JFPAuthor
Associate II
May 15, 2024

Thanks for testing this. How soon do you expect to publish the next version of STM32CubeProgrammer?