Hello，I am using SDk14.1.Sometimes when I send data to nrf52832 via serial port，the code prompted me "APP_UART_COMMUNICATION_ERROR".And the value of the ERRORSRC register is 0.The ERRORSRC register should normally have a non-zero value when a program reports an error,such as NRF_UARTE_ERROR_OVERRUN_MASK (0x01).I don't know what caused this situation. Is there any way to analyze it?
Some sources indicate that the RX of the serial port needs to be pulled up, but I set it to pull up and it will still be there.
Yufan Lin said:The ERRORSRC register should normally have a non-zero value when a program reports an error,
Nope. The UART(e) handler function clears this register before generating the event.
The register contents is saved in p_event->data.error_communication variable, so you should still be able to check what the cause was.
Thank you for your reply. I have tested it again.The p_event->data.error_communication is zero too.
This is the debug log
This is my code