nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Template Application

Template Application

The Template Application is an application that you can use as a starting point for developing your own application, using the hardware delivered in the nRF51822 Development Kit.

The source code and project file can be found in the <InstallFolder>\Nordic\nrf51822\Board\nrf6310\s110\ble_app_template folder.

Note
The application will stop advertising after 3 minutes, and then go to System OFF mode. To wake it up, press the button 0, and it will start advertising again.

Setup

Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).

LED assignments:

  • LED 0: Advertising
  • LED 1: Connected
  • LED 7: Asserted (i.e. an assert check in the application has failed)

Buttons assignments:

  • Button 0: Wake-up and start advertising.

Testing

The Template Application can be tested using the Master Control Panel as follows:

  1. Compile and program the application. Observe that the Advertising LED is lit.
  2. Connect to the device from Master Control Panel (the device will be advertising as 'Nordic_Template'), then connect and perform service discovery. Observe that the Connected LED is lit, and the Advertising LED is off.
  3. Disconnect, observe that the Advertising LED is lit, the Connected LED is off. You can wait for 3 minutes and observe that all LEDs are off (the application is in system-off).
  4. In system-off, press button 0, the application starts advertising again (the Advertising LED is lit).