Skip to main content
S D
Visitor II
March 16, 2018
Question

Bug Report: STM32CubeMX creates broken makefiles

  • March 16, 2018
  • 2 replies
  • 948 views
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.
    This topic has been closed for replies.

    2 replies

    jankostial9
    Associate
    March 24, 2018
    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
    April 4, 2018
    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.