我使用OpenOCD有麻烦。由于某些原因,OpenOCD 找不到swj-dp.tcl,但是文件存在于C:\openocd\share\openocd\\中。
Open On-Chip Debugger 0.9.0 (2015-08-15-12:41)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
C:\OpenOCD\share\openocd\scripts\target\stm32f1x.cfg:6: Error: Can't find target/swj-dp.tcl
in procedure 'script'
at file "embedded:startup.tcl", line 60
at file "C:\OpenOCD\share\openocd\scripts\target\stm32f1x.cfg", line 6错误消息
你对我有什么想法或建议吗?谢谢
发布于 2016-09-08 11:52:51
问题的根源在于openocd配置文件是包含其他脚本的TCL脚本。并且只在提供的搜索目录(IIRC,默认情况下仅搜索当前目录)中搜索包含的脚本。因此,您需要提供额外的搜索目录:
openocd -s C:\OpenOCD\share\openocd\scripts -f ...https://stackoverflow.com/questions/39386058
复制相似问题