问题描述
我正按照本教程尝试将OpenOCD与我的ST发现板一起使用: https ://japaric.github.io/discovery/README.html .验证OpenOCD安装时,出现以下错误:
I'm trying to use OpenOCD together with my ST discovery board, following this tutorial: https://japaric.github.io/discovery/README.html. When verifying the OpenOCD installation I get the following error:
我尝试提供所有文件的绝对路径,但是它不起作用.我还尝试使用scripts/board文件夹中的脚本文件.他们显示了类似的问题,找不到文件.解决这个问题的任何指示都很棒.
I've tried providing absolute paths to all files, it does not work. I also tried using the script files found in the scripts/board folder. They showed similar issues, the files cannot be found. Any pointers on solving this would be great.
我的主机正在运行Windows 10.
My host computer is running Windows 10.
推荐答案
cd
到/cygdrive/c/OpenOCD/share/openocd/scripts
,然后执行openocd -f file1 -f file2
.
或者,无论当前工作目录如何,问题图片中显示的命令似乎都可以在正常的Windows命令提示符下运行.
Alternatively, command shown in the picture of the question seems to work in the normal windows command prompt no matter the current working directory.
这篇关于无法使用OpenOCD查找脚本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!