工具/软件:Code Composer Studio
大家好、
如果我想清除 MCU TMS320F28377S 中的堆栈存储器以避免堆栈过流问题、该怎么办。 如果可以的话
在运行时清除 MCU 的堆栈存储器、我该如何操作、请给出建议。
此致
Naveen
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.
工具/软件:Code Composer Studio
大家好、
如果我想清除 MCU TMS320F28377S 中的堆栈存储器以避免堆栈过流问题、该怎么办。 如果可以的话
在运行时清除 MCU 的堆栈存储器、我该如何操作、请给出建议。
此致
Naveen
Naveen、
编译器维护堆栈以保存程序运行所需的数据。 随时使用的堆栈深度由[SP]寄存器指示。 您可以使用一些已定义的数据加载未使用的堆栈部分、但不能干扰程序正在使用的堆栈部分。
您能否详细说明一下"清除堆栈"是什么意思?
BTW、这里有一个有关检测堆栈溢出的应用手册、可能对此感兴趣:
http://www.ti.com/lit/an/spra820/spra820.pdf
此致、
Richard