Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 8 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:
2 Answers
7 years, 6 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
7 years, 8 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 10 Oct 2016Don'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 10 Oct 2016
Cross-posts:
https://devzone.nordicsemi.com/question/98060/please-provide-an-implementation-for-mbed-ble-error/
https://developer.mbed.org/questions/75259/MBED-support-for-nrf52_dk/
posted by Andrew Neil 08 Oct 2016