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.

[参考译文] UCD3138064:如何知道堆栈使用情况?

Guru**** 2507585 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/1199547/ucd3138064-how-can-i-do-to-know-stack-usage

器件型号:UCD3138064

各位专家、您好!

我们的客户希望了解我们的 MCU 堆栈大小和堆栈使用情况。

我知道堆栈大小、但我不知道堆栈使用情况。

如何获取堆栈使用?

谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    一个选项是使用 Memory Peek/Poke 读取堆栈位置、并查看使用了多少大小。 RAM 初始化为0、因此如果存在 unsed、您将看到零。

    此致、

    徐美