Skip to main content
Visitor II
August 7, 2025
Question

Can't download from CubeIDE to stm32H745 after GDB Server Error

  • August 7, 2025
  • 2 replies
  • 270 views

I accidentally flashed faulty code to the board in STM32CubeIDE before building it. Since then, I'm constantly getting a GDB Server Error in STM32CubeIDE.However, when I pull BOOT0 to 3.3V and then back to GND, the board temporarily recovers. I can upload code and debug successfully using Atollic TrueSTUDIO and Keil, but not with STM32CubeIDE.In STM32CubeIDE, I still cannot upload any code to the board — it keeps throwing GDB server connection errors, no matter what I try.I've tried every possible solution I could find, but the issue persists. Can you please help me?

2 replies

TDK
Super User
August 7, 2025

Sometimes restarting the IDE will help.

You can do a full chip erase with STM32CubeProgrammer to remove whatever code is on there.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Technical Moderator
August 7, 2025

Hello @embededwarrior ,

You can share the debugging logs from STM32CubeIDE and screenshots of the Debugger configuration, this may help in diagnosing the problem.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"