Error 258 on CubeMX imported project
Hi,
I’m pretty new to SW4STM32, CubeMX and HAL libraries (so far I’ve been using Coocox IDE, with standard peripheral firmware).
In CubeMX, I’ve set up the simplest configuration for a NucleoF401 (all IPs to standard config) and carrefully followed all the steps to create/import CubeMX project into SW4STM32 (up to the Artifact name stuff).
Then, when I try to buid the project I’ve got this problem (see console output below).
Any clue ? I wonder why “arduino” is showing up... I’ve done nothing for that ! The project toolchain is Ac6 STM32 MCU GCC.
I’m using latest releases of both SW4STM32 and CubeMX (4.9).
Sorry, it’s probably something stupid...
Thanks for help.
13:01:50 **** Build of configuration Debug for project nucleoF401 Configuration ****
make all
Building file: D:/myworkspace/nucleoF401/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c
Invoking: MCU GCC Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F401xE -I......\Inc -I......\Drivers\STM32F4xx_HAL_Driver\Inc -I......\Drivers\STM32F4xx_HAL_Driver\Inc\Legacy -I......\Drivers\CMSIS\Include -I......\Drivers\CMSIS\Device\ST\STM32F4xx\Include -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.d” -MT”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” -o “Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” “D:/myworkspace/nucleoF401/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c”
“C:/Program Files/Arduino/hardware/tools/avr/utils/bin/sh.exe”: -c: line 1: syntax error near unexpected token `-Dweak=attribute__((’
“C:/Program Files/Arduino/hardware/tools/avr/utils/bin/sh.exe”: -c: line 1: `arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F401xE -I......\Inc -I......\Drivers\STM32F4xx_HAL_Driver\Inc -I......\Drivers\STM32F4xx_HAL_Driver\Inc\Legacy -I......\Drivers\CMSIS\Include -I......\Drivers\CMSIS\Device\ST\STM32F4xx\Include -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -MMD -MP -MF”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.d” -MT”Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” -o “Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o” “D:/myworkspace/nucleoF401/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c”’
make: *** Drivers/STM32F4xx_HAL_Driver/stm32f4xx_hal.o Error 258
13:01:50 Build Finished (took 240ms)