Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

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