2025-01-31 01:50 AM
Hello,
Maybe you can help me, I am not able to start debug session with STLINK-V3MINIE.
Context is: Windows 10 64bit, Intel(R) Core(TM) i5-9400
STMCubeIDE V1.17.0
Tried with 2 different STLINK-V3MINIE
the STLINK-V3MINIE is seen and updated correctly to V3J15M7 using STLinkUpgrade 3.15.7 tool
When trying to open a debug session, I get the message "No ST-LINK detected! Please connect ST-LINK and restart the debug session"
I tried >20 times, connecting on different USB ports, different USB cables, 2 different STLINK-V3MINIE. I tried to switch OFF the firewall.
When I use my old STLINK-V3MINI it is working fine
When I use a Nucleo board, it is working fine
Any idea what I should do? Thanks
Solved! Go to Solution.
2025-01-31 06:09 AM
To anwser your question, my software do not enter in low power mode. I was able to debug it in the past year using my old ST-Link MINI
2025-01-31 06:10 AM
I see the error message, but what is written in the debugger console when you try to debug ?
Maybe there you would get more information.
Another try would be to use the command line, as it is usually more verbose: either gdb server or CubeProgrammer_CLI.
Also, do you really need to specify the S/N in the debug config ? From your device manager you only use one at a time (apparently, I'm only assuming here), so it shall not be mandatory.
2025-01-31 06:13 AM
I just checked again, it is still possible to debug with a Nucleo board and with the old ST-Link MINI.
The problem is limited to the ST-Link MINIE (I tested 3 different ST-Link MINIE interfaces).
2025-01-31 06:19 AM
@vaucher_b wrote:The problem is limited to the ST-Link MINIE (I tested 3 different ST-Link MINIE interfaces).
Again, if CubeIDE can read the ST-Link's serial number, then it can see the ST-Link - so it should be able to debug.
As @Kraal said, have you tried to debug without specifying the serial number?
If you specify the wrong serial number, then CubeIDE won't connect - even when it can see the ST-Link.
As @Kraal said, please post the complete console output when you attempt to start a debug session: copy & paste as text rather than a screenshot.
2025-01-31 06:40 AM
Ok, without S/N is the same. Console is not showing anything about debug, only about compilation:
15:11:36 **** Incremental Build of configuration Debug for project P334A ****
make -j6 all
arm-none-eabi-size P334A.elf
text data bss dec hex filename
26588 72 9792 36452 8e64 P334A.elf
Finished building: default.size.stdout
15:11:36 Build Finished. 0 errors, 0 warnings. (took 372ms)
I will try CLI
2025-01-31 07:02 AM
Hi,
what shows : CubeProgrammer with your MiniE ?
+
Try a good USB2 cable to MiniE ; and no other connections to mains ground - hi speed ground "noise" might stop any connection.
2025-01-31 07:11 AM
This is what I get from CLI try (copy-paste from console)
C:\ST\STM32CubeIDE_1.0.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.0.202409170845\tools\bin>STM32_Programmer_CLI.exe -c port=SWD
-------------------------------------------------------------------
STM32CubeProgrammer v2.18.0
-------------------------------------------------------------------
ST-LINK SN : 002E00193133510737363734
ST-LINK FW : V3J15M7
Board : STLINK-V3MINIE
Voltage : 3.27V
SWD freq : 8000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x468
Revision ID : Rev X
Device name : STM32G43x/G44x
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0xD4
C:\ST\STM32CubeIDE_1.0.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.0.202409170845\tools\bin>
2025-01-31 07:13 AM
All you've showed there is the build output.
You need to show the output when it tries to start a debug session.
It will look something like this:
STMicroelectronics ST-LINK GDB server. Version 7.4.0
Copyright (c) 2023, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.14.0
-------------------------------------------------------------------
Log output file: C:\Users\xxxx\AppData\Local\Temp\STM32CubeProgrammer_a01932.log
ST-LINK SN : 0032004D3137510239383538
ST-LINK FW : V3J15M7B5S1
Board : STLINK-V3SET
Voltage : 3.28V
SWD freq : 8000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x440
Revision ID : Rev 2.0
Device name : STM32F05x/F030x8
Flash size : 64 KBytes
Device type : MCU
Device CPU : Cortex-M0
BL Version : 0x21
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a01932.srec
File : ST-LINK_GDB_server_a01932.srec
Size : 46.74 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 46]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:03.015
Verifying ...
Download verified successfully
2025-01-31 07:17 AM
This is another try:
C:\Users\berni>C:\ST\STM32CubeIDE_1.0.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.2.0.202409170845\tools\bin\ST-LINK_gdbserver.exe -p 61234 -l 1 -d -s -cp C:\ST\STM32CubeIDE_1.0.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.0.202409170845\tools\bin -m 0 -k
STMicroelectronics ST-LINK GDB server. Version 7.9.0
Copyright (c) 2024, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Waiting for debugger connection...
2025-01-31 07:20 AM
If you get the serial number wrong (or specify a serial number, and that particular ST-Link is not present), you get this error:
Is that what you're getting?