Hi,
We are looking at the possibility of using CORDIO BLE stack in one of our project. We would like to know, whether CORDIO BLE stack support baremetal (no-RTOS, no Mbed OS) systems.
Your response would be highly appreciated.
Best Regards,
Anil Kumar Jena
vraktion
(Wenzel Reichmuth)
April 27, 2020, 4:59pm
2
I would also like to know if it is possible to use bare metal profile with BLE
sayhuthut
(Desmond Chen)
April 29, 2020, 2:37am
3
Hi Anil,
The answer is yes, there is a Cordio stack porting information here .
vraktion
(Wenzel Reichmuth)
June 29, 2020, 11:00am
4
It is working!
Just add ble and cordio to requires in mbed_app.json. In my case (nRF52832) it was:
"requires": ["bare-metal", "events", "ble", "cordio", "cordio-ll", "cordio-nordic-ll" ],
You can also enable other APIs like described here: https://os.mbed.com/docs/mbed-os/v6.0/bare-metal/using-the-bare-metal-profile.html#2-adding-apis
All available APIs for bare-metal are listed here: https://os.mbed.com/docs/mbed-os/v6.0/bare-metal/index.html
In my case i only was able to compile with GCC at the moment. Other platforms should already work with ARMC6. Here is an overview: Some Mbed OS 6 targets don't compile with Baremetal profile · Issue #13099 · ARMmbed/mbed-os · GitHub