cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube FW_F4 V1.14.0 error on SW4STM32

zamek42
Associate II
Posted on December 28, 2016 at 18:42

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

4 REPLIES 4
Imen.D
ST Employee
Posted on December 29, 2016 at 14:16

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on December 30, 2016 at 14:23

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

Posted on January 31, 2017 at 10:37

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on June 11, 2017 at 15:22

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.