Other Parts Discussed in Thread: OMAPL138, SYSBIOS, OMAP-L138
hello there...
currently i'm trying to get IPC to work on an OMAPL138 system. with no luck at the moment.
on arm and dsp i'm using SYSBIOS 6.35.04.50. IPC version is 3.22.01.08.
my problems are completely at the beginning... during ipc_attach. i'm not able to sync the two cores. does anybody have a hint, where i could start searching.
i'm really helpless at the moment, as all the hints i extracted from e2e forums did'nt work for me...
thank you for your help
peter
my cfg files are as follows:
ARM:
DSP:
my sources for arm and dsp are as follows:
ARM:
Int main()
{
Int status,slaveID,masterID;
slaveID = MultiProc_getId("DSP");
status = Ipc_start();
if (status == Ipc_E_FAIL)
{
System_printf("Ipc_start() failed core 0\n");
System_exit(0);
}
System_printf("Attaching to slaveId= %d..\n", slaveID);
status = Ipc_attach(slaveID);
while(status < 0)
{
status = Ipc_attach(slaveID);
}
BIOS_start(); /* does not return */
return(0);
}
DSP:
Int main()
{
Int status,slaveID,masterID;
status = MultiProc_self();
status = Ipc_start();
/*
* use ROV->SysMin to view the characters in the circular buffer
*/
System_printf("enter dsp main()\n");
masterID = MultiProc_getId("HOST");
System_printf("Attaching to masterId= %d..\n", masterID);
System_flush();
status = Ipc_attach(masterID);
while(status < 0)
{
//Task_sleep(1);
status = Ipc_attach(masterID);
}
System_printf("Attached to masterId= %d..\n", masterID);
System_flush();
BIOS_start(); /* does not return */
return(0);
}