NRF52833 uart use 921600 baud NRF_DRV_UART_EVT_ERROR

HI 

        I use SDK 17.0.0 in NRF52833.I test uart by example project  ,the dir is \examples\peripheral\uart\pca10100\blank\arm5_no_packs .

       Modify the baud to 921600 ,and send data to 52833 by serial software. If send data less than 52 bytes,serial software can received the send data from 52833.But send data more than 52 bytes,the serial software not receive any data.By debug,the uart gererated the interrupt  NRF_DRV_UART_EVT_ERROR and enter  uart_error_handle.And  if generate the interrupt  NRF_DRV_UART_EVT_ERROR,52833 not receive all data.

        How to solve this problem?

   

Parents Reply Children
  • Hi

    Receiving more than 52 bytes seem to work fine for me, but I made some minor changes to the example to make it easier to run the test. 

    Essentially I use UARTE0 for logging purposes, and enabled UARTE1 with app_uart on a separate set of pins in order to be able to print UART log info without affecting the UART under test. 

    The UARTE1 interfaces is enabled with RX on pin P1.01 and TX on pin P1.02.

    When sending a 53 byte string I see it all received OK in the log.

    <info> app: 54 bytes received: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz

    Code below:

    284228_uart.zip

    Best regards
    Torbjørn

Related