4 years, 7 months ago.

mbed 2 BLE not working with nRF52

I'm trying to get an nRF52-DK up and running with the BLE samples for mbed 2, and, while they compile and run fine, as soon as I try to connect to the device over BLE (from any application, e.g. nRF Connect, nRF Toolbox, Bluefruit, etc) the nRF52 freezes (the applications say it's discovering services, but it could be at another point). However, the BLE samples for mbed os 5 work fine it appears.

Is mbed 2 meant to work with the nRF52832? I'm specifically trying to use the classic mbed as I'm porting an application from the nRF51 which is on an old version of mbed and don't want to do major changes at this time (one thing at a time...).

  • edit: Just to clarify, the freeze is happening with unmodified samples (all of them), not a port of our application.

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.

1 Answer

4 years, 7 months ago.

Hi Richard, NRF52 is well supported in mbed-os 5. (the Nordic team is focused on 5, The 5 has got priority from ARM as well). Now it is not supposed that nRF52 targets are working well for mbed 2. Is it suitable for you to build your app using mbed-os 5.x.x in non-rtos mode? Most of libraries of mbed-classic are available there. To build such a mbed-os 5 app you need to add a few lines to the.mbedignore file

.mbedignore

mbed-os/rtos/*
mbed-os/features/FEATURE_CLIENT/*
mbed-os/features/FEATURE_COMMON_PAL/*
mbed-os/features/FEATURE_UVISOR/*
mbed-os/features/frameworks/*
mbed-os/features/net/*
mbed-os/features/netsocket/*
mbed-os/features/storage/*