Skip to main content
NKann.1
Associate II
May 25, 2021
Solved

No ST-LINK detected! Please connect ST-LINK and restart the debug session. Please help me. I am user.

  • May 25, 2021
  • 45 replies
  • 21316 views

I am using STM32CubeIDE for my project . when i want to run the code i am getting this pop up.i am not able to solve this issue.

This topic has been closed for replies.
Best answer by LaurentL

OK, you didn't connect the Reset pin.

If you can add the connection, it's better.

Then, without reset coming from STLink, you should avoid "Connect under reset" mode in debugger tab in debug config.

Like you did on STM32CubeProgrammer, use "Software Reset system".

Try to mass erase the device with STM32CubeProgrammer before debug.

45 replies

LaurentL
ST Employee
May 25, 2021

But do you see the STLink now in USB devices ?

Is STM32CubeProgrammer seeing the STLink ?

Maybe update your PC drivers also.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
NKann.1
NKann.1Author
Associate II
May 25, 2021

should STLINK be connected while installing CubeIDE or not.

still i don't see STLink in USB devices

LaurentL
ST Employee
May 25, 2021

On Win 10, I don't think it is important to remove the USB device before installing the program.

It was important on old Windows.

Can you try on another PC to see if the STLink is ok ?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
NKann.1
NKann.1Author
Associate II
May 25, 2021

i have only one pc.

I will try .

Tesla DeLorean
Guru
May 25, 2021

Try a different cable, charging cables without data lines won't work.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
NKann.1
NKann.1Author
Associate II
May 25, 2021

okay

i will try

NKann.1
NKann.1Author
Associate II
May 25, 2021

usb driver has been installed ,it is showing in control panel but not in device manager.0693W00000APhflQAD.jpg

LaurentL
ST Employee
May 25, 2021

OK, fine with the STLink drivers.

Did you try with another usb cable ?

I suppose it is the same result with STM32CubeProgrammer, no STLink detected ?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
NKann.1
NKann.1Author
Associate II
May 26, 2021

problem was the USB cable.

Now it is resolved.

Now new error is coming0693W00000APpebQAD.jpg.

LaurentL
ST Employee
May 26, 2021

Ok, then this time it's maybe a fault in wiring or on your custom appli board.

Why can't you try in SWD mode ?

All the pins that are needed to do JTAG are ok for SWD.

Check all the VDD (VCAP if any) and the Analog supplies and Gnd.

Did you connect the STLink reset pin to NRST pin of device ?

Check with STM32CubeProgrammer if you can detect the Mcu.

Don't let the STM32CubeProgrammer connected if you want to retry debug with STM32CubeIDe.

What is your mcu device VDD value ?

STLink V3 Set has not the level shifters so if your appli board is not powered at 3.3V, it might be an issue.

Do you power the appli board with an external supply ?

I don't think the STLink V3 can supply your board.

Can you share the stlink connections ?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.