请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F28377D 你好!
如下图所示、 在我的 sicarx 中断服务函数中、我使用 for 循环为 rdataA[]数组分配值。 因为我使用了嵌套函数、所以该函数将被其他中断服务函数中断。 在这种情况下、数组大小可能会溢出到254、但最大值为16。 rdataA[]数组被定义为全局变量。
为什么该数组会溢出、如何避免这种情况?
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你好!
如下图所示、 在我的 sicarx 中断服务函数中、我使用 for 循环为 rdataA[]数组分配值。 因为我使用了嵌套函数、所以该函数将被其他中断服务函数中断。 在这种情况下、数组大小可能会溢出到254、但最大值为16。 rdataA[]数组被定义为全局变量。
为什么该数组会溢出、如何避免这种情况?
谢谢!