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


France

Hi Bernard,

The reason it changed between 1.8 and no more in 1.14 or 2.0 was that, to avoid other problems, we included a bourne-compatible shell with make. So the fix proposed by jLn_38 is correct (include mkdir) but it’s not enough...

In fact you should adapt sligtly your makefile for it to work. There is two options there:

  1. Adapt your test to use the shell built-in test feature:
    if [ ! -d build ]; then mkdir build; fi
  2. Take advantage of the fact the mkdir is now a unix-like mkdir, which support the -p options, that allows you to just omit the test:
    mkdir -p build


Suppressing sh.exe from the plugin may fix your issue, but you will then have problems with, for example, projects generated by CubeMX; moreover, keeping the shell will allow you to use advanced makefile techniques.

In the future System Workbench for Linux may well require the shell to be able to compile correctly, so it’s probably better you correct your makefiles.

Hope this clarifies things,

Bernard (Ac6)