Part Number: 66AK2H06
Other Parts Discussed in Thread: SYSBIOS
Hi all,
how to i set the exception properly with CSL?
i try to use the same way with normal interrupt but it doesn't work.
here is my code
int eventIDNMI[] = // CIC module output to INTC module input
{
CSL_C66X_COREPAC_TIMER_11_INTL,
};
_IntcVectId vectIDNMI[] =
{
CSL_INTC_VECTID_EXCEP,
CSL_INTC_VECTID_7,
};
hIntcNMI[0] = CSL_intcOpen(&intcObj, eventIDNMI[0], &vectIDNMI[0], NULL);
CSL_intcHookIsr(vectIDNMI[0], NMI_ISR_handler[0]); // Hook the ISR's
CSL_intcHwControl(hIntcNMI[0], CSL_INTC_CMD_EVTCLEAR,NULL); // Clear any pending interrupts
CSL_intcHwControl(hIntcNMI[0], CSL_INTC_CMD_EVTENABLE,NULL); // Clear any pending interrupts
then i set the register TSR to enable it.
Uint32 chipReg[1];
chipReg[0] = CSL_chipReadReg (CSL_CHIP_TSR);
CSL_chipWriteReg (CSL_CHIP_TSR, chipReg[0] | 0x0000000c); // enable all exception
I want to use timer 11 to trigger exception but if it doesn't work.
it is ok to use CSL_INTC_VECTID_7 for the normal interrupt but I want the DSP can use CSL_INTC_VECTID_EXCEP for the exception.
Does anyone know how to set exception properly?
Thanks