【发布时间】:2013-05-03 09:46:57
【问题描述】:
有人可以帮我理解 openocd 的“无效命令名称”错误吗?一些细节:
- openocd 0.7.0 windows 二进制
- olimex arm-usb-ocd-h 加密狗
- lpc3250 phytec 开发板
我已经完成的步骤:
- 从http://www.freddiechopin.info/en/download/category/4-openocd下载文件“openocd-0.7.0.7z”
- 将其解压缩到“c:\oocd7\”。
- 按照“c:\oocd7\drivers\libusb-1.0drivers.txt”中的说明运行“sadig.exe”为以下三个USB设备安装“libusb-win32”驱动程序。
- 然后得到下面详细描述的错误。
命令和错误截图:
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
非常感谢任何 cmets!
【问题讨论】:
-
您是否尝试过颠倒文件的顺序?看来您需要将接口文件放在板文件之前。 [elinux.org/OpenOCD_Troubleshooting:_Invalid_Command_Name_JTAG]
-
@Derek,没错。你能把你的评论变成答案吗?
标签: windows debugging arm jtag openocd