Skip to main content
zamek42
Associate II
December 28, 2016
Question

STM32Cube FW_F4 V1.14.0 error on SW4STM32

  • December 28, 2016
  • 1 reply
  • 1029 views
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

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    December 29, 2016
    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    zamek42
    zamek42Author
    Associate II
    December 30, 2016
    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

    Technical Moderator
    January 31, 2017
    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks