cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U585 does not rollback to RDP=0 after running TFM application

SedCore
Associate III

Hello,

I have a B-U585I-IOT02A board, and I followed the tutorial at Getting started with STM32CubeU5 TFM application - User manual. Unfortunately, I couldn't get it to work and I tried to rollback, following the steps described in Section 10.6 STM32U5 device reinitialization, but I couldn't get my device reinitialized to the RDP=0 level.

The default password that I used in regression.sh is 0xFACEB00C 0xDEADBABE, switch SW1 (BOOT0 pin) is on position 1, and I connected TAMP_IN8 (PE4 on CN3 pin 11) and TAMP_OUT8 (PE5 on CN3 pin 14) as suggested in Solved: STM32U585 DOES NOT RETURN TO RDP=0. - STMicroelectronics Community

But I still get the same errors:

 

 

C:\WINDOWS\system32>STM32_Programmer_CLI.exe -c port=swd mode=UR -unlockrdp2 0xFACEB00C 0xDEADBABE
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.16.0
      -------------------------------------------------------------------

ST-LINK SN  : 002600303432511630343838
ST-LINK FW  : V3J15M6
Board       : B-U585I-IOT02A
Voltage     : 3.29V
Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
ST-LINK SN  : 002600303432511630343838
ST-LINK FW  : V3J15M6
Board       : B-U585I-IOT02A
Voltage     : 3.29V
Unlock RDP2 password succefully done!
Error: ST-LINK error (DEV_TARGET_NOT_HALTED)

 

 

 

 

C:\WINDOWS\system32>STM32_Programmer_CLI.exe -c port=swd mode=hotplug -ob rdp=0xDC
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.16.0
      -------------------------------------------------------------------

ST-LINK SN  : 002600303432511630343838
ST-LINK FW  : V3J15M6
Board       : B-U585I-IOT02A
Voltage     : 3.29V
SWD freq    : 8000 KHz
Connect mode: Hot Plug
Reset mode  : Software reset
Device ID   : 0x482
Revision ID : Rev X
Device name : STM32U575/STM32U585
Flash size  : 2 MBytes (default)
Start Address : 8000000
Device type : MCU
Device CPU  : Cortex-M33
BL Version  : 0x0
Debug in Low Power mode enabled


UPLOADING OPTION BYTES DATA ...

  Bank          : 0x00
  Address       : 0x40022040
  Size          : 36 Bytes

▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
Error: Uploading Option Bytes bank: 0 failed
Error: Initializing the Option Bytes failed

 

 

Any help please?

@CMYL @Diane POMABIA 

0 REPLIES 0