Hello
I use ccsv4 and bios6 and the evmc6472 platform
I want to create a heap in the DDR2 Memory and another heap in the LL2RAM.so I write in the cfg file these commands.
/***************************************************************/
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');
//********* create a heap in DDR2 Memory***********/
var heap0 = new HeapMem.Params();
heap0.size = 0x3000000;
heap0.sectionName = ".DDR2Heap";
Program.global.DDR_Heap = HeapMem.create(heap0);
Memory.defaultHeapInstance = Program.global.DDR_Heap;
Program.sectMap[".DDR2Heap"] = "DDR2";
Program.sectMap[".sysmem"] = "DDR2";
Program.heap = 0x3000000;
//********* create a heap in LL2RAM Memory***********/
var heap1 = new HeapMem.Params();
heap1.size = 0xc000;
heap1.sectionName = ".L2RAMHeap";
Program.global.L2_Heap = HeapMem.create(heap1);
Memory.defaultHeapInstance = Program.global.L2_Heap;
Program.sectMap[".L2RAMHeap"] = "LL2RAM";
Program.sectMap[".sysmem"] = "LL2RAM";
Program.heap = 0xc000;
so please could you tell me if these commands are true or not or if there are others thinks that i have to add .
After that, how can I use Memory_alloc in the main.c file and wich library .h i should add and how can i use these two heaps to allocate two vectors
unsigned char * vect1 in the DDR2 and unsigned char * vec2 in the LL2RAM .they have the same size :256.
i think that i have to use extern and IHeap_Handle but i don't know how i used them.
please give me the right ticks to do that.
and thank you
david