Skip to main content
Associate
September 25, 2023
Question

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

  • September 25, 2023
  • 4 replies
  • 7575 views

Hi,

 I am new to STM32CubeIDE. I am doing a PWM pulse generation project in STM32F411CEU6. After the configuration, I am successful in generating code. The debugging was also successful. But when I start Run, the message is popping up " No ST-LINK detected! Please connect ST-LINK and restart the debug session" . I am using Windows 11 Home Single Language system, AMD Ryzen 5000 series. I have also downloaded and installed ST-LINK 007 USB driver. But still the same message popping up. Please help me

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
September 25, 2023

And you have an ST-LINK connected?

Or you have some random Black Pill board, or similar, without any debug pod?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ARUNGECWAuthor
Associate
September 25, 2023

I have connected STM32F411CEU6 using USB C type cable. Can you please tell me what " debug Pod " is?

ARUNGECWAuthor
Associate
September 25, 2023

WhatsApp Image 2023-09-25 at 3.30.12 PM.jpeg

Nikita91
Lead II
September 25, 2023

I know and use this quite good board (but not the same version).

The question is what probe do you connect to the SW 4 pin connector (GND, SCK, DIO, 3.3V) ?

You say  "The debugging was also successful". How do you debug ? If you can download and debug the code, you can run it!

MS.9
Associate III
September 25, 2023

Hi,

I suggest you buy a Nucleo-32 board. They are as cheap as chips and the ST-Link is incorporated into the device - They work really well and are well supported.

Or, If you buy a Nucleo-64 then you can use the ST-Link header that in on the board to access other boards (very neat)

Pavel A.
Super User
September 25, 2023

Make sure that only one program accesses ST-LINK at any time. Close the others.