Oad Image Status (0Xffc4); Oad Process; Initiation Of The On-Chip Oad Process; Figure 10. Oad Status Codes - Texas Instruments SimpleLink CC2640 User Manual

Ultra-low power wireless mcu for bluetooth low energy
Hide thumbs Also See for SimpleLink CC2640:
Table of Contents

Advertisement

7.4.4 OAD Image Status (0xFFC4)

The OAD image status characteristic is used to report various failures that may occur during the OAD
process. The downloader may use this information to determine why an OAD failed, so that it may
correct for the errors and try again. "01:00" shall be written to the CCCD of this characteristic so that
notification for status update is enabled. There are four OAD status messages that are defined by
default. The OAD status codes are listed in the table below:
OAD Status Code
OAD_SUCCESS
OAD_CRC_ERR
OAD_FLASH_ERR
OAD_BUFFER_OFL
The customer may extend these values as needed, and use the OAD_sendStatus() function to send
updates to the downloader.
7.5

OAD Process

This Profile has been designed to provide a simple and customizable OAD Profile for the customer. In its
most rudimentary form, for both On-chip and Off-chip OAD, this profile is responsible for accepting an
OAD interaction based on image header criteria, storing the image onto the flash and causing a device
reset if the download is successful so that the downloaded application image is run by the BIM.
Downloader and OAD Target perform Client role and Server role respectively.

7.5.1 Initiation of the On-chip OAD Process

After establishing a new connection, updating the connection interval for a faster OAD and enabling
notifications of OAD Image Identify and OAD Image Block characteristics on the OAD Target, the
Downloader shall write to the Image Identify characteristic of the OAD Target. The message data will be
the header retrieved from the OAD Image available for OAD.
Value
0
1
2
3

Figure 10. OAD Status Codes

Description
OAD succeeded
The downloaded image's CRC
doesn't match the one
expected from the metadata
The external flash cannot be
opened
The block number of the
received packet doesn't
match the one requested. An
overflow has occurred.

Advertisement

Table of Contents
loading

Table of Contents