• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeProjectGet started with Nordic nRF51-DK with mbed
Previous Next

Get started with Nordic nRF51-DK with mbed

Posted by: admin , July 7, 2015

 

 

The nRF51 Development Kit is a single-board development kit for Bluetooth Smart, ANT and 2.4GHz proprietary applications using the nRF51 Series SoC. This kit supports both development for both nRF51822 and nRF51422 SoCs.

 

The USB port supports both J-Link and mbed toolchains. In this post, we show the details on how to using the mbed programming environment  to develop BLE 4.0 application.

 

nRF51-DK defaults with J-Link. So the first step is to flash it with mbed CMSIS-DAP software. To load it, press the RESET button:
IMG_0346

 

While the RESET button is pressed, connect it to the USB port of the PC with the power switch to ON position.

 

IMG_0347

 

 

nRF51-DK  will show up as a USB drive labeled as ‘BOOTLOADER’:

IMG_0348

 

Go the the nRF51-DK website to download the firmware needed for mbed. Scroll down to the firmware section and download it:

IMG_0350

 

 

IMG_0351

 

 

Drag the downloaded bin file to the USB drive that labeled as ‘BOOTLOADER’.  The boar will start to flash its memory automatically, and after its done. the USB drive will unmount, and the LED will blink constantly.

IMG_0353

 

Power cycle the board, the nRF51-DK will show up as a USB drive again, but will a label ‘MBED’:

IMG_0354

 

Go to the nRF51-DK website again, and find the mbed compiler,

IMG_0356

 

Import the sample projects:

IMG_0357

 

IMG_0358

 

And find the BLE heart rate:

IMG_0359

 

 

IMG_0360

 

And then click the compile button,

IMG_0361

 

IMG_0362

 

 

After the build process is finished, it will prompt to save the output hex file:

IMG_0363

 

IMG_0365

 

Drag the hex file to the USB drive labeled as ‘mbed’. Power cycle the board.

On the APP side, take an iOS device, and install two apps, ‘lightblue’ and ‘nRF Utility’.

IMG_0044

 

Use lightblue to check the nearby BLE device, and we find a device named ‘HRM1’. This is the board itself.

IMG_0045

 

Now we can use nRF Utility to talk to the board.
IMG_0046 IMG_0048 IMG_0049 IMG_0050 IMG_0051

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors