我正在一个新的操作系统上设置 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