2022-01-02 02:03 AM
Happy New Year everyone!!!
Could you tell me why I get in STM32CubeIDE a warning "expected declaration specifiers or '...' before numeric constant"?
In this line:
__align(4) char variable[16] = ""; // buffer starts on 4-byte boundary
How to fix it?
2022-01-02 05:50 AM
Don't use directives (__align()) which are not supported by the compiler you are using.
If you use gcc, read https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#Common-Variable-Attributes
JW
2022-01-09 12:25 PM
Better use the CMSIS defined macros: