Skip to main content
frackers
Senior
February 25, 2020
Question

CubeMX generates garbage CDEF line in Makefile

  • February 25, 2020
  • 1 reply
  • 693 views

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
November 18, 2020

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