cancel
Showing results for 
Search instead for 
Did you mean: 

Troubles with STM32CubeMX version 4.18 in Ubuntu 16.10.

Vitaliy Shurpa
Associate II
Posted on December 21, 2016 at 18:15

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: '(' unexpected

Invoking: MCU GCC Compiler

/home/wshurpa/workspace/STM32VL_DDS/Debug

arm-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 #openstm32
5 REPLIES 5
Oliver Beirne
Senior
Posted on December 21, 2016 at 19:58

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

Artur Wodejko
Associate
Posted on December 21, 2016 at 22:57

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

Posted on December 22, 2016 at 20:27

Artur!

Thank You for solving problem!

This is working now after I have done that You recommend.

With best regards

Vitaliy

Nesrine M_O
Lead II
Posted on December 23, 2016 at 09:48

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-

Posted on December 23, 2016 at 17:36

Thanks for support!

I hope, this problem will be fixed in mext release of STM32CubeMX.

With best regards

Vitaliy