Importing a Cube MX project
The weak and packed symbols could be useful. It would be wise to keep those.
While using OS-X, add ” arround the symbol definition :
- Right-click on the project >> Properties >> C/C++ Build >> Settings >> Tools Settings tab >> MCU GCC Compiler >> Symbols
__weak="__attribute__((weak))"
__packed="__attribute__((__packed__))"
While using Windows, there is no issue with :
__weak=__attribute__((weak))
__packed=__attribute__((__packed__))