Basic Persistent Project

Table of Contents

Introduction

The Basic Persistent projects implements a lightweight application that implements the OAD profile.

The application behavior is the same as the basic_ble project, with the exception that OAD service is added. For guidance on the Basic Persistent refer to the OAD section of the BLE5-Stack User's Guide.

Hardware Prerequisites

The default Basic Persistent board configuration uses the device's LaunchPad development kit.

Software Prerequisites

For information on what versions of Code Composer Studio and IAR Embedded Workbench to use, see the Release Notes file provided in the SDK. In addition, please refer to the User's Guide for information on importing this project into your IDE workspace and build/run.

GATT Services

The Basic Basic Persistent project contains the OAD Service.

OAD Service

The OAD service is responsible for receiving and storing an OAD image. It causes the device to jump to the secure bootloader to validate the downloaded user application. See OAD service description in the BLE5-Stack User's Guide for more information on the OAD service.

Name UUID Description
OAD Service 0xFFC0 OAD service declaration
Image Identify 0xFFC1 Used to send image image header over the air
Image Block Request/Response 0xFFC2 Actual block of image data along with offset into the image
OAD Control 0xFFC5 Controls various aspects of OAD process

UART

This application uses the UART peripheral to provide an interface for the application. The UART is only used for display messages.

We recommend using a terminal program that can parse ANSI/VT100 color codes, such as Tera Term, PuTTY, Code Composer Studio Terminal, etc., to monitor the LaunchPad UART output.

The following default parameters are used for the UART peripheral for display:

UART Param Default Values
Baud Rate 115200
Data length 8 bits
Parity None
Stop bits 1 bit
Flow Control None