6 years, 8 months ago.

How to solve "dropped 'gdb' connection" error in Eclips

Hello everyone. I'm facing a problem wtih Nucleof429zi board with Eclips and ubuntu in offline IDE. i performed all the configuration and everything was working fine. Then later i'm facing a problem as shown below

Open On-Chip Debugger 0.9.0 (2017-08-13-11:53) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD adapter speed: 2000 kHz adapter_nsrst_delay: 100 none separate Started by GNU ARM Eclipse Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : clock speed 1800 kHz Info : STLINK v2 JTAG v28 API v2 SWIM v18 VID 0x0483 PID 0x374B Info : using stlink api v2 Info : Target voltage: 3.222991 Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : accepting 'gdb' connection on tcp/3333 Info : device id = 0x20016419 Info : flash size = 2048kbytes target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x08001210 msp: 0x20030000 semihosting is enabled target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x08001210 msp: 0x20030000, semihosting Info : Padding image section 0 with 596 bytes target state: halted target halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x20000042 msp: 0x20030000, semihosting target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x08001210 msp: 0x20030000, semihosting Error: gdb requested a non-existing register Info : dropped 'gdb' connection

How can i get rid off this problem. I read from many blog that i have to remove some tdesc line from .gdbinit file but i'm unable to fine it. Please share your ideas. Thank you

i found the answer and it's working for Ubuntu and eclips oxygen with openocd 0.9 you just need to add this line in your target device in my case it's stm32f4x.cfg

$_TARGETNAME configure -event gdb-detach { shutdown }

posted by Ali Imran Siddiqui 13 Aug 2017

Hey man! I found your answer, and i am also having an STM32 that is not working as it should. Could you please detail your answer, for the lesser insightful? :) Thanks in advance!

posted by dark blackmail 23 Sep 2017

1 Answer

6 years, 8 months ago.

Hi Ali,

Glad you were able to solve your issue! I'm closing this question.

- Jenny, team mbed

Accepted Answer