OpenOCD Binary not found Posted by k000858 on 2015-12-14 04:35 After 1.6 update run Debug and get "OpenOCD Binary not found". How can i repair SW4STM32?
Posted by tang on 2015-12-17 09:48 Hi, Please verify in your debug configuration (Run > Debug Configurations...) that the OpenOCD command value is "${openstm32_openocd_path}\openocd.exe". Did you add arguments in this command ? (if you did, they should not be under the executable path double quote. Regards, Kevin Ac6 openocd_debug.png (60.83 Kb)
Posted by k000858 on 2015-12-18 04:52 Hi! I didnt change anythink in Debug configuration. It was "${openstm32_openocd_path}\openocd.exe" and it has error OpenOCD Binary not found (after 1.6 update. Installed under Eclipse Mars.1 ) But if I change to "${openstm32_openocd_path}\openocd.exe" -d or "${openstm32_openocd_path}\openocd.exe" - it work (Debug and Run)
Posted by tang on 2015-12-22 09:24 Hi, I cannot reproduce this behavior. I'm still investigating it. As no one else has yet report the same problem, can you tell me on which OS you are using System Workbench ? Regards, Kevin.
Posted by k000858 on 2015-12-22 12:31 Hi! Win10 64bit Home Eclipse IDE for C/C++ Developers Version: Mars.1 Release (4.5.1) Build id: 20150924-1200 Java version 8 Update 66 (build 1.8.0_66-b18)
Posted by piezores on 2016-02-03 11:01 As mentioned by laurent here: http://www.openstm32.org/tiki-view_forum_thread.php?comments_parentId=1785&forumId=7 Deleting the spaces in the path to openocd solved the problem at my "System Workbench for STM32".
Posted by martink on 2016-02-15 10:29 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.