Skip to main content
Associate
Mar 22, 2026 6:09 AM UTC
Solved

Failed to start GDB server when debugging STM32F103C8T6

 

Hello everyone, I’m facing an issue while trying to debug my project custom_for_stm32f103c8t6 in STM32CubeIDE. When I launch the debug session, I get the following error message:

Error in final launch sequence:
Failed to start GDB server

What I’ve tried so far:

  • Installed ST-LINK driver (STSW-LINK009).

  • Changed USB cable and port.

  • Reset the STM32F103C8T6 board.

Interestingly, I can still flash the firmware successfully using STM32CubeProgrammer, but debugging through STM32CubeIDE fails with the error above.

Unfortunately, the error still persists. Has anyone encountered this problem before and found a solution? Any guidance would be greatly appreciated.

Thank you in advance!

 

 

Andrew Neil
Andrew NeilBest answer
Super User
Mar 23, 2026 12:41 PM UTC

@TDK wrote:

Sounds like you are using a counterfeit programmer and/or board


(emphasis added)

 


@sonleduc wrote:

Hi TDK, I trying to use ST-link from board nucleo but it still not work on IDE.


@sonleduc  But if you've still using a fake STM32 as your target, then this is still expected behaviour - as @TDK said.

 

As the name suggests, STM32CubeIDE is provided for working with genuine STM32 chips - it is not supported for 3rd-party fakes/clones.

See this thread.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.

7 replies

sonleducAuthor
Associate
Mar 22, 2026 6:16 AM UTC
 

Screenshot 2026-03-22 131502.png

It can be detected by stsw-link007-v3-17-10

TDK
Mar 22, 2026 12:38 PM UTC

> flash the firmware successfully using STM32CubeProgrammer, but debugging through STM32CubeIDE fails with the error above

Sounds like you are using a counterfeit programmer and/or board. This is typical behavior. A genuine board will work.

"If you feel a post has answered your question, please click ""Accept as Solution""."
sonleducAuthor
Associate
Mar 22, 2026 3:09 PM UTC

Hi TDK, I trying to use ST-link from board nucleo but it still not work on IDE.

Screenshot 2026-03-22 220720.png

Andrew Neil
Andrew NeilBest answer
Super User
Mar 23, 2026 12:41 PM UTC

@TDK wrote:

Sounds like you are using a counterfeit programmer and/or board


(emphasis added)

 


@sonleduc wrote:

Hi TDK, I trying to use ST-link from board nucleo but it still not work on IDE.


@sonleduc  But if you've still using a fake STM32 as your target, then this is still expected behaviour - as @TDK said.

 

As the name suggests, STM32CubeIDE is provided for working with genuine STM32 chips - it is not supported for 3rd-party fakes/clones.

See this thread.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
sonleducAuthor
Associate
Mar 22, 2026 3:11 PM UTC

Here is an issue as in the picture

mƎALLEm
ST Technical Moderator
Mar 23, 2026 7:57 AM UTC

Please share a live photo of your board.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.