Skip to main content
mehmet.karakaya
Associate III
September 7, 2020
Question

failed to start GDB server error

  • September 7, 2020
  • 4 replies
  • 5936 views

hello forum,

I am getting following error - see picture

https://i.imgyukle.com/2020/09/07/xXWynv.png

I use blue pill f103c8 - voltages are ok - blue pill is alive I can see the LED blink

original st link v2 LED is red - driver is ok no error in device manager

I connected SWD pins

please advise

thank s

4 replies

elmxmle
Associate
September 7, 2020

Hi,

I had the "Failed to start GDB server" issue at the second launch of a fresh installation of STM32CUBE IDE 1.4.0

I reinstalled the IDE but it did finish the installation and disappeared... oO'

... Avast ate those files in secret ... -__-

 0693W000003Qy9MQAS.jpg

Hope this can help some of you to save time with this issue.

Bonne journée.

Max.

mehmet.karakaya
Associate III
September 9, 2020

I connected VCC of st-linkv2 to 3.3V of blue pill and

I could download my code to blue pill

however after download and start button

cubeide gives "debugger connection lost " error and doesnot stop at breakpoints

my version 1.4.2

I tried with different SWD frequencies no solution

please advise - thank you - picture of error below picture

https://i.imgyukle.com/2020/09/09/xmXyBs.png

LaurentL
ST Employee
September 10, 2020

Maybe it is your application that use SWD pins as IOs so debugger loose communication.

Can you try a simple empty project and see if debug is ok.

STlink clock at 140 Khz is a bit slow, try above 1MHz.

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.
mehmet.karakaya
Associate III
September 15, 2020

hello ,

my problem still continue

my code is simple blink LED

I use debug version of compiler - I dont use swd pins

my question : will it help to connect STM32 reset pin to ST- Link reset pin ?

( in youtube videos people didnot connect reset pin )

thank you

LaurentL
ST Employee
September 15, 2020

It could work without the reset line but you have to choose the "software system reset" and not "connect under reset".

It is preferable to connect the reset line in case of applications using swd pins as io or low power debug mode.

Rgds,

Laurent

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.
Associate
January 29, 2024

I have the same problem, when I load it the connection is lost and it doesn't let me load it again, to load it from the IDE I have to erase the Flash, or directly with the STMProgrammer. Once I erase the memory I put the blink or another program and ok it doesn't happen but I load my code again and it happens again. I have been looking to see if there are any overwritten registers or something but I can't find anything.