Tool/software: TI-RTOS
I am creating a separate heap space in the cfg file so I can allocate to different memory section.
/* Create heap as global variable so it can be used in C code */
var heapMemParams = new HeapMem.Params();
heapMemParams.size = 65536*8;
heapMemParams.sectionName = ".mbxHeap";
Program.global.daqMbxHeap = HeapMem.create(heapMemParams);
//Program.sectMap[".mbxHeap"] = "MSMCSRAM";
Program.sectMap[".mbxHeap"] = "DDR3B";
It doesn't matter whether I assign the section to DDR3 or MSMC, the linker causes the heap space to be loaded with the program. I tried assigning the section as suggested in another forum post:
Program.sectMap[".mbxHeap"].type = "NOLOAD";
but that didn't change the behavior at all.
We are using automatically-generated linker cmd files, so please don't suggest methods based on customizing linker.cmd.
Thanks,
Bruce