cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to start GDB server when debugging STM32F103C8T6

sonleduc
Associate II

 

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!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

7 REPLIES 7
sonleduc
Associate II
 

Screenshot 2026-03-22 131502.png

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

TDK
Super User

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

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

Screenshot 2026-03-22 220720.png

sonleduc
Associate II

Here is an issue as in the picture

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.

I mean, this is a separate issue. You've specified a ST-Link serial number to use but don't have it attached.

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

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