Skip to main content
Associate
March 22, 2026
Solved

Failed to start GDB server when debugging STM32F103C8T6

  • March 22, 2026
  • 3 replies
  • 481 views

 

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!

 

 

Best answer by Andrew Neil

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

3 replies

sonleducAuthor
Associate
March 22, 2026
 

Screenshot 2026-03-22 131502.png

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

TDK
Super User
March 22, 2026

> 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
March 22, 2026

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
March 23, 2026

@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
March 22, 2026

Here is an issue as in the picture

mƎALLEm
Technical Moderator
March 23, 2026

Please share a live photo of your board.

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