Hi ,
I am having evmC6678 ,I am trying to IPC among the 8 cores ,I have 8 projects and each project has it own .out file and i am loading it onto respective cores (8 cores) among those i did IPC it is working fine,when the ownerprocid is 0 ,please find the .cfg i used
var Notify = xdc.useModule('ti.sdo.ipc.Notify');
var SharedRegion = xdc.useModule('ti.sdo.ipc.SharedRegion');
var Cache = xdc.useModule('ti.sysbios.hal.Cache');
var BIOS = xdc.useModule('ti.sysbios.BIOS');
var Settings = xdc.useModule('ti.csl.Settings');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var Ipc = xdc.useModule('ti.sdo.ipc.Ipc');
var MultiProc = xdc.useModule('ti.sdo.utils.MultiProc');
Program.linkTemplate = "ti/targets/elf/linkcmdC6678.xdt";
var nameList = MultiProc.getDeviceProcNames();
var HeapBufMP = xdc.useModule('ti.sdo.ipc.heaps.HeapBufMP');
var System = xdc.useModule('xdc.runtime.System');
var SysStd = xdc.useModule('xdc.runtime.SysStd');
Ipc.procSync = Ipc.ProcSync_PAIR;
MultiProc.setConfig(null,[ "CORE0","CORE1","CORE2","CORE3","CORE4","CORE5","CORE6","CORE7"]);
BIOS.heapSize = 0x8000;
System.SupportProxy = SysStd;
SharedRegion.numEntries = 2;
SharedRegion.translate = false;
SharedRegion.setEntryMeta(0,
{ base: 0x0C000000,
len: 0x00200000,
ownerProcId: 0,
isValid: true,
name: "internal_shared_mem",
}
);
SharedRegion.setEntryMeta(1,
{ base: 0x0C200000,
len: 0x00200000,
isValid: true,
name: "internal_shared_mem_data",
}
);
my idea is to make ownerprocID as 4
if i change the ownerprocID to 4 i am getting error when i try to attach cores , firstly core0 to core4 getting attached and i got error( ti.sdo.heapmem error ).
my question is it mandatory to have ownerprocid is 0 because sharedregion entry should be done with index 0 so that ipc_start is done ,in the same way to do ipc_attach() ownerprocid should be 0?
for the same above cfg i madefollowing change:
MultiProc.setConfig(null,[ "CORE4","CORE5","CORE6","CORE7","CORE0","CORE1","CORE2","CORE3"]);
and i given ownerprocid 0 only ipc_attach works fine.
Please clarify ,Thanks in advance .
Regards,
Harikrishna