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
2025-01-31 02:05 AM
@vaucher_b wrote:I get the message "No ST-LINK detected! Please connect ST-LINK and restart the debug session"
So can Windows itself see the ST-Link? ie, does it appear in Device Manager:
Note the PS there specifically for ST-Link V3
@vaucher_b wrote:updated correctly to V3J15M7 using STLinkUpgrade 3.15.7 tool
Maybe it's stuck in update mode?
What happens if you try again with the updater?
2025-01-31 02:50 AM
Thanks for your quick reply
In Device manager, it appears as "ST-Link Debug"- driver date 01.04.2021, version 2.2.0.0
and "Virtual COM Port"
It seems there is no error there.
The update process seems working correctly, I can update again, and I see "Upgrade Successful."
2025-01-31 04:08 AM
Did you see the note specific to ST-Link V3?
2025-01-31 04:46 AM
Yes. I think this is not the root cause, because the computer is old (Intel(R) Core(TM) i5-9400) and it is working fine with older STLink such as Nucleo and the old STLINK-V3MINI.
When I open the menu "Run>Debug Configurations" from STM32CubeIDE , tab "Debugger", I can read the debugger S/N (result is 002E00193133510737363734).
I tried with and without USB hub, USB2 and USB3 ports on computer, it's always the same, in device manager it shows the items, in update tool it shows the STLINK-V3MINIE, but debug session always stop with the message "No ST-LINK detected! Please connect ST-LINK and restart the debug session".
Can you explain why the old STLINK-V3 are performing well, but the new STLINK-V3MINIE fail? Is there an important hardware/software difference other than the USB-C socket on the STLINK-V3MINIE and micro-USB on older types?
2025-01-31 05:07 AM
If it can read the serial number, then CubeIDE can see the ST-Link.
Are you sure you didn't have something else already using the ST-Link (eg, CubeProgrammer) ?
2025-01-31 05:23 AM
Yes sure, only Only STM32CubeIDE is open. I checked task manager too, restart computer too. Is it useful to try re-installing CUBE-IDE?
2025-01-31 05:36 AM
So the ST-Link is being seen correctly by the IDE, but as soon as you start the debug session, it disconnects...
Could it be that the device you are debugging is setting its pins in such a way that you have a bus contention with the debug probe (that could cause a voltage drop on the miniE so it resets) ? How is the connection between the ST-Link MINIE and the device under test ? Is it the same as with the old ST-Link MINI ?
2025-01-31 05:51 AM
What does your program do? Does it enter low-power modes or reassign the SWD pins?
2025-01-31 06:01 AM
Hello Kraal, the issue occurs earlyer, the ST-Link MINIE appears unconnected while trying th start a debug session, but it correctly connected and recognized for other actions (enumeration in device manager, S/N reading, upgrade it's firmware)