2017-01-09 12:58 PM
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 #stm32cubemxSolved! Go to Solution.
2017-01-16 04:51 AM
Dear Users,
This issue (encountered on MAC and Linux OS only) will be fixed with STM32CubeMX 4.19 next release.
Best regards
2017-01-10 02:05 AM
Dear
Sergeev.Andrew
,Could you please provide more details about
CubeMX and System Workbench versionused ?
Best Regards
Imen
2017-01-10 06:27 AM
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
After fix symbolsBuild successfull...
2017-01-10 08:37 AM
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
2017-01-10 11:19 AM
I believe this was reported around month ago
2017-01-16 04:51 AM
Dear Users,
This issue (encountered on MAC and Linux OS only) will be fixed with STM32CubeMX 4.19 next release.
Best regards
2017-01-31 02:42 AM
Dear Users,
The new release of STM32CubeMx 4.19.0 is already available and fixes this issue.
Regards
Imen
2017-02-01 07:07 AM
Please update your Eclipse AC6 plugin as well.
Kind regards
Sirma