Other Parts Discussed in Thread: TMS320C6416
Hi there,
I am using a modified version of the dsp_app example in CCS4 on the TMS320C6416 Device Cycle Accurate Simulator. However, it outputs a warning and continues to loop indefinitely at the following line of the aic23Rset function defined in aic23.c:
while (MCBSP_xrdy(hMcbsp));
The warning is:
TMS320C6416: Warning: CPU:Interrupt No. 12 dropped, an earlier interrupt is pending to be taken
The full function code is:
/*
* ======== aic23Rset ========
* Set codec register regnum to value regval
*/
static Void aic23Rset(MCBSP_Handle hMcbsp, Uint16 regnum, Uint16 regval)
{
/* Mask off lower 9 bits */
regval &= 0x1ff;
/* Wait for XRDY signal before writing data to DXR */
while (!MCBSP_xrdy(hMcbsp));
/* Write 16 bit data value to DXR */
MCBSP_write(hMcbsp, (regnum << 9) | regval);
/* Wait for XRDY, state machine will not update until next McBSP clock */
while (MCBSP_xrdy(hMcbsp));
}
What is happening? How can I get this example application to work with the simulator?
Thank you for your help,
Susan