有人可以帮助我了解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
非常感谢任何评论!
最佳答案
您需要将接口(interface)文件放置在电路板文件之前。
代替:> 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