This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IPC_attach 返回值提示为-11(Ipc_E_NOTREADY)



你好:

        我用mcsdk里的IPC MessageQ对核1和核0通信,其中核0是the owner of SharedRegion,核1IPC_attach  返回值提示为0,连接成功,而核0里的IPC_attach  返回值提示为-11(Ipc_E_NOTREADY),这是什么原因导致的呢?

值是0核的main函数:

int main(void)
{
int  status;
status =Ipc_start();

int status_0;
do {
statuss = Ipc_attach(1);
printf("status_0= %d\n",status_0);
} while (status_0 < 0);

/* Start the BIOS 6 Scheduler */
BIOS_start ();

return 1;
}

这是1核的main:

int main()
{

int status;
status =Ipc_start();

int status_slave;
do {
status = Ipc_attach(0);
} while (status_slave < 0);

/* Start the BIOS 6 Scheduler */
BIOS_start ();
}