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

NRF51822 Uart APP_UART_COMMUNICATION_ERROR

Dear Nordic.

I have used to nrf51822 custom device. I confused it because of Uart RX data. The master device sends blow raw data to client device(nrf51822 custom device)

0x3B, 0x68 0x00 0x00 0x00 0x73 0xC8 0x40 0x00 0x00 0x90 0x00

but nrf51822 custom device is received with blow data

0x3B, 0x68 0x73 0xC8 0x40

APP_UART_COMMUNICATION_ERROR happens about others data

0x00 0x00 0x00 0x00 0x00 0x90 0x00

void uart_event_handle(app_uart_evt_t * p_event)
{
    switch (p_event->evt_type)
    {
        case APP_UART_DATA_READY:
            app_uart_get(&data[i]);
            break;

        case APP_UART_COMMUNICATION_ERROR:
            data[i] = 0x10;
            break;

        case APP_UART_FIFO_ERROR:		
            break;

        case APP_UART_DATA:
            break;

        default:
            break;
    }
    i++;
}

image description

if you know this issue, please let me know

Related