Problem building project from Eclipse - Windows 10
12:18:06 **** Incremental Build of configuration Debug for project prueba2_sinADC ****
make all
Building file: C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c
Invoking: MCU GCC Compiler
%cd%
arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F051x8 -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Inc” -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/STM32F0xx_HAL_Driver/Inc” -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/STM32F0xx_HAL_Driver/Inc/Legacy” -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/CMSIS/Device/ST/STM32F0xx/Include” -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/CMSIS/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” “C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c”
/usr/bin/sh: -c: line 0: syntax error near unexpected token `(’
/usr/bin/sh: -c: line 0: `arm-none-eabi-gcc -mcpu=cortex-m0 -mthumb -mfloat-abi=soft -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F051x8 -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Inc” -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/STM32F0xx_HAL_Driver/Inc” -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/STM32F0xx_HAL_Driver/Inc/Legacy” -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/CMSIS/Device/ST/STM32F0xx/Include” -I”C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/CMSIS/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” “C:/STM32Toolchain/projects-kepler/prueba2_sinADC/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c”’
make: *** Drivers/STM32F0xx_HAL_Driver/stm32f0xx_hal.o Error 1
12:18:07 Build Finished (took 544ms)
-----
I can’t build my project because of this error.
I’m using the STM32CubeMX in order to create my project (stm32f0discovery).
Then I use Eclipse to build it.
Thanks for any help!