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 Mint, install

Italy


Hi All,
system is a CORE i7 linux mint 17.3,

previous STM32 version was fine, upgrading to 2.3 left IDE on failure.

First issue arise from access right:
/bin/sh: arm-none-eabi-gcc: command not found

after setting folder access and file right to read and execute compiler run but stop again with errors:

arm-none-eabi-gcc: error trying to exec ‘cc1’: execvp: No such file or directory
make: *** Drivers/STM32L0xx_HAL_Driver/stm32l0xx_hal.o Error 1

launch on terminal:
:/opt/Ac6/SystemWorkbench_2_3/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.15.0.201708311556/tools/compiler/bin$ ./arm-none-eabi-gcc -print-prog-name=cc1
cc1

Best regards
Roberto




Full text from console:
13:31:10 **** Build of configuration Debug for project Test_L011_Blink ****
make all
Building file: /home/roberto-mint/Stm_wkspc/Test_MinBrd103_c6/Blink_test_1/Test_L011_Blink/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal.c
Invoking: MCU GCC Compiler
/home/roberto-mint/Stm_wkspc/Test_MinBrd103_c6/Blink_test_1/Test_L011_Blink/SW4STM32/Test_L011_Blink/Debug
arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -mfloat-abi=soft ‘-Dweak=attributeweak’ ‘-Dpacked=”attributepacked”’ -DUSE_HAL_DRIVER -DSTM32L011xx -I”/home/roberto-mint/Stm_wkspc/Test_MinBrd103_c6/Blink_test_1/Test_L011_Blink/Inc” -I”/home/roberto-mint/Stm_wkspc/Test_MinBrd103_c6/Blink_test_1/Test_L011_Blink/Drivers/STM32L0xx_HAL_Driver/Inc” -I”/home/roberto-mint/Stm_wkspc/Test_MinBrd103_c6/Blink_test_1/Test_L011_Blink/Drivers/STM32L0xx_HAL_Driver/Inc/Legacy” -I”/home/roberto-mint/Stm_wkspc/Test_MinBrd103_c6/Blink_test_1/Test_L011_Blink/Drivers/CMSIS/Include” -I”/home/roberto-mint/Stm_wkspc/Test_MinBrd103_c6/Blink_test_1/Test_L011_Blink/Drivers/CMSIS/Device/ST/STM32L0xx/Include” -I”/home/roberto-mint/Stm_wkspc/Test_MinBrd103_c6/Blink_test_1/Test_L011_Blink/Inc” -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF”Drivers/STM32L0xx_HAL_Driver/stm32l0xx_hal.d” -MT”Drivers/STM32L0xx_HAL_Driver/stm32l0xx_hal.o” -o “Drivers/STM32L0xx_HAL_Driver/stm32l0xx_hal.o” “/home/roberto-mint/Stm_wkspc/Test_MinBrd103_c6/Blink_test_1/Test_L011_Blink/Drivers/STM32L0xx_HAL_Driver/Src/stm32l0xx_hal.c”
arm-none-eabi-gcc: error trying to exec ‘cc1’: execvp: No such file or directory
make: *** Drivers/STM32L0xx_HAL_Driver/stm32l0xx_hal.o Error 1

13:31:10 Build Finished (took 63ms)

Italy

debug on terrminal:
./arm-none-eabi-gcc -v

Using built-in specs.
COLLECT_GCC=./arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/opt/Ac6/SystemWorkbench_2_3/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/lto-wrapper
Target: arm-none-eabi
Configured with: /tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/src/gcc/configure target=arm-none-eabi prefix=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-native libexecdir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-native/lib infodir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-native/share/doc/gcc-arm-none-eabi/info mandir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-native/share/doc/gcc-arm-none-eabi/man htmldir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-native/share/doc/gcc-arm-none-eabi/html pdfdir=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-native/share/doc/gcc-arm-none-eabi/pdf enable-languages=c,c++ enable-plugins disable-decimal-float disable-libffi disable-libgomp disable-libmudflap disable-libquadmath disable-libssp disable-libstdcxx-pch disable-nls disable-shared disable-threads disable-tls with-gnu-as with-gnu-ld with-newlib with-headers=yes with-python-dir=share/gcc-arm-none-eabi with-sysroot=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/install-native/arm-none-eabi build=x86_64-linux-gnu host=x86_64-linux-gnu with-gmp=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-native/host-libs/usr with-mpfr=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-native/host-libs/usr with-mpc=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-native/host-libs/usr with-isl=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-native/host-libs/usr with-libelf=/tmp/jenkins-GCC-6-buildandreg-223_20170621_1498033910/build-native/host-libs/usr with-host-libstdcxx=’-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm’ with-pkgversion=’GNU Tools for ARM Embedded Processors 6-2017-q2-update’ with-multilib-list=rmprofile
Thread model: single
gcc version 6.3.1 20170620 (release) ARM/embedded-6-branch revision 249437 (GNU Tools for ARM Embedded Processors 6-2017-q2-update)

seems all is fine

./arm-none-eabi-gcc -print-prog-name=cc1

/opt/Ac6/SystemWorkbench_2_3/plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/cc1

Executables on folder /lib/gcc/arm-none-eabi/6.3.1/cc1 again where missing execution right.
After setting file execution right
project compile but still don’t resolve library and other include file....


Italy

About final step, more step must be apply’d to repair broken installation, to provide all user package access.

Install as root require -f switch I chosed to install on /opt/Ac6/SystemWorkbench_2_3 to preserve previous installation.

After execution of install, file access rights where not set as required to run system wide.

Clean and reindex from menu, after that project build without error and resolve include and library.
After building, target can be downloaded with success for both run and debug.

Best regards
Roberto


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs