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
  • 1 reply
  • 1115 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.

1 reply

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

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
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 ""Accept as Solution""."