Syntax error about __weak and __packed
The problem here is that the value of the symbol should NOT contain any quotes!
Every f***ing time I regenerate the sources of my project with CubeMX, I have to remove those quotes. They don’t belong there and certainly result in invalid syntax (from the CDT Indexer point of view).
The quotes seem to be stripped when the compiler command is generated. So nobody seems to notice the error.