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 two short videos (registration required) highlighting:

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.

 

Newest Forum Posts

  1. Firmware Installation Process Issue by valkundesuyash@gmail.com, 2019-12-12 16:14
  2. STM32F746-Discovery by stanandrzej, 2019-12-12 13:55
  3. Can't debug by deksnys4life, 2019-12-12 08:16
  4. Can't download StdPeriph library during project creation by klopi90, 2019-12-09 08:46
  5. Building project - subdir.mk error by nupurkohadkar1997, 2019-12-06 18:10
  6. openOCD Wrong device detected by maxim221, 2019-12-06 12:32
  7. STM32429I_Discovery board with printf float support problem by johannes.visser@msc-technologies.eu, 2019-12-05 16:08
  8. malloc heap issue with CubeMX Project by johannes.visser@msc-technologies.eu, 2019-12-05 16:04
  9. Debugger not working by Daniel Jack Morley, 2019-11-27 21:46
  10. Compiler change problem by Lucian Pop, 2019-11-20 17:41

Last-Modified Blogs