cancel
Showing results for 
Search instead for 
Did you mean: 

System Workbench build error new project from CubeMX

asergeev
Associate II
Posted on January 09, 2017 at 21:58

Summary of 2 days investigations for CubeMX and System Workbench

For success build without errors imported project generated in CubeMX, need fix generated symbols

In Project->Properties->C/C++ Builds->Settings->MCU GCC Compiler->Symbols

__weak=__attribute__((weak))

__packed=__attribute__((__packed__))

need set values __attribute__((XXXXX)) in double quotes - '__attribute__((XXXXX))'

Sample:

__weak='__attribute__((weak))'

__packed='__attribute__((__packed__))'

Else you can see follow errors after import

23:19:10 **** Incremental Build of configuration Debug for project blink ****

make all

Building file: ../Src/main.c

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

/bin/sh: -c: line 0: `arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak? -Dpacked=attributepacked? -DUSE_HAL_DRIVER -DSTM32F303xC -I'/Users/asergeev/stm/workspace/blink/Inc' -I'/Users/asergeev/stm/workspace/blink/Drivers/STM32F3xx_HAL_Driver/Inc' -I'/Users/asergeev/stm/workspace/blink/Drivers/STM32F3xx_HAL_Driver/Inc/Legacy' -I'/Users/asergeev/stm/workspace/blink/Drivers/CMSIS/Device/ST/STM32F3xx/Include' -I'/Users/asergeev/stm/workspace/blink/Drivers/CMSIS/Include' -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF'Src/main.d' -MT'Src/main.o' -o 'Src/main.o' '../Src/main.c''

make: *** Src/main.o Error 2

Invoking: MCU GCC Compiler

/Users/asergeev/stm/workspace/blink/Debug

arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak? -Dpacked=attributepacked? -DUSE_HAL_DRIVER -DSTM32F303xC -I'/Users/asergeev/stm/workspace/blink/Inc' -I'/Users/asergeev/stm/workspace/blink/Drivers/STM32F3xx_HAL_Driver/Inc' -I'/Users/asergeev/stm/workspace/blink/Drivers/STM32F3xx_HAL_Driver/Inc/Legacy' -I'/Users/asergeev/stm/workspace/blink/Drivers/CMSIS/Device/ST/STM32F3xx/Include' -I'/Users/asergeev/stm/workspace/blink/Drivers/CMSIS/Include' -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF'Src/main.d' -MT'Src/main.o' -o 'Src/main.o' '../Src/main.c'

#cube-mx-ac6-system-workbench-iap #stm32cubemx
1 ACCEPTED SOLUTION

Accepted Solutions
stm32cube-t
Senior III
Posted on January 16, 2017 at 13:51

Dear Users,

This issue (encountered on MAC and Linux OS only) will be fixed with STM32CubeMX 4.19 next release.

Best regards

View solution in original post

7 REPLIES 7
Imen.D
ST Employee
Posted on January 10, 2017 at 11:05

Dear

Sergeev.Andrew

‌,

Could you please provide more details about

CubeMX and System Workbench versionused ?

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on January 10, 2017 at 14:27

IMEN,

Yesterday Mac OS X  (last version SW & CubeMX with last update procedures)

Now i recheck on Linux (Ubuntu 16 LTS). 

System Workbench for STM32 - C/C++ Embedded Development Tools for MCU

Version: 1.12.0.201612060912

Build id: @build@

CubeMX 4.18

Problem with generated symbols without quotes is still

0690X00000605HnQAI.png

After fix symbols

0690X000006061EQAQ.png

Build successfull...

0690X000006061YQAQ.png
Posted on January 10, 2017 at 16:37

Hello

Sergeev.Andrew

‌,

Please note that your issue is reported internally

for more investigation and will come back to you as soon as possible.

We apologize for any inconvenience this may cause and thank you for your understanding.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
ChrisH
Associate III
Posted on January 10, 2017 at 20:19

I believe this was reported around month ago

stm32cube-t
Senior III
Posted on January 16, 2017 at 13:51

Dear Users,

This issue (encountered on MAC and Linux OS only) will be fixed with STM32CubeMX 4.19 next release.

Best regards

Posted on January 31, 2017 at 10:42

Dear Users,

The new release of STM32CubeMx 4.19.0 is already available and fixes this issue.

Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Sirma Siang
ST Employee
Posted on February 01, 2017 at 16:07

Please update your Eclipse AC6 plugin as well.

Kind regards

Sirma