问题
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:
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.
My host computer is running Windows 10.
回答1:
cd
to /cygdrive/c/OpenOCD/share/openocd/scripts
and then execute openocd -f file1 -f file2
.
Alternatively, command shown in the picture of the question seems to work in the normal windows command prompt no matter the current working directory.
来源:https://stackoverflow.com/questions/46673651/cannot-find-script-files-with-openocd