I am attempting to get some code running on a 6472 which uses core 0 and 2, and core 0 is not getting past the IPC_Attach call.
Below is the basic pseudo code of what I have:
core0:
main()
{
IPC_Start()
do{
status = IPC_Attach(slaveID);
}while(status <0)
PLL_init()
GPIO_init()
I2C_init()
DDR2_init()
Bios_start()
}
Core2:
main()
{
IPC_Start()
SRIO_init()
BIOS_Start()
}
Task1()
{
status = Ipc_attach(masterID);
while(status < 0)
{
Task_sleep(1);
status = Ipc_attach(masterID);
}
Notify_registerEvent()
do
{
status = HeapBufMP_open("MsgHeap", &heapHandle);
}
while (status < 0);
do {
status = MessageQ_open(QName, &remoteQueueId);
} while (status < 0)
...
}
Task2()
{
do
{
status = HeapBufMP_open("MsgHeap", &heapHandle);
}
while (status < 0);
do {
status = MessageQ_open(QName, &remoteQueueId);
} while (status < 0)
...
}