Other Parts Discussed in Thread: SYSBIOS, CONTROLSUITE
Hi all,
i am trying to initialize the IPC with my free TI-RTOS. Already i have i2c and spi, UART. Within that i try to initialize the IPC.
My code for IPC initialization is,
// Initialize M3toC28 message RAM and Sx SARAM and wait until initialized
RAMMReqSharedMemAccess(S0_ACCESS, SX_M3MASTER);
HWREG(SYSCTL_MWRALLOW) = 0xA5A5A5A5;
HWREG(RAM_CONFIG_BASE + RAM_O_MSXRTESTINIT1) |= 0x1;
while((HWREG(RAM_CONFIG_BASE + RAM_O_MSXRINITDONE1)&0x1) != 0x1)
{
}
HWREG(RAM_CONFIG_BASE + RAM_O_MTOCCRTESTINIT1) |= 0x1;
while((HWREG(RAM_CONFIG_BASE + RAM_O_MTOCRINITDONE)&0x1) != 0x1)
{
}
//
// Disable writes to protected registers.
HWREG(SYSCTL_MWRALLOW) = 0;
// Register M3 interrupt handlers
IntRegister(INT_CTOMPIC1, CtoMIPC1IntHandler);
IntRegister(INT_CTOMPIC2, CtoMIPC2IntHandler);
// Initialize IPC Controllers
IPCMInitialize (&g_sIpcController1, IPC_INT1, IPC_INT1);
IPCMInitialize (&g_sIpcController2, IPC_INT2, IPC_INT2);
// Enable processor interrupts.
IntMasterEnable();
// Enable the IPC interrupts.
IntEnable(INT_CTOMPIC1);
IntEnable(INT_CTOMPIC2);
// Spin here until C28 has written variable addresses to pulMsgRam
while ((HWREG(MTOCIPC_BASE + IPC_O_CTOMIPCSTS) & IPC_CTOMIPCSTS_IPC17) !=
IPC_CTOMIPCSTS_IPC17)
{
}
HWREG(MTOCIPC_BASE + IPC_O_CTOMIPCACK) = IPC_CTOMIPCACK_IPC17;
but i am getting this error,
ti.sysbios.hal.Hwi: line 109: E_stackOverflow: ISR stack overflow.
xdc.runtime.Error.raise: terminating execution
could you please tell me, how to resolve this error.
Thanks in advance
Thirumoorthy.R