cancel
Showing results for 
Search instead for 
Did you mean: 

STLINK-V3MINIE not detected in debug mode

vaucher_b
Visitor

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

19 REPLIES 19

@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:

https://community.st.com/t5/stm32-mcus/how-to-solve-debugger-connection-issues/tac-p/698105/highlight/true#M956

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?

vaucher_b
Visitor

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

 

vaucher_b
Visitor

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?

 

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) ?

vaucher_b
Visitor

Yes sure, only Only STM32CubeIDE is open. I checked task manager too, restart computer too. Is it useful to try re-installing CUBE-IDE?

Kraal
Senior III

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 ?

TDK
Guru

What does your program do? Does it enter low-power modes or reassign the SWD pins?

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

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)

st1.jpgst2.jpgst3.jpg