cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer cannot connect to board using ST-LINK V3

SedCore
Associate III

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

SedCore_0-1727362562478.png
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.

24 REPLIES 24

But you disabled the st-link, as written ?  ....otherwise its doing nothing on terminal.

If you feel a post has answered your question, please click "Accept as Solution".

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
View more

 

I lost access to the board after running this.

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.

AScha3_0-1727472677075.png

AScha3_1-1727472778842.png

AScha3_2-1727472845104.png

AScha3_3-1727473878048.png

 

If you feel a post has answered your question, please click "Accept as Solution".

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...

SedCore_0-1727693154728.png

 

Hi,

so maybe you try to get some help from STM:

stm support
If you feel a post has answered your question, please click "Accept as Solution".