TI CC2540 Bluetooth low energy Sample Applications Guide v1.4.1 SWRU297 Version 1.4.1
Page 32 of 36
Copyright © 2011-2015 Texas Instruments, Inc
The application writes all discovered client characteristic configuration descriptors to enable
notification or indication. The application also reads some characteristics and then performs no
action with the received response. This is done simply for testing and demonstration.
16.2.6 Handling Indications and Notifications
Handling of received indications and notifications is performed by function timeAppIndGattMsg.
This function is called when a GATT indication or notification message is received. The function
will process the data in the received message and display it on the LCD.
16.2.7 Clock Time
The application uses the OSAL Clock service to update and maintain the clock time. When new
date and time data is received from the peer device, function timeAppClockSet is called to
update the time in OSAL and display the updated time on the LCD. The LCD is periodically
updated by an OSAL timer that sets event CLOCK_UPDATE_EVT.
17 Serial Bootloader
17.1 Basic Operation
The SBL is a utility application allowing the user download an image over the serial port. This
might be useful for field updates or allowing an external MCU to change firmware without using
the CC Debugger. There are project options for both UART and SPI.
17.1.1 SBL Developer’s Guide
A detailed guide on the serial bootloader can be found on the Texas Instruments wiki page.
http://processors.wiki.ti.com/index.php/SerialBootLoader
17.2 Target Requirements
The target must be setup with the SBL (Serial Bootloader). For encrypted OAD, the EBL
(Encrypted bootloader) is used instead.
This SBL is located at:
C:\Texas Instruments\BLE-CC254x-1.4.1\Projects\ble\SBL\iar\cc254x\sbl.eww.
The EBL is located at:
C:\Texas Instruments\BLE-CC254x-1.4.1\Projects\ble\SBL\iar\cc254x\ebl.eww.
An example of a project with SBL and EBL support is:
C:\Texas Instruments\BLE-CC254x-
1.4.1\Projects\ble\HostTestApp\CC254xDB\HostTestRelease.eww
17.3 Server Requirements
There is a PC tool which acts as a server to download the .bin image over the serial link. This
SBLTool can be downloaded from:
http://processors.wiki.ti.com/index.php/Category:SBLTool
18 USB Bootloader
This sample application allows the user load an image over the USB port.
18.1 Basic Operation
The UBL is a utility application allowing the user to download an image to the USB dongle by drag
and drop in Microsoft Windows. This would be useful for updating the firmware on a USB dongle
when no programming pins are available. The example provided in this release is specific to USB
dongle and Nano dongle.
18.1.1 Flash UBL