I am facing some issue with DMA configuration for SPORT on BF527.
The following is my code portion which assigns IVG to SPORT0 and SPORT1.
*pSIC_IMASK0 = 0;
*pSIC_IMASK0 |= IRQ_DMA4;
*pSIC_IAR2 |= P17_IVG(10);
*pSIC_IMASK0 |= IRQ_DMA6;
*pSIC_IAR2 |= P19_IVG(8);
Now when I am running the complete code (on our custom board), I am observing some thing wrong... Please see the screen shots of my debugging session. In the screen shot, the code statement: EN_SP1_TX, is defined as follows...
#define EN_SP1_TX \
*pDMA6_CONFIG |= DMAEN; *pSPORT_TCR1 |= TSPEN;
My observation as you can see in the screen shots is, why ILAT bit corresponding to IVG10 is set instead of IVG8, after EN_SP1_TX statement is executed?
And due to this I am NOT getting SPORT1 TX interrupt. SPORT1 configuration is correct as I cross verified with reference code from ADI forum.
Please suggest where I may have gone wrong.
thanks & regards,