CDT + OpenOCD + GDB = not working [message #1743753] |
Mon, 19 September 2016 08:59  |
Eclipse User |
|
|
|
Hi everyone,
sorry if this is offtopic at this place, didnt find anywhere else to post this.
My System:
-Windows 7
-Eclipse Neon Release (4.6.0) CDT + the OpenOCD plugin
- OpenOCD 0.10.0-dev-00287-g85cec24-dirty (2016-01-10-10:13)
The hardware is a ST-Link V2 for STM32 micros.
I created a new project and setup the debug config according to tutorials. Now it is basically working, but I can not see any source code, just disassemby. I added all the config to the debugconfiguration (stlink-v2.cfg and stm32f1x.cfg). It shows me an error "No source available for "0x0" ". Googling this gave me a few solutions from which none worked.
One thing that may be a point is that I am not actually using the ELF file, which is not generated. Instead I use the OUT file. Could that have anything to do with it or is the OUT file identical to a generated ELF file?
Am thankfull for any tips.
Regards
|
|
|
|
|
|
|
|
|
Re: CDT + OpenOCD + GDB = not working [message #1749829 is a reply to message #1743823] |
Mon, 12 December 2016 18:01   |
Eclipse User |
|
|
|
Hi there,
Having a difficult time getting the openOCD debugger to launch in a new setup. I am setting up openOCD and Eclipse on a new operating system, using a Nucleo F030R8 board that debugs fine on another system. When I launch the debugger in Eclipse I 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.
For what it's worth, 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. 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
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07646 seconds