1

我正在一个新的操作系统上设置 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 中运行外部工具,但这不会打开调试器。所以看起来我很接近了,但有些地方不太对劲。如果您需要我的系统的任何其他详细信息,请告诉我。

使用:

日食 Mars.2 (4.5.2)

Mac 10.12.1

OpenOCD 0.10.0-201601101000-dev

GNU 工具 gcc-arm-none-eabi-5_4-2016q3

4

1 回答 1

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

就是这样。现在可以进入调试模式。

于 2016-12-30T18:59:17.963 回答