baoshi / CubeMX2Makefile

STM32CubeMX project to Makefile converter
152 stars 52 forks source link

CubeMX v4.18 - Syntax error: "(" unexpected #20

Open slee-ensil opened 7 years ago

slee-ensil commented 7 years ago

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))

menshiyun commented 7 years ago

line 64. after _CDEFS = -Dweak="__attribute((weak))" -Dpacked="__attribute((__packed__))" instead of -Dweak=__attribute((weak)) -Dpacked=__attribute((__packed__))