5 years, 4 months ago.

Stuck in discovering services with nRF51-DK

I have finally got some code actually running on an nRF51-DK after running into numerous issues (doesn't work with the offline compiler, you have to use an old revision of mbed, etc. etc. etc. etc. etc. etc.). I'm using the mBed 2 BLE_Button example. It shows up in nRF Connect but when you try to connect it gets stuck on "Discovering".

Has anyone encountered this?

Ok this was literally a bug introduced in into mBed 2 in 2016 and never fixed. Yes really. Revert mBed to release 127 (30 Sep 2016). The next release - 128 (27 Oct 2016) breaks BLE.

posted by Tim H 10 Aug 2019

1 Answer

5 years, 4 months ago.

Hi Tim,

Since the mbed 2 BLE_Button example is a bit out-of-date, I would suggest you to use more recent BLE examples on GitHub here. https://github.com/ARMmbed/mbed-os-example-ble/tree/master/deprecated

The latest Mbed OS BLE are supporting BLE5, so if you would like to use NRF51_DK, you need to use those deprecated examples.

Let me know if you have any questions.

Regards, Desmond