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

Pairing/bonding with ble_app_template example not working for me

Hi,

I just recently got into designing Bluetooth devices and I am experimenting with NRF51822 and BLE400 board. I managed to compile and upload the examples from SDK 11.0.0 to the device with SEGGER Embedded Studio and I can advertise and connect to the device with nRF Connect app on my Android phone.

When I try to bond with nRF Connect it just hangs up after a couple of seconds. A similar thing happens if I try to pair with the phone directly.

Is there something I have to implement in the code of the example app?

Parents
  • Hmm ... the precompiled hex works. Could there be something in the project settings that might interfeere? I used the SEGGER Studio template: github.com/.../nrf51822_s130_ble_app_uart from here but it is somewhat outdated so I changed the .emProject file a bit to make it work. I just added some preprocessor paths.

    How can I display the error code of PM_EVT_ERROR_UNEXPECTED. Right now the only way I know to display debug data is through SEGGER_RTT_WriteString function while I debug in SEGGER Studio. I tried to display the code like that but it didnt show.

Reply
  • Hmm ... the precompiled hex works. Could there be something in the project settings that might interfeere? I used the SEGGER Studio template: github.com/.../nrf51822_s130_ble_app_uart from here but it is somewhat outdated so I changed the .emProject file a bit to make it work. I just added some preprocessor paths.

    How can I display the error code of PM_EVT_ERROR_UNEXPECTED. Right now the only way I know to display debug data is through SEGGER_RTT_WriteString function while I debug in SEGGER Studio. I tried to display the code like that but it didnt show.

Children
No Data
Related