Loading...
 

STM32MP1 support available in SW4STM32

   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 download a short video showcasing this on the ac6-tools website (registration required).

System Workbench for STM32


You are viewing a reply to AC6 + CubeMX include problems  

AC6 + CubeMX include problems

the error /bin/sh: 1: Syntax error: “(” unexpected

Is caused by the command line that is not quite valid containing parentheses

the full command line is

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -D _ _ weak=attribute ( ( weak ) ) -Dpacked=attribute ( ( packed__ ) ) -DUSE_HAL_DRIVER -DSTM32F401xE “-I..\..\..\Inc” “-I..\..\..\Drivers\STM32F4xx_HAL_Driver\Inc” “-I..\..\..\Drivers\STM32F4xx_HAL_Driver\Inc\Legacy” “-I..\..\..\Middlewares\ST\STM32_USB_Device_Library\Core\Inc” “-I..\..\..\Middlewares\ST\STM32_USB_Device_Library\Class\HID\Inc” “-I..\..\..\Drivers\CMSIS\Include” “-I..\..\..\Drivers\CMSIS\Device\ST\STM32F4xx\Include” “-I..\..\..\Inc” -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -o “Drivers\STM32F4xx_HAL_Driver\stm32f4xx_hal_gpio.o” “..\..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_gpio.c”

that parts is causing the issue
-D”weak=attributeweak -Dpacked=attributepacked

that should be quoted in some way if started over sh
i just found the same issue with eclipse/mars on window7 with latest cubemx generated code.

This is due to how the 2 symbol are defined.
Strange are this symbosl for weak and packed required anyway it work wihout ?

if you switch the tool chain builder from “gnu make” to CDT internal one that one shall be fixed

the post build step command line is also causing issue with eclipse internal builder

arm-none-eabi-objcopy -O binary “${BuildArtifactFileBaseName}.elf” “${BuildArtifactFileBaseName}.bin” && arm-none-eabi-size “${BuildArtifactFileName}”

that is cos of the && use “;” instead of && that will do to seperate and start several post/pre build command (shall be ok even with gnu make builder)

All that are maybe more CubeMX .cproject issues than ac6 itlsef.