Other Parts Discussed in Thread: SYSBIOS
“Thread:SysBIOS”中讨论的其它部件
基于设置
*:CCS 11.0或最新版本。
*:符合 TI x20.2.6.LTS 或最新版本。
*:XDCTools 3.32.2.25
*:Ti-RTOS for TiaC <tirtos_tivac_2_16_01_14>
*:TiaWare_C_Series 2.1.71b
我希望在运行时不时临时检查堆,然后将其删除。
我已经阅读 了关于 HeapTrack 和的 SPRUEX3P (第166页)
文件://E:/010_WorkAOT/011MyGit20/106-TM4C_2021/tirtos_tivac_2_16_01_14/products/BIOS_6_45_02_31/docs/cdOC/ ti/SysBIOS/堆/HeapTrack.html
我将代码放入 cfg 中
/* ================ Kernel (SYS/BIOS) configuration ================ */
var BIOS = xdc.useModule('ti.sysbios.BIOS');
//BIOS.assertsEnabled = true;
BIOS.assertsEnabled = false;
/*
* Specify default heap size for BIOS.
*/
//BIOS.heapSize = 5120; //ex 1024. 5120 for FATFS.
BIOS.heapSize = 10000; //Will it fix crashes?
BIOS.heapTrackEnabled = true; // RGP: 6Jan21: To debug Heap operation ,remove when not needed.
BIOS.includeXdcRuntime = false;
//BIOS.includeXdcRuntime = true;…
//----------------------------------------------Heap Debug
#include <ti/sysbios/heaps/HeapTrack.h> // to debug heaps. See SPRUEX3T, page 166.
#include <xdc/runtime/IHeap.h>
#include <xdc/runtime/Memory.h>
......
HeapTrack_Handle heap;
void RFD_Heap_Init(void)
{
//-------------------------Heap Monitor
HeapTrack_Params prms;
//HeapTrack_Handle heap;
Error_Block eb;
Error_init(&eb);
HeapTrack_Params_init(&prms);
prms.heap = heapHandle;
heap = HeapTrack_create(&prms, &eb);
if (heap == NULL) {
System_abort("HeapTrack create failed");
}
}
我不确定“heapHandle”来自哪里?你能给出建议吗?
谢谢。