AnsweredAssumed Answered

Generated makefile has duplicated entries for some source files

Question asked by Raivis Strogonovs on Nov 1, 2017
Latest reply on Feb 12, 2018 by Jeanne Joly
Branched from an earlier discussion

CubeMX 4.23.  

Board nucleo-f429zi and STM32CubeF4 is of v1.17.0

Compiling with makefile arm-gcc-none-eabi       version: 5.3 2016q1

 All is done on linux

 

I just noticed another thing,

Completely freshly generated makefile has duplicate entries for some of the source files:

 

I see gpio.c, main.c, usb_otg.c have been duplicated, maybe more, it's just some I've noticed by quickly reading the list my self. 

 

C_SOURCES = \
Middlewares/Third_Party/LwIP/src/netif/ppp/ccp.c \
Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c \
Middlewares/Third_Party/LwIP/src/core/ipv6/nd6.c \
Src/gpio.c \
Src/gpio.c \

 

 

Here is a link to full makefile generated by cubemx

Makefile pastebin 

Outcomes