Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hi,
I have in my project a big heap that is placed into DDR3:
BIOS.heapSize = 262144;
BIOS.heapSection = "HEAP_SECTION";
Program.sectMap["HEAP_SECTION"] = new Program.SectionSpec();
Program.sectMap["HEAP_SECTION"].loadSegment = "DDR3";
I've discovered that sysbios Hwi store its dispatchTable into the heap. To avoid performance issue I want to split my heap to put a small part in L2 and the big part in DDR3. So I've created a new heap and defined it as default. I've assumed that sysbios Hwi will continue to use "BIOS heap" and that "new ()" in my code will go into this default heap, but Hwi also used this default heap:
var Defaults = xdc.useModule('xdc.runtime.Defaults');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var heapMemParams = new HeapMem.Params;
heapMemParams.size = 262144;
heapMemParams.sectionName = ".myHeap";
Program.global.heap1 = HeapMem.create(heapMemParams);
Defaults.common$.instanceHeap = Program.global.heap1;
Program.sectMap["HEAP_SECTION"] = new Program.SectionSpec();
Program.sectMap["HEAP_SECTION"].loadSegment = "L2SRAM";
Program.sectMap[".myHeap"] = new Program.SectionSpec();
Program.sectMap[".myHeap"].loadSegment = "DDR3";
How is it possible to put sysbios allocated memory into L2 and memory allocated by me in DDR3?
thanks
(I'm using sysbios 6.46.00.23, xdctool 3.32.00.06, compiler 7.4.16)

