nRF51 SDK v10.0.0
Running examples that use a SoftDevice

Before you can run more advanced examples that use Bluetooth or ANT, you must program the SoftDevice on the board. The SoftDevice binary is located in folder components\softdevice\SoftDevice\hex in the SDK, where SoftDevice is the name of the SoftDevice.

You can also download SoftDevices from https://www.nordicsemi.com.

There are several methods to program the SoftDevice:

See the following sections for detailed instructions on how to program the SoftDevice.

After you programmed the SoftDevice, follow the steps described in Running a first example to run an example that uses the SoftDevice. For example, test the Heart Rate Application, ant_examples_broadcast,  or BLE Heart Rate Collector Example examples.

nRFgo Studio

To program the SoftDevice using nRFgo Studio, perform the following steps:

  1. Open nRFgo Studio.
  2. In the Device Manager, select the nRF51 Development board that you are working with (identified by the SEGGER serial number).
  3. Select the Program SoftDevice tab.
  4. Click Browse and navigate to the SoftDevice file that you want to use.
  5. Click Program.

nRFgo Studio will erase any existing SoftDevice and program the selected SoftDevice.

ARM Keil

To program the SoftDevice using an example project in Keil, perform the following steps:

  1. Open an example project in Keil. The example must require a SoftDevice.
  2. Instead of the default target, select the target to flash the SoftDevice, for example, flash_s130_nrf51_1.0.0_softdevice.
  3. Click Options for Target.
  4. Select the Debug pane and click the Settings button for the J-Link / J-TRACE Cortex.
  5. Select the J-Link / J-Trace Adapter corresponding to the serial number that is printed on your device.
  6. Click OK to close the dialogs.
  7. In the main window, click Download to program the SoftDevice.

Keil will erase any existing SoftDevice and program the appropriate SoftDevice for the example.

GCC makefile

To program the SoftDevice using a GCC makefile, perform the following steps:

  1. Open a command prompt in the folder that contains the makefile of an example. The example must require a SoftDevice.
  2. Ensure that nrfjprog.exe is in the path, thus the path to nrfjprog.exe is part of the PATH environment variable. The makefile issues a call to the nrfjprog tool.
  3. Run the following command: make flash_softdevice

Running the makefile will erase any existing SoftDevice and program the appropriate SoftDevice for the example.


This document was last updated on Mon Nov 9 2015.
Please send us your feedback about the documentation! For technical questions, visit the Nordic Developer Zone.