有人可以帮我理解openocd的“无效命令名称”错误吗?一些细节:
我已经完成的步骤:
命令和错误屏幕截图:
c:\oocd7>c:\oocd7\bin-x64\openocd-x64-0.7.0.exe -f board\phytec_lpc3250.cfg -f interface\olimex-arm-usb-ocd-h.cfg
Open On-Chip Debugger 0.7.0 (2013-05-05-10:44)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Runtime Error: c:/oocd7/bin-x64/../scripts/target/lpc3250.cfg:34: invalid command name "jtag"
in procedure 'script'
at file "embedded:startup.tcl", line 58
at file "c:/oocd7/bin-x64/../scripts/board\phytec_lpc3250.cfg", line 1
at file "c:/oocd7/bin-x64/../scripts/target/lpc3250.cfg", line 34
使用“libusb-win32”驱动程序安装的设备:
Olimex OpenOCD JTAG ARM-USB-OCD-H Interface 0
Olimex OpenOCD JTAG ARM-USB-OCD-H Interface 1
USB component Device
非常感谢任何评论!
答案 0 :(得分:3)
您需要将接口文件放在电路板文件之前。
而不是:
> openocd -f board\phytec_lpc3250.cfg -f interface\olimex-arm-usb-ocd-h.cfg
你想:
> openocd -f interface\olimex-arm-usb-ocd-h.cfg -f board\phytec_lpc3250.cfg
来源:http://elinux.org/OpenOCD_Troubleshooting:_Invalid_Command_Name_JTAG