Loading...
 
Skip to main content

System Workbench for STM32


OpenOCD Binary not found

Hi.

I just got the same error. I've installed AC6 as an eclipse plugin within eclipse Mars on Windows 10. But, adding a - at the end of the OpenOCD command worked around the problem.
To my humble opinion Eclipse (or the underlying Java environment) does not execute the command correctly. E.g. it does probably use the CLI and does not hand over the path properly. (The Windows CLI needs double qoutes around the path if there are spaces) There are double qoutes in the value of the OpenOCD command but it seems they are removed before the execution of the command. But, in windows there are many ways to invoke an application. Probably one of them is more convenient than the CLI.
Additionally, the plugin directory of eclipse is constructed from a relative path (on my system: ../../../../Users/MartinK/.p2/pool/plugins/). This is prefixed by "C:\Program Files\eclipse\cpp-mars\eclipse\\", where the space comes in.

A comment of mine:
Removing spaces from installation directories is not an option for me! Seriously, that is just an excuse of a lazy programmer.
On one hand this breaks the layout of the Windows directory structure because you will reach a point where you have dozens of extra folders in your root drive. And I feel back in the 90ies if I would see this. Why don't you suppose to use 8.3 directory and file names again? On the other hand you only have an influence on the eclipse installation directory if you setup AC6 as a plugin. I once did use extra folders in my root drive to group programs by their purpose. But, meanwhile I think it is more practicable to have them all together in a single directory.

Greets,
Martin.

 
Collapse/expand modules below