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


Linux : Ac6 on desktop (IDE) vs Ac6 on build machine (no IDE)

Pretty easy.

On Desktop, with IDE

  • Install Ac6 (GUI installator)
  • Lauch it (at first launch, it seems to do a couple of things ...)
  • Open a project for a STM32L4 target
  • Compile it
  • It works!


On build machine, no IDE_

  • Install Ac6 (command line install)
  • Try to compile code (/var/lib/Ac6/eclipse -nosplash --launcher.suppressErrors -no-indexer -data /var/lib/jenkins/WSL -application org.eclipse.cdt.managedbuilder.core.headlessbuild -import ./ -cleanBuild Project/Target || true)
  • Get error on gcc, g++, make not found in path


On desktop, it seems to use “openstm32_compiler_path” which is “/var/lib/Ac6/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.17.0.201812190825/tools/compiler/bin” (on my desktop of course)
On build machine, “/var/lib/Ac6/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.17.0.201812190825/tools/compiler” exists but is empty.

Any idea?

Hi,

On first launch in GUI mode, It installs (extracts) the toolchain and the debugger. This cannot be done on headless (no-GUI) mode. To solve this, you can manually install the toolchain by extracting the archive /var/lib/Ac6/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.17.0.201812190825/tools/st-gnu-arm-gcc[...].tar.z2 into to the /var/lib/Ac6/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.17.0.201812190825/tools/ directory then rename the dir st-gnu-arm[...] into “compiler”

The toolchain folder tree should be:

/var/lib/Ac6/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.17.0.201812190825/
  tools/
    compiler/
        arm-none-eabi/
        bin/
        lib/
        share/


Regards.