Loading...
 
Skip to main content

System Workbench for STM32


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

Copy to clipboard
__weak="__attribute__((weak))"
Copy to clipboard
__packed="__attribute__((__packed__))"

While using Windows, there is no issue with :

Copy to clipboard
__weak=__attribute__((weak))
Copy to clipboard
__packed=__attribute__((__packed__))
 
Collapse/expand modules below