Hello,
I am observing secondary (SER) and missing (EMR) event interrupts upon the completion of UART transfers. Sometimes these events occur after I receive the transfer completion interrupt, sometimes they occur before, and sometimes I do not even receive a transfer completion interrupt. I am not clear where the problem lies. I suspect that the problem relates to the UART UTXEVT event after BCNT decrements to zero.
I have a couple questions that may help me better understand EDMA3 and my implementation.
1) What is the best way to initiate a EDMA3 transfer? I've been able to initiate transfers by a) manually loading the first byte into THR, b) pulling the UART TX out of reset, and c) writing to ESR.
2) What is the best order to initialize EDMA3? Currently, I enable shadow access via DRAE, set ECR, SECR, ICR, then initialize PaRAMs, and finally enable via EESR.
3) What EDMA3 and PaRAM registers should be set for each transfer, and which can I rely on PaRAM reloads? It seems that I must re-initialize some registers, even if they're already set, to reliably use EDMA3. I'm not sure why.
4) Should I setup a dummy PaRAM entry to prevent SER and EMR event interrupts? I do not have this problem with I2C EDMA3 transfers.
Thanks!
-Paul