3 years, 11 months ago.

"Please provide an Implementation for mbed ble" error.

I implemented a custom Bluetooth service on the nrf52_sdk similar the BLE LED project however when I copy the hex file and look at the debug output at the COMM virtual port using docklight, the following message is printed out.

"Please provide an Implementation for mbed ble".

I am assuming this is because I don't have the "nrf52832.lib" included in my mbed program. However I cant find this library in online mbed compiler to import, I see the earlier library nrf51822.lib.

Any idea where I can find the "nrf52832.lib" library or any other library which has the implementation that would work for the nrf52_dk

Thanks, Yogesh

Question relating to:

The nRF52 Development Kit is a single-board development kit for Bluetooth Smart, ANT and 2.4GHz proprietary applications using the nRF52 Series SoC. This kit supports both development for nRF52832 SoCs.

2 Answers

3 years, 10 months ago.

I'm running into the same problem while trying to use the online compiler and instead of using mbed-os I'm using mbed-dev, ble_api I still get "Please provide an implementation for mbed BLE". Using it with mbed-os it works fine. Any ideas? Thanks, Peter


mbed_dev is mbed-os 2. As I said in my previous answer, BLE API is not supported by mbed OS 2 at the moment, only by mbed os 5.

posted by Vincent (pan-) Coubard 29 Nov 2016

Thanks Vincent, I figured it out in the meantime.

posted by Peter Varga 29 Nov 2016
3 years, 11 months ago.

Yogesh, it seems that you are using mbed OS 2 instead of mbed OS 5. BLE is supported by the NRF52, it is not the case at the moment for mbed OS2.

You can see the code for the BLE led example here: https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-ble-LED/ .

The BLE API is the same between mbed OS 5 and mbed OS 2, you won't have anything to change; BLE wise.

Thanks Vincent for taking the time to respond to this query. So I just grabbed one of the example programs and loaded it up and after compiling the led example, the size of the hex file is 432kb, is that supposed to be that big, given the flash size for the nrf52_dk is 512 kb? Anyways thanks once again for your response to this thread.

Thanks, Yogesh

posted by Yogesh k 10 Oct 2016

Don't be fooled by the size of the output. It is an hex file, not a binary. The generated hex is also merged with the softdevice; the BLE stack from nordic. The hex file of the stack weight 311k alone!

You have plenty of space left. For instance, I got a very big application which weight 675K as an hex file but its true size is around 244k.

posted by Vincent (pan-) Coubard 10 Oct 2016