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.
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 11 Aug 2016Could you put a link of an example not working for you ? It would help me to solve your issue.
posted by 11 Aug 2016Hi 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 11 Aug 2016Thanks 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 12 Aug 20166 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 02 Nov 2018Ah - 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.
- elseif Have a good weekend.
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 05 Nov 2018