Other Parts Discussed in Thread: SYSBIOS
I created a multi-core project in a c6678. Generate an executable file. Eight core at the same time to run the. Out file, run the process found very
strange phenomenon, after a series of tests found is a memory conflict. Because I used a lot of dynamic memory application code and eight core at the
same time from a heapmem dynamic application memory will conflict, so I created the eight core heapmem, I think to the eight heapmem were distributed
to eight cores in, ask how to achieve?
var heapMem0Params = new HeapMem.Params();
heapMem0Params.instance.name = "H0";
heapMem0Params.size = 0x2000000//204857600*3/2;
heapMem0Params.align = 8;
heapMem0Params.sectionName = "myHeap0";
Program.global.task0Heap = HeapMem.create(heapMem0Params);
Program.sectMap["myHeap0"] = "DDR2";
//Program.global.INTMEM_HEAP = HeapMem.create(heapMem0Params);
Memory.defaultHeapInstance = Program.global.task0Heap;
//Memory.defaultHeapInstance = Program.global.INTMEM_HEAP;
var heapMem1Params = new HeapMem.Params();
heapMem1Params.instance.name = "H1";
heapMem1Params.size = 0x2000000//204857600*3/2;
heapMem1Params.align = 8;
heapMem1Params.sectionName = "myHeap1";
Program.global.task1Heap = HeapMem.create(heapMem1Params);
Program.sectMap["myHeap1"] = "DDR3";
//Program.global.INTMEM_HEAP = HeapMem.create(heapMem0Params);
Memory.defaultHeapInstance = Program.global.task1Heap;
//Memory.defaultHeapInstance = Program.global.INTMEM_HEAP;
For example, the above I create the two heapmem, how were they are assigned to the first nuclear and a second nuclear.
In short, also is in a single image, a cfg file created eight core heapmem. To this single image download to 0-7 cores, how to each core dynamic
application to locate a heapmen.