Mbed ble examples on NRF52

How can i import this examples to Platformio ?

Will they run on NRF52 ?

I had tested but they didnt run!


Could you share your project which does not work?

Here the code
It´s compile and i can transfer to NINA B112.
I can see only the GPIO1 blinking…but…BLE SCANNER can´t see the BLE module!

Could you add mbed_app.json to the root of https://github.com/tcpipchip/led_ble_mbed_platformio?

See also mbed OS Configuraiton docs.

see my steps

*i opened your Platformio NRF52 thermometer example

#include <mbed_events.h>
#include <rtos.h>
#include “mbed.h”
#include “ble/BLE.h”
#include “LEDService.h”
#include “pretty_printer.h”

Then i compiled with platfomio, my leds (gpio01) blinks, but i can´t see the device on BLE SCANNER

No json on platformio, only on


@valeros could you help here?

Thank you so much! If all works i will do the BLOG about, using Platafomio with MBED BLE

Hi @Miguel_Alexandre_Wis! Indeed, this example has some issues. Could you try the following configuration (change board field to your board name):

home_dir = C:\\.platformio

platform = https://github.com/platformio/platform-nordicnrf52.git
framework = mbed
board = nrf52_dk

Don’t forget to copy source files LEDService.h, main.cpp, pretty_printer.h from the repository to the src folder in your project and copy mbed_app.json to the root folder of your project (near platformio.ini file).


Thanks to help all!

Still the led blinks but i can’t see the device on BLE SCANNER

here the GIT updated

btw, if you compile online on MBED, works!


If i put
board = nrf52_dk works, i see the module on BLE SCANNER
If i put
board = ublox_evk_nina_b1 NOT works, i cant see the module on BLE SCANNER and the code size is about a few k bytes

I think that this can help to solve!

Hi friends,

Any news ?

Probably the example doesn’t work with ublox_evk_nina_b1 because this board it’s not specified in the mbed_app.json. You can try the next configuration in your mbed_app.json:

    "target_overrides": {
        "*": {
            "target.features_add": ["BLE"],
            "target.features_remove": ["LWIP", "COMMON_PAL", "IPV4", "NANOSTACK_FULL"],
            "target.extra_labels_add": ["CORDIO", "CORDIO_LL", "SOFTDEVICE_NONE", "NORDIC_CORDIO"],
            "target.extra_labels_remove": ["SOFTDEVICE_COMMON", "SOFTDEVICE_S132_FULL", "NORDIC_SOFTDEVICE"]
1 Like

Thanks to help
Still not works! No BLE scanned…

That’s strange. Could you please try to build and upload your example using mbed-cli tool? Does it work?

Yes, i will do, VALEROS

I did a lot of tests, i remember that using mbed-cli tools doesnt work, but works very nice on MBED ONLINE COMPILER.

I will try tomorrow!


mbed-cli compiles, but BLE SCANNER didnt find it

I compiled (mbed-cli) the LED APPLICATION example to U-BLOX NINA B112 and execute it, but the BLE SCANNER didnt find it. But sends data to serial and blink led

mbed compile -t GCC_ARM -m UBLOX_EVK_NINA_B1

then i burned the BLE_LED.hex

I remember that this example had worked in the past!


Same with the mbed-compiler online version…


Fails too!

I tested on u-blox evb and module stand alone

Can you verify ?


One tip,

I did find some hex files created with mbed-cli weeks ago (wich includes the BLE LED example) and they works very fine after i burn on NINA B112.

Is it a MBED-OS update problem to NINA B112 ?

I think the best way to solve the problem is try to find the last working framework version using mbed-cli or the online tool and then try this version with PlatformIO.