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


Syntax Error: "(" unexpected

Hi,

I am trying to use SWSTM32 on Ubuntu (32 bit) 15.04. After generating a project in STMCube32MX I try to compile the project and I get the following error.

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F401xE -IInc -IDrivers/STM32F4xx_HAL_Driver/Inc -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32F4xx/Include -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.d” -MT”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” -o “Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” “/home/haemish/stm32workspace/DoorUnlocker/DoorUnlocker/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c”
/bin/sh: 1: Syntax error: “(” unexpected
Drivers/STM32F4xx_HAL_Driver/subdir.mk:54: recipe for target ‘Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o’ failed
make: *** Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o Error 2

I have done a little digging and it seems this may have something to do with the fact that I am running 32 bit ubuntu. I have tried installing these as suggested:
sudo apt-get install libc6:i386 lib32ncurses5
I noticed that the lib32ncurses5 does not exist but I did find libx32ncurses5.....I am hoping this is the same thing.

Does anyone have an idea what the problem is here?

Hi,

I think the “(” is a special character for the shell terminal.
Can you add double quote for the weak and the packed symbols values in the project properties > C/C++ General > Paths and Symbols > Symbols.

__packed="__attribute__((__packed__))"
__weak="__attribute__((weak))"


Kevin.