请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC3220SF 尊敬的 E2E 团队:
在没有连接调试器的情况下、哪个函数可用于确定运行时可用堆的数量?
谢谢、
标记
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.
尊敬的 E2E 团队:
在没有连接调试器的情况下、哪个函数可用于确定运行时可用堆的数量?
谢谢、
标记
Mark、您好!
对于 TI RTOS、您可以使用以下代码:
#include "XDC/Runtime/Memory.h"
Memory_Stats stats;
Memory_getStats (NULL、&stats);
print ("total:0x%x"、stats.totalSize);
Print ("免费:0x%x (%d%%)"、stats.totalFreeSize、(stats.totalFreeSize*100)/ stats.totalSize);
print ("最大:0x%x (%d%%)"、stats.largestFreeSize、 (((stats.largestFreeSize*100)/stats.totalSize));
1月