Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


OpenOCD Binary not found

After 1.6 update run Debug and get “OpenOCD Binary not found”.
How can i repair SW4STM32?


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

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)


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.

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)



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.


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs