Dear all ,
When you define a new heapmem you should define a section name. Should this section be defined in the cmd file , or not ?
For example
var heapMemParamsCM_Env = new HeapMem.Params;
heapMemParamsCM_Env.size = 0x00030000 ;
heapMemParamsCM_Env.align = 32;
heapMemParamsCM_Env.sectionName = "cmHeapsection";
heapMemParamsCM_Env.instance.name = "cmEnvironHandle";
Program.global.cmEnvironHandle = HeapMem.create(heapMemParamsCM_Env);
Program.sectMap["cmHeapsection"] = "EDRAM";
Should the cmHeapSection be deifned in the cmd file, or no?
Then I cannot understand , when I define a new module , for example a task, what I must choose to set, a section or a heapMem. Must the section be the same with the section that is used for the definion of the heapMem that is used for this module?
I try to define a new logBuffer, I have define the heapMem for this and in the ROV I notice that heapMem is not used
var heapMemParamsLOGRAM = new HeapMem.Params;
heapMemParamsLOGRAM.size = 0x00e7FF00;
heapMemParamsLOGRAM.align = 32;
heapMemParamsLOGRAM.sectionName = "logRamHeapsection";
heapMemParamsLOGRAM.instance.name = "logRamSection_handle";
Program.global.logRamSection_handle = HeapMem.create(heapMemParamsLOGRAM);
Program.sectMap["logRamHeapsection"] = "LOGRAM";
var loggerBuf0Params = new LoggerBuf.Params();
loggerBuf0Params.instance.name = "DBG_traceLogHandle";
loggerBuf0Params.bufHeap = Program.global.logRamSection_handle;
loggerBuf0Params.bufType = LoggerBuf.BufType_CIRCULAR;
loggerBuf0Params.exitFlush = true;
loggerBuf0Params.numEntries = 64;
Program.global.DBG_traceLogHandle = LoggerBuf.create(loggerBuf0Params);
Could you please clarify the aforementioned points?
Best regards
George

