Other Parts Discussed in Thread: SYSBIOS
Hi,
By default heap is created in L2SRAM. But since I wanted to move it to DDR3, I added below piece of code in the .cfg file.
/*********************************************************************************/
var BIOS = xdc.useModule('ti.sysbios.BIOS');
BIOS.clockEnabled = false;
BIOS.heapSize = 0x400000; //16MB
BIOS.heapSection = ".appHeap"
Program.sectMap[".appHeap"] = new Program.SectionSpec();
Program.sectMap[".appHeap"] = "DDR3";
/*********************************************************************************/
I'm coding in C++. When I create an object of a class type, it is created in heap. But when I do this in multiple cores, it is created in the same DDR heap section and returning the same pointer to these objects in multicore.
Can anyone help me in creating individual heap sections for multicores?
Regards,
Amy