This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

UART0->ERROSRC value 0x09

Hardware:Two nrf52840 DK 
Software: SDK15.2

We have 2 development boards acting as a master and slave communicating over UART. We are using the serial library for this application.
When we pressed the reset button on the slave end, we get a "NRF_SERIAL_EVENT_DRV_ERR" event on the master side.
Debugging shows the value of the ERRORSRC to be 0x09. No data can be received on the master end when this driver error occurs.

We tried connecting a serial cable to the master and used Realterm to emulate the slave behavior. This had no errors on reception.

This concludes that the driver error is caused only when the slave resets and the reset state of the board causes a break on the master side.

Is there any way to resume reception after driver error or what is the correct action to be taken for such an error ?

Parents Reply
  • The examples don't just "stop receiving" - they do a Fatal Error & crash!

    It's easy enough to just handle the case of a UART error appropriately; eg, ignore the byte.

    I did post an example of doing that in one of the past threads on this - but can't now find it.

    Disappointed

    you will avoid the error by adding an pull-up resistor

    Maybe - but that just masks the symptom.

    Your code really needs to properly handle UART errors.

Children
No Data
Related