8 years, 3 months ago.

NRF52DK (10040) gives the error "Error: Target "NRF52_DK" is not recognized

Dear all,

The nrf52DK is a nice platform and modules are starting to be mass produced for integration into actual projects.

I can easily compile and run the mbed-os-example-blinky sample. No error messages

However, all other mbed examples I have tried don't compile, with this error message

What is wrong ?

Thanks for your help

4 Answers

8 years, 3 months ago.

Hello Jean-Roch,

Could you provide more details, I don't have any trouble in compiling BLE examples on NRF52 with the online IDE or mbed CLI.

Where did you get your examples ? Is it from the mbed example folders ?

Yes, for sure Thanks for your interest in my problem The examples I am trying are the official news on member site I am using the online compiler, probably 5.1 I have updated the nrf52-DK firmware as advised The official blinks example is running fine but none of other ones

posted by Jean-Roch SCHMITT 11 Aug 2016

Could you put a link of an example not working for you ? It would help me to solve your issue.

posted by Vincent (pan-) Coubard 11 Aug 2016

Hi all and Hi Vincent,

Sorry, back on a normal computer (not my mobile screen), I see all the spelling checking errors.

All the examples I tried are the ones of the mbed site.

The example "mbed-os-example-blinky" works fine : https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky/

All the BLE examples I have tried produce this error. "SimpleBLE-Example" is one of them : https://developer.mbed.org/teams/mbed-x/code/SimpleBLE-Example/

The error is exactly this one (it seems this forum has no upload functions) : Target NRF52_DK" is not recognized"

I can't understand why the platform is recognized for the blinky example and not for the other ones ...

Do you have any hints ?

Thank you very much for your help

posted by Jean-Roch SCHMITT 11 Aug 2016

Thanks for the details,

If you look at the NRF52 platform page it is mentioned that the NRF52_DK is not yet supported in mbed OS 2 (this will be available next week...). The program you try to compile is an mbed OS 2 program and the library SimpleBLE need an update for mbed OS 5.

The good news is that BLE examples are available for mbed os 5. You can try them here. All BLE examples are prefixed with mbed-os-example-ble.

posted by Vincent (pan-) Coubard 12 Aug 2016
7 years, 3 months ago.

we are using os 5 even though we are getting error like

"Error: Target "NRF52_DK" is not recognized.

Now I got the same problem running my nRF52-DK dev kit (rev. 1.1.1 2016.36 with PCA10040)

posted by p k 13 Feb 2018
6 years ago.

Get the same problem but only with BLE_UARTConsole

6 years ago.

jean-marc, can you link the repo that you are using, it looks like a fork, and guessing it targets the nrf51, so a link would help verify.

No idea how to supply a link from Mbed. The revision is 9:5f0732a. For else pls explain how to do it. Thank you for the help and followup.

posted by jean-marc jobin 02 Nov 2018

Ah - OK. I am reproducing this issue in the online compiler; I assume you are doing this in online compiler for now, but even after I force update each library manually (that's a common problem source) , you still have a problem. Since I have an offline environment, and I have a NRF52 target ; which will let me dig into the files a bit better than you can online ; and even try to run it. I will have to try this out on Monday. I'm still a bit new to all of the target configuration plumbing, so please do bear with me. If I get stuck, I can get a developer involved directly, shout if anything does change.

  1. elseif Have a good weekend.
posted by Conrad Braam 02 Nov 2018

Ok jean-marc, hope this helps: The example is from older version of the OS when the target NRF52 was not supported, instead of adding nrf52 manually, and then having other upgrade issues, using the new examples as a start point might just be easier

mbed -G cache on

mbed import https://github.com/ARMmbed/mbed-os-example-ble\

This will give you all of the examples, but you probably just need one as a start template because it takes about 1 hour over the network. So just fetch

mbed import https://github.com/ARMmbed/mbed-os-example-ble\BLE_Button

cd into BLE_Button

mbed target DISCO_L475VG_IOT01A

mbed compile

While that compiles, modify the example code to use the class UARTService see ".\mbed-os\features\FEATURE_BLE\ble\services\UARTService.h" instead, I'll leave this as an exercise for future readers to go the rest of the steps. But it's pretty much identical in terms of steps to the OLD example code which is in https://os.mbed.com/teams/Bluetooth-Low-Energy/code/BLE_UARTConsole/file/5f0732aa3008/main.cpp

I managed to get some "events" over the service to my mobile device, with nrf toolkit installed on it, with a Discovery board target. You can read some docs on the service here https://os.mbed.com/teams/Bluetooth-Low-Energy/wiki/UART-access-over-BLE which also shows some code.

posted by Conrad Braam 05 Nov 2018