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

Modules

 main.c
 Template project main file.
 

Detailed Description

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\ble\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:

Buttons assignments:

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).