cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX bug report: Error in generating Makefile

Ludwig Horsthemke
Associate
Posted on November 02, 2017 at 16:28

Hello,

after upgrading CubeMX to version 4.0 on linux I noticed a bug in the generation of ./Makefile. The '# paths' section includes *.c files next to the directories and the '# sources' section includes some files twice. You can find an example makefile at

https://pastebin.com/Qs7SmrZR

. This leads to compile time errors like

build/stm32f1xx_hal_timebase_TIM.o: In function `HAL_InitTick':
~/workspace/test107/Src/stm32f1xx_hal_timebase_TIM.c:79: multiple definition of `HAL_InitTick'
�?�?�?�?�?

Please have a look if you can recreate this.

Kind regards,

Ludwig

#bug-report
13 REPLIES 13
Posted on April 29, 2018 at 22:56

Has this issue been resolved?

We are having a weird situation where one CubeMX installation generates correct Makefile files but another generates files as described in this issue. According to the About screen, we are running the same version.

Thoughts?

Posted on April 30, 2018 at 00:58

I ended up removing the files from the build as I don't need them for my current project. I will investigate this issue further and will post my results if I have any luck

Posted on May 04, 2018 at 17:34

It appears that the problem is board specific. Generating the make file

for the F4 discovery is a problem. Other configurations work just fine.

On Sun, Apr 29, 2018, 3:59 PM Cameron Moore <st-microelectronics@jiveon.com>

Houda GHABRI
ST Employee
Posted on June 04, 2018 at 10:02

Hello

Horsthemke.Ludwig

,

Issue is fixed in CubeMX 4.0 (will be available this week).

Regards,

Houda