2024-09-26 08:10 AM - edited 2024-09-26 08:25 AM
Hi, I get the below error when trying to connect to my B-U585I-IOT02A board in "Hot plug" and "Hardware reset" modes, whatever is the frequency. I get the same error even with BOOT0 High.
I'm using STM32Cube Programmer v2.17.0
Connection is successful only when I keep on pressing the reset button, but there is no option byte set and any attempt to set option bytes fails.
Thanks in advance for your support.
2024-09-27 01:05 PM
But you disabled the st-link, as written ? ....otherwise its doing nothing on terminal.
2024-09-27 01:44 PM - edited 2024-09-27 01:52 PM
I'm not sure of having done so. As I mentioned earlier, I just ran the regression.sh script from the TF-M application in the STM32U5 v1.4.0 firmware. Below is the log that I got on the terminal when I ran that script, I don't know if this disabled the ST-Link:
regression script started
Regression to RDP 0, enable tz
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------
ST-LINK SN : 003B00243232510239353236
ST-LINK FW : V3J15M6
Board : B-U585I-IOT02A
Voltage : 3.30V
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
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 100%▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 100%
Bank : 0x01
Address : 0x40022068
Size : 8 Bytes
PROGRAMMING OPTION BYTES AREA ...
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ 50%
Bank : 0x01
Address : 0x40022068
Size : 8 Bytes
Bank : 0x00
Address : 0x40022040
Size : 36 Bytes
Reconnecting...
Error: failed to reconnect after reset !
Error: Unable to reconnect after setting the Option Bytes
I lost access to the board after running this.
2024-09-27 02:31 PM - edited 2024-09-27 02:51 PM
1. last successful action was : programming the option bytes. (probably wrong...RDP set to 1. )
2. disable the st-link, is needed to connect to terminal. YOU have to do it, -> read in um2851 ...complex game.
2024-09-30 03:41 AM - edited 2024-09-30 03:46 AM
Hello @AScha.3
I also tried to do that step of disabling ST-Link, but without success. In fact, to disable ST-Link, "some information is displayed in the terminal emulator" as mentioned. There must be something on the terminal screen (I did a previous project using TF-M, so I know about this). But in my case now, nothing even appears on the terminal screen...
2024-09-30 06:00 AM
Hi,
so maybe you try to get some help from STM: