Hi,
I found a odd thing when I try to get the value of ERRORSRC of uarte0 in the problem.
Sometimes the project of my customer have an uart error, when they read the value of ERRORSRC with:
*p_errSrc = nrf_uarte_errorsrc_get_and_clear(&p_serial->instance.p_reg);
when they print the value of the result, it's 0x06.
But when they stimulate and stop at the function, we can see the value of ERRORSRC is 0x08.
I have tried with sample ble_app_uart(nrf5 SDK 17.0.2) on nRF52DK, I change the RX pin to P0.26 and give it a zero level.
When I stimulate with SES and stop at the function uart_event_handle (case APP_UART_COMMUNICATION_ERROR:)
I can see the value of ERRORSRC is 0x0c.
But when I read it with nrf_uarte_errorsrc_get_and_clear or get it directly with var = NRF_UART0->ERRORSRC, I will get 0x8 or 0 as a result.
It's so odd.
Is there any restrict on how to read the value of register in the project?




