2016-09-08 105 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 –

相關問題