What is the difference between the 2 interrupts for UDMA? INT_UDMAERR vs INT_UDMA
I am trying to setup a SPI transfer via DMA. Which interrupt should I use to signal completion of DMA operation?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
What is the difference between the 2 interrupts for UDMA? INT_UDMAERR vs INT_UDMA
I am trying to setup a SPI transfer via DMA. Which interrupt should I use to signal completion of DMA operation?
Hello Sarang,
The INT_UDMA is the interrupt when the DMA Channel has completed the data transfer without any error
The INT_UDMAERR is the interrupt when the DMA channel has an error during a transfer like the Destination or Source address is not accessible.
You should use both interrupts with the code mainly relying on INT_UDMA for completion and INT_UDMAERR as a mechanism to know that an error occurred.
Regards
Amit