2016-12-28 09:42 AM
Hi All,
Maybe something went wrong on the new FirmWare template, because it generates the make command without double quote around __weak= and __packed= switches like this:
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -D__weak=__attribute__((weak)) -D__packed=__attribute__((__packed__)) -DUSE_HAL_DRIVER -DSTM32F411xE -I'/home/zamek/stm32/BluenrgTest/Inc' -I'/home/zamek/stm32/BluenrgTest/Drivers/STM32F4xx_HAL_Driver/Inc' -I'/home/zamek/stm32/BluenrgTest/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy' -I'/home/zamek/stm32/BluenrgTest/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F' -I'/home/zamek/stm32/BluenrgTest/Drivers/CMSIS/Device/ST/STM32F4xx/Include' -I'/home/zamek/stm32/BluenrgTest/Middlewares/Third_Party/FreeRTOS/Source/include' -I'/home/zamek/stm32/BluenrgTest/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS' -I'/home/zamek/stm32/BluenrgTest/Drivers/CMSIS/Include' -Os -g3 -Wall -fmessage-length=0 -ffunction-sections -c -fmessage-length=0 -MMD -MP -MF'Src/freertos.d' -MT'Src/freertos.o' -o 'Src/freertos.o' '../Src/freertos.c'
The compiler cannot compile this line without double quotes. When I change it to manually it works well.
thx,
Zamek
2016-12-29 05:16 AM
Dear
Zidarics.Zoltan
,Thank you forhighlighting yourissue.
Which version of SW4STM32 are you using ?
I will check this case andcome back to you as soon as possible.
Best Regards
Imen
2016-12-30 06:23 AM
Dear Imen,
I use eclipse Luna on Linux and sw4stm32 is:
System Workbench for STM32 - C/C++ Embedded Development Tools for MCU
Version: 1.12.0.201612060912
thx a lot and Happy New Year!
Zamek
2017-01-31 02:37 AM
Hi @Zamek,
This issue is fixed in CubeMX v4.19.0.
P
lease update your CubeMx version and keep me informed about your updates.
Regards
Imen
2017-06-11 08:22 AM
What is the status of this? I have the same issue in 4.20.1. It appears that Src/freertos.c must &sharpinclude 's
tm32l4xx_hal_def.h
' 'stm32l4xx_hal.h' (stm32l4xx_hal_def.h is missing dependent includes) for these macros to be defined. I have to add it manually every time I create a new freertos project.