AnsweredAssumed Answered

Troubles with STM32CubeMX version 4.18 in Ubuntu 16.10.

Question asked by Shurpa.Vitaliy on Dec 21, 2016
Latest reply on Dec 23, 2016 by Shurpa.Vitaliy

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

Outcomes