
Page 13 of 62
nRF51822 Development Kit User Guide v1.4
Compile, program, and run the heart rate monitor demo
Note:
The Development Dongle must be unplugged during these steps.
1. Locate the Heart Rate demo project found in the folder <keil path>
\ARM\Device\Nordic\nrf51822\Board\nrf6310\s110\ble_app_hrs\arm
.
2. Open the Heart Rate demo project in Keil μVision by double clicking the
ble_app_hrs.uvproj
file.
3. Click the
Build
icon or press
F7
to build the project.
4. Only one SEGGER device should be connected to your computer. Make sure it is also connected to
the nRF51822 development module to ensure the program is downloaded to the correct target.
5. Go to the
Flash
menu and click
Download
to load the program (or click the
Load
icon).
6. The Heart Rate demo example will start executing.
LED0
should be lit indicating it is advertising.
7. The application advertises for 3 minutes. If a connection isn’t made within this period, the
application sets nRF51822 in System Off.
8. To start advertising again press
Button 0
.
Install the Master Control Panel and nRF51822 Development Dongle (PCA10000)
1. Download and install the Master Control Panel from our website. Make sure to select the version
that corresponds to your hardware.
2. Plug the Development Dongle into a USB port on your computer.
3. An icon will appear in the lower right corner of your monitor showing that the drivers are being
installed. Wait until it is ready.
Scan for available
Bluetooth
low energy devices
1. Open the Master Control Panel from the Start menu (
Start > All Programs > Nordic
Semiconductor > Master Control Panel
).
2. Make sure the Development Dongle is detected. The Master Emulator item list should show
COMnn-xxxxxxxxx (
nn
gives the COM port number;
xxxxxxxxx
is the SEGGER serial number printed
on the dongle). Restart the application if it doesn’t appear in the item list. Before continuing, make
sure you have selected the correct device by verifying the serial number in the item list with the
serial number printed on the Development Dongle.
3. When you use the Development Dongle for the first time, you must first program it with the
Master Emulator Firmware.
a. In the Master Control Panel menu click
File
and select
Flash Programming
.
b. Click
Browse
. This opens a browser that automatically points to the location of the
mefw_nrf51822_<version>_firmware.hex
(<version> will be replaced by a number
giving the version of the actual firmware).
The Master Control Panel Firmware file is located in:
C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\<version>\firm-
ware\pca10000\MEFW_nRF51822_<version>_firmware.hex.
c. Select the
Master Emulator Firmware
file and click
Open
.
d. Click
Program
to start programming the selected device.
e. When the programming is finished click
Exit
to go back to the main window.
4. Click
Start discovery
. The Development Dongle will scan for available
Bluetooth
low energy
devices within range and list them.
5. Select the device
CompleteLocalName ‘Nordic_HRM’
in the Discovered Devices list.
6. Click
Select device
.
7. Click
Service Discovery
. In the
Service discovery
pane you will see the services and
characteristics of the device. On the Motherboard
LED0
will turn off and
LED1
will light up
indicating that is has gone from advertising to connected.