CubeMX2Makefile
CubeMX2Makefile copied to clipboard
CubeMX v4.18 - Syntax error: "(" unexpected
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))
line 64. after C_DEFS = -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" instead of -D__weak=__attribute__((weak)) -D__packed=__attribute__((__packed__))