Other Parts Discussed in Thread: TMS320C6670, SYSBIOS
Hello.
I'm using my own board with TMS320C6670 (and EVMc6670 for evaluation), CCs.v.5.5, SYS/BIOS 6.35.4.50, MCSDK 2.1.2.6, and NDK 2.24.1.18 (for ETHERNET)
And there is a problem with System Heap.
I have to make a great System Heap (NDK library requires a lot of it). And good idea is to place it to DDR.
I try create SysHeap in DDR3 staticaly. Via XDC configuration:
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
var heapMemParams = new HeapMem.Params();
heapMemParams.size = 0x300000;
heapMemParams.sectionName = "systemHeap";
Program.sectMap["systemHeap"] = "DDR3";
Program.global.heap0 = HeapMem.create(heapMemParams);
Memory.defaultHeapInstance = Program.global.heap0;
But then I get error while loading and running my project. Because DDR3 are not initialized yet.
DDR3 init procedure is performes in my project later than SysHeap init procedure.
And I can't organize System Heap dinamicaly after DDR3 Init procedure via SYS/BIOS functions because there is no SYS/BIOS function
which is equivalent to XDC command:
Memory.defaultHeapInstance = Program.global.heap0;
And how can I solve this problem?
Whether there is an opportunity to create System Heap dinamicaly after DDR3 init?
Or can I assign my own Heap (not System) for NDK library?
Thanks. With regards. Alexander.