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

ble_app_uart example only partially working

Thanks for the response. As a test, I loaded the same code onto a PCA10004 and it seems to work as you described. A breakpoint at 217 does get triggered when it receives data. So, I guess there is something "different" about my PCB. Maybe you can help me pin point the issue

My PCB does "Connect" and the line associated with the connected LED does go high and advertising stops. However, I just never get to the breakpoint at line 217

The only changes I made from the original source are:

  1. Changed the SD handler init to use NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM since I don't have the 32KHz xtal.
  2. Set HWFC to false in the board file (since my board isn't using flow control). I know that it is possible that I might loose data sent to the chip via the UART, but I'm okay with that.

One other piece of data:

On my hardware only, I seem to failing this test (in the BLE_GAP_EVT_SEC_INFO_REQUEST event): if (p_enc_info->div == p_ble_evt->evt.gap_evt.params.sec_info_request.div)

Thoughts? Thanks.


I am working with a custom PCB, Keil and Jlink. I have verified that the custom hardware works using the HRM example.

I'd like to get your ble_app_uart example working from SDK 6.0 (it seems to have been removed from 6.1). I downloaded your IOS nRF uart app and it connects just fine. I can go into debug mode and set a breakpoint inside the nus_data_handler. However when I send data from the app it never gets to that breakpoint. Any suggestions as to what might be the issue?

Related