cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX generates garbage CDEF line in Makefile

frackers
Senior

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 discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Houssem CHAABANI
Senior II

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