2023-07-27 02:59 AM
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
2023-07-31 06:06 AM
Hello @kiichi ,
Try Connect mode: Under reset.
Imen
2023-07-31 06:31 AM
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.
2023-08-01 02:39 AM
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.
2023-08-06 06:23 PM
Thank you for the advice.
I will check the connection with STM32CubeIDE. thank you.
Kiichi.
2023-08-06 07:21 PM
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.