2024-07-23 02:11 AM - edited 2024-07-26 07:22 AM
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?
2024-07-25 09:59 AM
Hello @SedCore ,
by default you don't go in RDP2 anyway, so just launching regression.sh should work
Best regards
Jocelyn
2024-07-25 12:58 PM
Hello @Jocelyn RICARD ,
For this board I ran the hardening.sh script, so the RDP2 level was activated.
And the regression.sh script fails.
regression script started
Regression to RDP 0, enable tz
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.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)
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
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 0%
Error: Uploading Option Bytes bank: 0 failed
Error: Initializing the Option Bytes failed
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------
ST-LINK SN : 002600303432511630343838
ST-LINK FW : V3J15M6
Board : B-U585I-IOT02A
Voltage : 3.29V
Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
2nd connect tentative with frequency (8MHz)
ST-LINK SN : 002600303432511630343838
ST-LINK FW : V3J15M6
Board : B-U585I-IOT02A
Voltage : 3.29V
Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
regression script failed, press a key