2026-03-21 11:09 PM - last edited on 2026-03-26 4:18 AM by KDJEM.1
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!
Solved! Go to Solution.
2026-03-23 5:41 AM
@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.
2026-03-21 11:16 PM
It can be detected by stsw-link007-v3-17-10
2026-03-22 5:38 AM
> 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.
2026-03-22 8:09 AM
Hi TDK, I trying to use ST-link from board nucleo but it still not work on IDE.
2026-03-22 8:11 AM
2026-03-23 12:57 AM
Please share a live photo of your board.
2026-03-23 5:31 AM
I mean, this is a separate issue. You've specified a ST-Link serial number to use but don't have it attached.
2026-03-23 5:41 AM
@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.