我在新操作系统上设置openOCD和Eclipse,使用Nucleo F030R8板在另一个系统上进行调试。当我在Eclipse中运行调试器时,我在最终启动序列中得到错误":
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.
我可以使用 ./ openocd -f board / st_nucleo_f0.cfg 在终端中运行调试器并获取:
*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
http://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''*
并且LED LD1交替闪烁绿色和红色。同样,我可以在Eclipse中运行外部工具,但这并没有打开调试器。所以我似乎很接近,但有些事情并不恰当。如果您需要我的系统的任何其他详细信息,请告诉我。
使用:
Eclipse Mars.2(4.5.2)
Mac 10.12.1
OpenOCD 0.10.0-201601101000-dev
GNU工具gcc-arm-none-eabi-5_4-2016q3
答案 0 :(得分:1)
好的,所以我认为http://www.carminenoviello.com导致了主要功劳。在终端中运行:
>telnet localhost 3333
localhost: nodename nor servname provided, or not known
显示这不正常。检查 / etc / hosts ,文件为空。我改成了:
##
# 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
就是这样。现在可以进入调试模式。