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

What to do with APP_UART_COMMUNICATION_ERROR?

Hi, I am working with app_uart module and during the reception process sometimes there will be APP_UART_COMMUNICATION_ERROR event generated, my question is why there is such errors? And is it possible for us to do some error recovery?

BTW, if we have both BLE and UART running on the nRF51822 chip, what is the highest Baud Rate the chip can offer?

Parents
  • When such error occurs, you can read out the corresponding error code in the structure. This value corresponds to the value of the ERRORSRC register in the UART peripheral, that explains what went wrong.

    If you run the softdevice, it is most likely an OVERRUN error, which will happen if the other UART device sends too much data while the CPU is blocked by the softdevice. Depending on the nRF51822 chip revision used, the UART buffer is either 2 or 6 bytes.

    Using flow control on the latest chip revision, with 6 bytes buffer, should eliminate this problem. Flow control should help also on the previous revision, but some UART implementations will manage to overflow the buffer before flow control is handled.

  • Is there any chance I can do a error recovery here?

Reply Children
No Data
Related