cancel
Showing results for 
Search instead for 
Did you mean: 

bug in stm32cubemx 4.23 makefile generator

Richard Benson
Associate
Posted on November 19, 2017 at 21:26

(I'm sorry if this is the wrong place to report this)

STM32CubeMX 4.23 (tested with MacOS High Sierra, Arch Linux x86_64 with x32 binary emulation) is generating spurious entries during Makefile generation (such as Src/main.c and various other files listed twice) which causes link errors such as:

'.../Src/usb_device.c:63: multiple definition of `MX_USB_DEVICE_Init'

build/usb_device.o:.../Src/usb_device.c:63: first defined here'

The temporary fix is to remove any multiple entries from the Makefile, then all compiles and links (apparently) correctly.

Apologies If there's something wrong with my setup that is causing this, granted I've seen it reported elsewhere when searching for solutions to these errors

#stm32cubemx #bug #4.23
10 REPLIES 10
Houda GHABRI
ST Employee
Posted on June 01, 2018 at 12:51

Hi

richardbenson91477

,

This issue will be resolved in next CubeMX release: 4.0.

Regards,

Houda