strange link error when trying to compile imported project from STM32CubeMX
I have created a custom project for the STM32F051K8T6 micro. When importing the generated Files and trying to compile I get the following error:
make all
Building file: /home/uli/ARMtoolchain/newWS/STM32Tracker/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c
/bin/sh: 1: Syntax error: “(” unexpected
Invoking: MCU GCC Compiler
make: *** Drivers/STM32F0xx_HAL_Driver/stm32f0xx_hal.o Fehler 2
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F051x8 -IInc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF”Drivers/STM32F0xx_HAL_Driver/stm32f0xx_hal.d” -MT”Drivers/STM32F0xx_HAL_Driver/stm32f0xx_hal.o” -o “Drivers/STM32F0xx_HAL_Driver/stm32f0xx_hal.o” “/home/uli/ARMtoolchain/newWS/STM32Tracker/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c”
12:31:50 Build Finished (took 58ms)
Any idea what goes wrong?
Thanks,
Uli