Hi:
I running H264HPVCENC example (
C66x_h264hpvenc_01_00_01_03_ELF
) on 66AK2H14 CPU, when set to multicore mode, it always runs failed when call ipcAttach, ipcOpen, Could someone can give any suggestion? thanks.
debug steps:
/*--------------------------------------------------------------------*/
/* When ncores > 1, attach owner core with other cores */
/*--------------------------------------------------------------------*/
// Change sync mode to ProcSync_ALL
if(ncores > 1)
ipcAttachOwner(ncores); // will failed here, trace the code, this function will call Ipc_attach(), and this call will failed
if(create_share_once) {
if(lParams.ividmc->core_task_ID == IVIDMC_TASK_MASTER) {
/* Master core creates barrier */
ipcBarCreate(ncores);
ipcCreateShare(sizeof(H264HPVENC_Shared_MemTab), (void**)&codecShm);
} else {
/* Slave core opens barrier created by master core */
ipcBarOpen(lParams.ividmc->coreID);
ipcOpenShare((void**)&codecShm);
}
create_share_once = 0;
}
then I set Ipc Ipc.procSync = Ipc.ProcSync_ALL; in config file, and remove Ipc_Attach call
master core call ipcBarCreate(ncores) will success, but when slave core call ipcBarOpen(lParams.ividmc->coreID) will failed, return value is -11(IPC_E_NOTREADY)
Could someone give suggestion??