2016-09-08 2 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

openocd 구성 파일이 다른 스크립트를 포함하는 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 –

관련 문제