Not sure if this is the issue of CubeMX or not but as of CubeMX v4.18, the xml file (.cproject) has been changed slightly from
__weak="attribute((weak))"
to just
__weak=attribute((weak))
So you may need to add the missing quots to the C_DEFS string, i.e.,
C_DEFS = -D__weak="attribute_((weak))"
instead of
C_DEFS = -D__weak=attribute_((weak))
Not sure if this is the issue of CubeMX or not but as of CubeMX v4.18, the xml file (.cproject) has been changed slightly from
__weak="attribute((weak))"
to just
__weak=attribute((weak))
So you may need to add the missing quots to the C_DEFS string, i.e.,
C_DEFS = -D__weak="attribute_((weak))"
instead of
C_DEFS = -D__weak=attribute_((weak))