Skip to main content
Eng.Kourosh
Associate
March 31, 2020
Question

Failed to start GDB server

  • March 31, 2020
  • 11 replies
  • 12327 views

hi guys

could you help me to fix this problem ?

i can programming my program with STM32 ST-LINK Utility and its worked but when i use Run OR Debug in stm32cubeide it does problem

my board and my programmer is in the attechments

This topic has been closed for replies.

11 replies

Pavel A.
March 31, 2020

Have you imported the project from other OS (Windows vs Linux) and use existing debug configuration?

If so, delete the debug configuration and create new one.

-- pa

PFirt.1
Visitor II
March 22, 2022

I had a similar problem and this worked. Thanks

Eng.Kourosh
Associate
April 1, 2020

thanks for response,

no i didnt

i have same problem with cubemx when i generate code for keil it has problem i search about that and i noticed that we should install jdk 8 but i have android studio with jkd version 13 and i cannt delete it possible this problems beacuse of jdk version???

Pavel A.
April 1, 2020

Java versions is a different problem. The debugger engine (iether OpenOCD or gdb server) do not use Java.

If you have Keil, the debugger is different there and may work much better.

-- pa

Eng.Kourosh
Associate
April 2, 2020

I tired of stm32cubeide it does error gdb server

I can program with keil and its work on my board but it has problem too, when i want to program or debug it take error "Not a genuine ST Device! Abort connection"

Also I upgrade firmware st link

sgran.1
Associate
April 13, 2020

I have this error too(( IDE #1.3.0 for macOS

sgran.1
Associate
April 15, 2020

Добрый день, Павел. С �?той ошибкой иногда �?талкиваю�?ь - непред�?казуемо - в проце�?�?е работы. Пока вывод - не оригинальные Сви�?тки �? �?лиек�?пре�?�?, к�?тати за 2 недели внезапно умерли 2 штуки((( - они давали большую ча�?ть ошибок . По�?тавил оригинальный st-link2 == 2 дн�? полет нормальный. Один умерший Сви�?ток �?ам переделал дл�? отладки (вывел �? него на те�?тируемую плату линии SWO + RST, необходимо�?ть RST в данном варианте отладки SWV так и не пон�?л - работает и �?ни и без, вкл. программный ре�?ет)

Eng.Kourosh
Associate
April 15, 2020

can you speak english?i cannt understand what did you say

DBann.1
Visitor II
January 11, 2022

He wrote that unoriginal ST-LINKs from Aliexpress could be causing this problem. Then he took an original ST-LINK and had no problem for 2 days at least. Also he rebuild his invalid st-link connecting swo and rst pins to target board.

sgran.1
Associate
April 15, 2020

You can try Google Translate, I am using too - I dont speak English - all forumes translate Google ))

IReta.1
Associate II
May 26, 2020

If you want any help, do not cause language difficulties for the ones who can help. Nobody will make extra effort for you.

sgran.1
Associate
April 15, 2020

�?нглий�?ки�? �?зык не един�?твенный в мире)) Гугл предо�?тавил нам прекра�?�?ную возможно�?ть на уровне Э�?перанто))

UTopc.1
Visitor II
June 3, 2020

Restarting the computer solved it in my case. Strange.

MAyaz.1
Associate
November 6, 2020

Check 3.3 volt that come to microprocessor.

Sefo
Visitor II
November 13, 2020

It seems as bug of CubeIDE and developers of ST don't pay any attention to this. In my case with STM32L1 series I faced with same problem with CubeIDE v1.4.0 and ST_Link v3 and solved it just by searching "right" settings. Right settings was: reduce frequency to 21 MHz instead of maximum possible 24 MHz and set "Debug in low power mode" to "No configuration" ("Disable" doesn't help).

RPasc.2
Associate II
January 8, 2021

Sefo - You failed to mention -where- these changes are to be made ! I can't find them.