cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer cannot connect with STLINK-V3SET.

kiichi
Associate III

Hello

I detect (regular) ST-LINK v32 with STM2CubeProgrammer, but it remains not connectrd.

Please tell me what is the problem and how to fix this problem. ?

[LOG]

18:18:10 : STM32CubeProgrammer API v2.14.0 | Windows-32Bits
18:18:13 : UR connection mode is defined with the HWrst reset mode
18:18:13 : ST-LINK SN : 002800205553500E20393256
18:18:13 : ST-LINK FW : V3J12M3B5S1
18:18:13 : Board : STLINK-V3SET
18:18:13 : Voltage : 3.33V
18:18:13 : SWD freq : 8000 KHz
18:18:13 : Connect mode: Normal
18:18:13 : Reset mode : Hardware reset
18:18:13 : Device ID : 0x500
18:18:13 : Revision ID : Rev Z

5 REPLIES 5
Imen.D
ST Employee

Hello @kiichi ,

Try Connect mode: Under reset.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
AScha.3
Chief III

from my experience this happens if

a. connection is bad (bad contact or long wires)

b. spikes from mains coming in ; if you supply target not from USB (where stlink is also) your connection is prone to catch inductive or capacitive coupled spikes from mains;

i had exactly this behavior here at my PC . "connection lost" every some minutes or an hour.

then plugged in mains -> target supply at the PCs (filtered) master-slave socket strip and cable routed near usb-cable to target; target has mains filter and mains earth also; now debug can run many hours without any problem.(and still 2,5m away from PC , stlinkV3 -target cable about 20cm long, at full speed 24MHz + 16Mhz SWO)

try this.

If you feel a post has answered your question, please click "Accept as Solution".
Sara BEN HADJ YAHYA
ST Employee

Hello @kiichi,

Thanks for your feedback,

STM32CubeProgrammer does not support SWD/J-TAG with MPUs. However, with STM32CubeIDE, you can connect and debug your MPU.

For MPUs, only USB and UART interfaces are supported in STM32CubeProgrammer.

Sara.

kiichi
Associate III

Thank you for the advice.
I will check the connection with STM32CubeIDE. thank you.
Kiichi.

kiichi
Associate III

I have a question.
When using STM32CubeProgrammer, it was possible to connect STM32MP157F-EV1 with USB-OTG and write to eMMC of STM32MP157F-EV1.
However, STM32CubeProgrammer could not connect with SWD/J-TAG.
Is it possible to connect with SWD/J-TAG with STM32CubeIDE and write to eMMC?
Kiichi.