cancel
Showing results for 
Search instead for 
Did you mean: 

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

Joowan
Associate

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.

5 REPLIES 5
Imen.D
ST Employee

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

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.

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

 

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

I've attached the setup below.

Debug Configuration_main.PNG

Debug Configuration_debugger_1.PNG

Debug Configuration_debugger_2.PNG

I tested both ST-LINK (OpenOCD) and ST-LINK (ST-LINK GDB server) in Debug Configuration, but they don't work.

 

error message.PNG

I couldn't log in, because STM server not responding....so now seems working again.

Try with debug option for selecting a certain st-link/SN , try: scan , to see what he can find.

You should see your st-link SN and fix it to use this.

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