:0:21: error: stray '\' in program
Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c:235:1: note: in expansion of macro '__weak'
__weak void HAL_MspInit(void)
^~~~~~
the error is repeted 4 times evrytime the '__weak' keyword is called
I actually found that it was a problem in the make file. Probably caused by the transition from linux to mac. All i had to do was remove the the '\' around and inside the ((__weak)) call in the Makefile.
hi, after following all the steps for the STM project i get a weird error when building for the first time:
08:47:56: Exécution des étapes pour le projet confighid... 08:47:56: Débute : "/usr/bin/make" DEBUG=GDB arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Dweak="attribute((weak))" -Dpacked="attribute((packed))" -DUSE_HAL_DRIVER -DSTM32F429xx -IDrivers/CMSIS/Device/ST/STM32F4xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32F4xx_HAL_Driver/Inc -IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy -IInc -IMiddlewares/ST/STM32_USB_Device_Library/Class/HID/Inc -IMiddlewares/ST/STM32_USB_Device_Library/Core/Inc -O0 -Wall -fdata-sections -ffunction-sections -std=c99 -MD -MP -MF build/.dep/stm32f4xx_hal.o.d -Wa,-a,-ad,-alms=build/stm32f4xx_hal.lst Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c -o build/stm32f4xx_hal.o