Skip to main content
frackers
Senior
Feb 25, 2020 8:51 AM UTC
Question

CubeMX generates garbage CDEF line in Makefile

I've just recently started to use makefiles and one of the requirements is passing a few defines to the compiler.

These I define in CDEF as

CDEF = -DVAR1 -DVAR2 -DVAR3

but after running the code generation, CubeMX has changed that to

-DCDEF = VAR1 VAR2 VAR3

which does absolutely nothing as the variable DCDEF is not referenced in the gcc command line

What is it trying to do?

Cheers

This topic has been closed for replies.

1 reply

Houssem CHAABANI
Visitor II
Nov 18, 2020 8:17 AM UTC

Dear @frackers​, 

Thank you for your feedback.

It's recommended to use the last version of STM32CubeMX.

Could you please share you .IOC file ?

Best regards,

Houssem