Example Summary

This example shows how to use the Non-Volatile Storage (NVS) driver to read and write data to off-chip external flash memory. The external SPI flash is accessed by the NVS SPI driver.

Peripherals & Pin Assignments

When this project is built, the SysConfig tool will generate the TI-Driver configurations into the ti_drivers_config.c and ti_drivers_config.h files. Information on pins and resources used is present in both generated files. Additionally, the System Configuration file (*.syscfg) present in the project may be opened with SysConfig’s graphical user interface to determine pins and resources used.

BoosterPacks, Board Resources & Jumper Settings

For board specific jumper settings, resources and BoosterPack modifications, refer to the Board.html file.

If you’re using an IDE such as Code Composer Studio (CCS) or IAR, please refer to Board.html in your project directory for resources used and board-specific jumper settings.

The Board.html can also be found in your SDK installation:

<SDK_INSTALL_DIR>/source/ti/boards/<BOARD>

Example Usage

The connection will have the following settings:

    Baud-rate:     115200
    Data bits:          8
    Stop bits:          1
    Parity:          None
    Flow Control:    None

The following is example output assuming the string was not present in non-volatile storage:

    Sector Size: 0x1000
    Region Size: 0x4000

    Writing signature to SPI flash...
    Reset the device.
    ==================================================

The following is example output assuming the string is present in non-volatile storage:

    Sector Size: 0x1000
    Region Size: 0x4000

    SimpleLink SDK Non-Volatile Storage (NVS) SPI Example.
    Erasing SPI flash sector...
    Reset the device.
    ==================================================

Application Design Details

FreeRTOS: