Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Error launching openOCD debugger in Eclipse
Error launching openOCD debugger in Eclipse [message #1749827] Mon, 12 December 2016 22:48 Go to next message
Colin daly is currently offline Colin dalyFriend
Messages: 7
Registered: December 2016
Junior Member
I am setting up openOCD and Eclipse on a new operating system, using a Nucleo F030R8 board that debugs fine on another system. I can run the debugger in terminal with ./openocd -f board/st_nucleo_f0.cfg and get:

GNU ARM Eclipse 64-bits Open On-Chip Debugger 0.9.0-00073-gdd34716 (2015-05-19-12:55)
Licensed under GNU GPL v2
For bug reports, read
openocd .org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v25 API v2 SWIM v13 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.257369
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints''




and the LED LD1 blinks alternatively green and red. However, when I run the debugger in Eclipse I also get the "error in final launch sequence":



Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: No such file or directory.
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: No such file or directory.
localhost:3333: No such file or directory.



Similarly, I can run External Tools in Eclipse just fine, but this doesn't open the debugger. So it seems like I'm close, but something isn't quite right. Let me know if you need any other details of my system.


Using:

Eclipse Mars.2 (4.5.2)
Mac 10.12.1
OpenOCD 0.10.0-201601101000-dev
GNU Tools gcc-arm-none-eabi-5_4-2016q3
Re: Error launching openOCD debugger in Eclipse [message #1749919 is a reply to message #1749827] Tue, 13 December 2016 19:51 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 690
Registered: August 2014
Senior Member
You asked the question already in another message thread. Please do not start another thread with a different header.

I responded to the other thread.


--

Tauno Voipio
Re: Error launching openOCD debugger in Eclipse [message #1749925 is a reply to message #1749919] Tue, 13 December 2016 21:53 Go to previous messageGo to next message
Colin daly is currently offline Colin dalyFriend
Messages: 7
Registered: December 2016
Junior Member
(sorry, for double thread. answer below):

https://www.eclipse.org/forums/index.php?t=msg&th=1081311&goto=1749918&#msg_1749918
Re: Error launching openOCD debugger in Eclipse [message #1750879 is a reply to message #1749925] Fri, 30 December 2016 18:54 Go to previous message
Colin daly is currently offline Colin dalyFriend
Messages: 7
Registered: December 2016
Junior Member
Ok so I figured it out with major credit due to http://www.carminenoviello.com. Running this in terminal:

>telnet localhost 3333
localhost: nodename nor servname provided, or not known


showed this wasn't working correctly. checking /etc/hosts, the file was empty. I changed it to:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost


And that was that. Can now enter debug mode.

[Updated on: Fri, 30 December 2016 18:56]

Report message to a moderator

Previous Topic:[[gnu::unused]] is marked as incorrect syntax.
Next Topic:where and how to size boundary of structure alignment
Goto Forum:
  


Current Time: Tue Jan 25 20:07:21 GMT 2022

Powered by FUDForum. Page generated in 0.01700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top