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

NRF_SERIAL_EVENT_DRV_ERR, what is the cause?

Hi,

I'm trying to receive data from a UART transceiver. I'm using a nRF52 DK with a RS485 to UART transceiver chip.

On my debug session I get the " NRF_SERIAL_EVENT_DRV_ERR" in the serial event handler.

My serial settings are correct because I get correct data on a serial monitor.

I have attached the relevant code:

I also read this question. 

Is this the error mask?

Please help,

Thanks

  • Hi Ro,

    Which SDK version are you using?

    According to the nRF52832 Product specification's UART section an error event may be cause by the following:

    An ERROR event, in the form of a framing error, will be generated if a valid stop bit is not detected in a frame. Another ERROR event, in the form of a break condition, will be generated if the RXD line is held active low for longer than the length of a data frame. Effectively, a framing error is always generated before a break condition occurs.

    You should be able to see the source of the error in the ERRORSRC register, which should be four different bits that are set depending on which error source it is. 

    Best regards

    Bjørn