Now I want to map C6747 EDMA3 transfer complete interrupt to CPU INT8. I use the EDMA3 CHANNEL 1.
After running my code, I have saw IPR=0x0002, but it hasn't generate the CPU INT8, so didn't run into the Interrupt Servicing code--“interrupt void EDMA3Interrupt(void)”.
Question: Is there any problem with my register settings? Please give me some suggestion. Thanks.
For EDMA3, I set the registers that are related to interrupt as follows,
1, TCINTEN=1,TCC=1;
2, edma3ccRegs->IESR =0x0002.
For INTC, I operate the registers as follows,
1, Map Event 8 to CPU INT8; My code is, "CSL_FINS(intcRegs->INTMUX2, INTC_INTMUX2_INTSEL8, CSL_INTC_EVENTID_EDMA3CC_INT1);"
2, Set ISTP to point to the vector table address.
3, Clear all interrupts, ICR = 0xFFF0;
4,Enable the bits for non maskable interrupt and CPUINT8, IER |= 0x102;
5,Enable interrupts, set GIE bit.