Skip to main content
asergeev
Associate
January 9, 2017
Solved

System Workbench build error new project from CubeMX

  • January 9, 2017
  • 7 replies
  • 1823 views
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
This topic has been closed for replies.
Best answer by stm32cube-t
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

7 replies

ST Technical Moderator
January 10, 2017
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
asergeev
asergeevAuthor
Associate
January 10, 2017
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
ST Technical Moderator
January 10, 2017
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
ChrisH
Associate III
January 10, 2017
Posted on January 10, 2017 at 20:19

I believe this was reported around month ago

stm32cube-t
stm32cube-tBest answer
ST Employee
January 16, 2017
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

ST Technical Moderator
January 31, 2017
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Sirma Siang
ST Employee
February 1, 2017
Posted on February 01, 2017 at 16:07

Please update your Eclipse AC6 plugin as well.

Kind regards

Sirma