This example demonstrate the Over the Air (OTA) update from remote servers on CC32xx devices. The OTA update is a bundle of files packed in archive tar file and may include: - Service pack for the NWP - New MCU image - Other user files
Board_LED0 (red LED)
- Indicates that the board was initialized within main()
and while blinking, indicates that the board is trying to connect to AP.
LaunchPad board button
- Stop Pings Start the OTA update process, can be disabled by defining DISABLE_OTA_SWITCH_TRIGGER in cloud_ota.c (5 Pings and then OTA process)
Downloads and Installations.
Make sure you have Uniflash installed and Code Composer Studio or IAR IDE.
#define OTA_VENDOR_TOKEN "<access token>"
Build the setup.
Make sure you have the a local AP.
Build the project and flash it by using the SimpleLink Uniflash utility.
The example could be executed from the debugger as well but since it involves platform reset at the end (so the new OTA image can be tested and committed),the debugger would get disconnected. The example could be downloaded by the ImageCreator, make sure that all the certificates file are there
Open a serial session (e.g. HyperTerminal
,puTTY
, etc.) to the appropriate COM port.
The COM port can be determined via Device Manager in Windows or via
ls /dev/tty*
in Linux.
The connection should have the following settings
Baud-rate: 115200
Data bits: 8
Stop bits: 1
Parity: None
Flow Control: None
Run the example by pressing the reset button. The example should start running automatically when programming via Uniflash is done.
At this point, local OTA is enabled and may be triggered by pressing the LaunchPad button
The procedure to update a new version is as follows:
OTA process will connect the Dropbox/Github CDN server to get the archive tar file
The Dropbox/Github account and directory is configured from otauser.h file
OTA will save all archive files in the NWP SFLASH OTA, on download done, will call sl_Stop() and reset the MCU in order to move the new update into ‘TESTING’ mode OTA, after reset, will run the new update and on succefull ping (system check is ok) will commit the new update OTA will try agin to doanload only newer update from the CDN server
This example demonstrates remote Over-the-Air update experience with CC32xx LaunchPad development kit. Over-the-Air update demonstrates an update of a full image over a secured channel. OTA service enables in-system update of the MCU application, CC32xx firmware releases (a.k.a. Service Pack) made available by Texas Instruments and other vendor files. An update procedure executed in a full system integrity fashion, i.e. failure in upgrading any of the image components would lead to rolling back to the previous valid version.
Please install the latest CC32xx Service Pack.