IAR for AVR 遇到'CStack' is filled to 100%

使用ATmega128a时,由于其内部sram只有4KB,这4KB的sram要跑应用程序要存储

全局数据,要存储局部变量及函数的参数。

一旦程序开辟的buffer过大,超过了框允许的最大容量后,就会出现如下警告信息:

Wed Feb 11 15:51:31 2015: The stack 'CStack' is filled to 100% (672 bytes used out of 672). The warning threshold is set to 90.%

一旦发生以上警告,MCU进入无休止的复位状态。即遇到CStack超限情况就复位。

原文地址:https://www.cnblogs.com/aqing1987/p/4286435.html