cancel
Showing results for 
Search instead for 
Did you mean: 

Bug Report: STM32CubeMX creates broken makefiles

S D
Associate
Posted on March 16, 2018 at 16:57

The original post was too long to process during our migration. Please click on the attachment to read the original post.
2 REPLIES 2
jankostial9
Associate II
Posted on March 24, 2018 at 11:41

I have the same problem (multiple definition) with STM32CubeFX 4.25, but no warnings about wchar_t usage.

'multiple definition' errors are caused by duplicates in generated Makefile. After duplicates removal the project is compiled without errors using arm-none-eabi-gcc 4.8.3-2014q1.

May be the wchar_t warnings are compiler version specific (or compiler settings - flags).

William Ransohoff
Associate II
Posted on April 04, 2018 at 07:54

I have the same issue with arm-none-eabi-gcc 4.9.3, and I also get warnings about wchar_t.

Just like Jan, I found that the generated Makefile had duplicate entries for 'src/main.c' and 'src/stm32f0xx_it.c', and removing those fixed the project to the point where it would compile, although it did not remove the warnings.