Base on nRF5_SDK_15.3.0_59ac345 for NRF52810, I wrote the following codes,
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
static void _uart_event_handler(nrf_drv_uart_event_t* event, void* context)
{
switch(event->type){
case NRF_DRV_UART_EVT_RX_DONE:
break;
case NRF_DRV_UART_EVT_ERROR:
break;
default:
break;
}
}
static nrf_drv_uart_t _uart;
static nrf_drv_uart_config_t _cfg;
Use nrf_drv_uart_tx to send data is successful, and NRF_DRV_UART_EVT_TX_DONE occur normally.
But I can't receive any data, In other words, NRF_DRV_UART_EVT_RX_DONE never happened.
Who can help me? Thanks!