Skip to main content
Associate
December 26, 2024
Question

No ST-LINK detected! Please connect ST-LINK and restart the debug session.

  • December 26, 2024
  • 5 replies
  • 1156 views

I downloaded FP-SNS-ALLMEMS2 to test sensors with STEVAL-STLKT01 and I installed STM32CubeIDE for the first time. I'm trying to test this project on STM32CubeIDE(Version: 1.17.0). But when I build and run, I get the message "No ST-LINK detected! Please connect ST-LINK and restart the debug session."
I tested both ST-LINK (OpenOCD) and ST-LINK (ST-LINK GDB server) in Debug Configuration, but they don't work. I don't know if it's a server problem or what's missing.
ST-LINK(V2, F/W: V2J42S7) is connected well in STM32CubeProgrammer.

I need your help.

Thank you in advance.

This topic has been closed for replies.

5 replies

ST Technical Moderator
December 26, 2024

Hello @Joowan ,

Ensure that the ST-LINK firmware is up to date.

Check USB cables, try using a different USB port or data cable (not a charging cable).

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
JoowanAuthor
Associate
December 26, 2024

Thanks for your reply. I have confirmed that ST-LINK is connected well with STM32CubeProgrammer by doing what you said. However, it is not connected with STM32CubeIDE.

AScha.3
Super User
December 26, 2024

So show, what you setup in debug in IDE....

 

If you feel a post has answered your question, please click on " Best Answer ".