![Texas Instruments CC3220 Скачать руководство пользователя страница 126](http://html.mh-extra.com/html/texas-instruments/cc3220/cc3220_programmers-manual_1094609126.webp)
File Rollback Process
126
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
File System
The function interface for committing a file is sl_FsCtl (SL_FS_CTL_COMMIT).
8.11 File Rollback Process
Rolling back a secure file requires a file token with write permission.
Rolling back the file makes the old file copy the active one; at the end of the process, the file state is
changed to standard file.
The function interface for rolling back a file is sl_FsCtl (SL_FS_CTL_ROLLBACK..). For secure files, the
rollback also rolls back the file tokens.
Rolling back files that are currently in the standard file state acts as file abort, but with the filename as
input rather than the file handle.
8.12 Programming
For a fast and smooth production line, the SimpleLink Wi-Fi device offers a programming interface. This
process involves two major steps:
•
Creation of the programming image
•
Programming the device with the image
The same image can be used to program many devices. At the end of the programming process, the
device is configured and contains the packed files.
8.12.1 Creation of the Programming Image
The programming image is a packed file which contains the service pack, the system configuration files,
the user files, and the host program (for the CC3220 device).
The process of creating the programming image is an offline process.
For creating the programming image, the SimpleLink Wi-Fi package contains the Image Creator tool, a
web application (it also has CLI interface) which lets the user easily create the programming image and
supports programming the device.
The UniFlash Image Creator tool creates three types of files:
•
.sli, the file format is TI proprietary structure and is used for the Image Creator tool and host
programming.
•
.ucf, same as the s.li, used for the host programming
•
.bin, the standard binary file for external flash programming
•
.hex, the standard Intel Hex file for external flash programming
The programming image can be created as encrypted (AES-CTR 128); the key used for the encryption is
supplied during the image programming.
8.12.1.1 Programming Image Types
The programming image can be defined (by the Image Creator) as one of the following types:
•
Production
•
Development
The development image is intended for development and debugging; the development image can be
created only for a specific device (by using its MAC address). For a device programmed with the
development image, the Image Creator tool can retrieve the file list from the device and edit the files
(online). For the CC3220S/CC3220SF device, the development mode also enables the JTAG interface.
8.12.1.2 Program the Device
The image can be programmed to the device using one of the following methods:
•
Image Creator tool (by UART lines)