my S32K is using the UART as modbus 485, eventually during the AD through DMA capture (very long, 7000 captures or so) the UART gets STATUS UART RX OVERRUN error on a interrupt..
I've it fixed using the deinit and restarting it, it works but I believe this is not necessary.
Any tips of why the DMA capture end interrupt maybe conflicting my UART interrupt? Priorities, maybe?
Greetings from Brazil, Renan
Yes, you can set a higher interrupt priority for the UART.
Maybe you have a long DMA complete interrupt routine that can't be preempted by a lower-priority UART interrupt.
Or you can just increase the system clock frequency.