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.

[参考译文] CCS/CC3235SF:为了调试与堆相关的问题、我需要手动输入堆内存句柄。 是否可以在运行时分配。

Guru**** 2587365 points


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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/921098/ccs-cc3235sf-i-need-to-manually-enter-the-heap-memory-handle-in-order-to-debug-issues-relating-to-heap-can-this-be-assigned-at-runtime

器件型号:CC3235SF

工具/软件:Code Composer Studio

您好!

为了调试我的代码上的问题、我有一个读取和显示 UART 日志中使用的堆内存的配置。 为此、我需要在编译后手动调试代码、并将堆内存句柄附加到我从 ROV 中的堆内存条目获取的代码中。

每次我编译时、执行此操作会变得乏味。 我是否有办法在运行时从代码中获取这个堆内存句柄详细信息并分配它来实现同样的目的。

现在、我复制堆句柄将其分配给类型为 IHeap_handle 的变量、并将其馈送到  Memory_getStats(..) 它将存储器相关信息作为其参数之一返回。

此致、

否。