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

How can I receive data from UART module

Hi all, I use nRF51822 module and my environment is Eclipse + GCC + SDK 10.0. I refer to the example in path <SDK_PATH>/examples/ble_peripheral/ble_app_template, then make this project with <SDK_PATH>/examples/ble_peripheral/ble_app_template/pca10028/s110/armgcc/makefile. Everything works fine but can NOT receive any data from UART. As I know, after any data received, the registered callback function will be called with p_event->evt_type(APP_UART_DATA_READY). I can send data from cellphone with App(nRF Master) and get data by UART TX PIN(connect to my PC's console), but can not receive any data send from UART RX PIN(connect to my PC's console). Attachment is my codemain.c, any suggestion is welcome. Thanks.

Related