Following the insn here: https://devzone.nordicsemi.com/f/nordic-q-a/54591/nrf_serial_event_drv_err-what-is-the-cause
I found that under certain conditions, I get ERRORSRC = 0x4 and 0x1, corresponding to C (frame error) and A (overrun) respectively.
I am trying to understand how the uart driver works, so that I can possibly modify this code for my needs.
1. If I am in this condition:
#if (defined(UARTE_IN_USE) && defined(UART_IN_USE))
// UARTE and UART combined
How does this actually work? It seems like if this is true, it always ends up using UARTE and not UART. Is that the case? Why?
2. What actually generates the UARTE0 interrupt? It would be helpful to be able to trace it back to the source and understand what register changes, etc. causes an interrupt to be triggered, particularly for errors.
Thanks!



(this is after I set a breakpoint for this fn)


