STM32常见错误error: #268: declaration may not appear after executable statement in block

此错误中文意思:声明不能在可执行语句后出现。

表示有变量在函数后面声明,应该改为在函数开头声明变量。

因为keil 默认编译标准是C89,解决方法:

STM32常见错误error: #268: declaration may not appear after executable statement in block_第1张图片

你可能感兴趣的:(MCU调试问题收集总结)