2016-09-08 109 views
0

我有麻烦使用OpenOCD。由于某些原因,OpenOCD 找不到swj-dp.tcl,但该文件存在于C:\ OpenOCD \ share \ openocd \ scripts \ target中。OpenOCD - 无法找到目标/ swj-dp.tcl

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 

Error Message

你对我有什么想法或建议吗?谢谢

+0

包括错误消息文本:) –

回答

1

问题出在配置文件是包含其他脚本的TCL脚本。只有在提供的搜索目录(IIRC,默认只有当前目录)中搜索包含脚本的脚本。所以,你需要提供额外的搜索目录:

openocd -s C:\OpenOCD\share\openocd\scripts -f ... 
+0

我有同样的问题,因为OP,它使用-s标志和正确的路径脚本文件夹时,仍然存在甚至。还有什么我可以尝试? –

+0

@SimonCarlson你可以将错误信息移植到某处吗? –

+0

我在这里发布了一个问题:https://stackoverflow.com/questions/46673651/cannot-find-script-files-with-openocd –

相关问题