Tool/software: TI-RTOS
I have create a HeapBuf, and I want to use malloc() function to alloc memory from the HeapBuf. So, what should I do?
The .cfg is follow:
var heapBuf0Params = new HeapBuf.Params();
heapBuf0Params.instance.name = "heapBuf0";
heapBuf0Params.numBlocks = 16;
heapBuf0Params.blockSize = 16777216;
Program.global.heapBuf0 = HeapBuf.create(heapBuf0Params);
HeapBuf.common$.instanceHeap = null;
Memory.defaultHeapInstance = Program.global.heapBuf0;
Memory.common$.instanceHeap = null;