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


/bin/sh: -c: line 0: syntax error near unexpected token `('

I just found similar on Linux on a newly generated (by cubemx 4.18) project.

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

when building with :
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak -Dpacked=attributepacked......

Parentheses like () means to process in a sub-shell in a posix shell, so this won’t work on Linux / OSX. The solution for me was to escape with " in the .cproject file as jea74 suggested - thanks !

I tried to post the exact changes I made for reference but the forum just truncates the post.
Anyway, just seen the post above about the bug report...

Thanks @dangermouse that worked for me

My issue poped up when I upgraded to STM32CubeMX 4.18.0
The correct values were infact in the .cproject file, however the incorrect ones with the bad syntax were also, there so I just commented them out