2016-12-21 09:15 AM
STM32CubeMX version 4.17 in Ubuntu 16.10 generates projects, which SWSTM32 is compiling without any problems.
STM32CubeMX version 4.18 in Ubuntu 16.10 generates projects, which SWSTM32 refuse to compile.
The compilation of project was stoped with an error message:
<p>
09:25:29 **** Incremental Build of configuration Debug for project STM32VL_DDS ****
make all Building file: ../Src/main.c/bin/sh: 1: Syntax error: '(' unexpectedInvoking: MCU GCC Compiler/home/wshurpa/workspace/STM32VL_DDS/Debugarm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -D__weak=__attribute__((weak)) -D__packed=__attribute__((__packed__)) -DUSE_HAL_DRIVER -DSTM32F100xB -I'/home/wshurpa/workspace/STM32VL_DDS/Inc' -I'/home/wshurpa/workspace/STM32VL_DDS/Drivers/STM32F1xx_HAL_Driver/Inc' -I'/home/wshurpa/workspace/STM32VL_DDS/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy' -I'/home/wshurpa/workspace/STM32VL_DDS/Drivers/CMSIS/Device/ST/STM32F1xx/Include' -I'/home/wshurpa/workspace/STM32VL_DDS/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'Src/subdir.mk:27: ?????? ????????? ??????? ??? ???? �Src/main.o� ??????? ???????make: *** [Src/main.o] ??????? 2 09:25:30 Build Finished (took 111ms)</p>
Problem does not occur in STM32CubeMX version 4.18 for Windows.
I must use STM32CubeMX version 4.17 in Ubuntu because this problem.
Thank you for support!
With best regards
Vitaliy
#ubuntu #swstm32 #linux #stm32cubemx #openstm322016-12-21 10:58 AM
Hi
Shurpa.Vitaliy
I have moved your post to
https://community.st.com/community/stm32-community/stm32-forum/activity
where product-related questions are asked. If you have any further questions post them here.Thanks
Oli
2016-12-21 01:57 PM
Hi Vitaliy,
I had the same problem in Ubuntu. To fix it you need to enclose __packed and __weak symbols values into quotation marks:
- go to Project Settings->C/C++ General->Paths and Symbols
- Symbols tab
- add quotation marks to
__packed and __weak symbols
values -> '__attribute__((__packed__))' and '__attribute__((weak))'Best regards,
Artur
2016-12-22 12:27 PM
Artur!
Thank You for solving problem!
This is working now after I have done that You recommend.With best regards
Vitaliy
2016-12-23 12:48 AM
Hi
Shurpa.Vitaliy
,I'll report this issue to our MX team for more checking.Sorry for the inconvenience it may bring.
Wodejko.Artur
Thanks for sharing the solution you found, in fact this is theidea behind the STM32 forum (and any other forum ) is to look for help and share experiences/solutions.-Nesrine-
2016-12-23 09:36 AM
Thanks for support!
I hope, this problem will be fixed in mext release of STM32CubeMX.
With best regards
Vitaliy