want to add UART communication to nRF52832 with mesh enable.
I have added,
- nrf_drv_uart.c
- nrfc_prs.c
- nrfc_uart.c
- nrfc_uarte.c
files into nRF_Drivers folder in project and added User include directories for them and also I have added
- app_fifo.c
- app_uart_fifo.c
- retarget.c
files into nRF_Libraries folder in project and added User include directories also for them
In sdk_config.h I have made following settings,
- NRFX_UARTE_ENABLED 1
- NRFX_UARTE0_ENABLED 1
- NRFX_UART_ENABLED 1
- NRFX_UART0_ENABLED 1
- NRFX_PRS_ENABLED 1
- NRFX_PRS_BOX_4_ENABLED 1
and
- UART_EASY_DMA_SUPPORT 1
- UART_LEGACY_SUPPORT 1
And project also compiled after setting above configurations.
Code I made as follow (Modified version on light switch server )
Following result got through debugging,
according to above result once development board receive a signal through RX pin uart_event_handler function calls as expected, and inside that handler I got APP_UART_COMMUNICATION_ERROR
So what would be the cause for this error.
Is there any .c file missing or something with the code