Please note as of Wednesday, August 15th, 2018 this wiki has been set to read only. If you are a TI Employee and require Edit ability please contact x0211426 from the company directory.

CC3200 File Operations

From Texas Instruments Wiki
Jump to: navigation, search
Cc31xx cc32xx return home.png
Cc32xx return sample apps.png

Overview

This example demonstate the file operations that can be performed by the applications. The application use the serial-flash as the storage medium.

CC3200 launchpad has 1 MB Sflash.

Page,Sector and Block size is given below:
Page - 256 Bytes
Sector - 4 Kb
Block - 64 Kb

A filesystem is maintained in the SFlash and the simplelink library exposes APIs to perform file operations by storing the contents in SFlash. The application demonstrates the usage of these APIs.

Application details

The application does the following:

  • Open a user file for writing
  • Writes "Old MacDonalds" child song several times to get just below a 64KB file
  • Closes the user file
  • Opens the file again for reading
  • Reads the data and compares it with the stored buffer
  • Closes the user file
  • Glows the GREEN LED on success, else glows the RED LED on failure.

Source Files briefly explained

gpio_if - Basic GPIO interface APIs. Used to control the RED/GREEN LED.
main - Initializes the device, exercises the file operation APIs supported by the SimpleLink library

pinmux - Assigns a personality to the pins at the device boundary
startup_* - Tool specific vector table implementation

Usage

  1. Run the reference application (Flashing the bin/IAR/CCS).
  2. In case the file operations succeeds, on completion, the GREEN LED glows. In case of any errors, the RED LED glows. 

Limitations/Known Issues =

None.

Links