README


sdraw


Example Summary

Sample application to read and write data onto an SD Card (SD interface).

Running this application will cause any filesystem on the SD card to become corrupted!

Peripherals Exercised

Resources & Jumper Settings

If you’re using an IDE (such as CCS or IAR), please refer to Board.html in your project directory for resources used and board-specific jumper settings. Otherwise, you can find Board.html in the directory <SDK_INSTALL_DIR>/source/ti/boards/<BOARD>.

This example requires an external SD Card boosterpack.

Example Usage

The connection should have the following settings

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

Application Design Details

This application uses one thread:

The mainThread performs the following actions:

  1. Create and initialize the SD driver object.

  2. Calculate the total card capacity from the sector size and number of sectors on the SD card.

  3. Write the default message in textarray to the file and print its contents to the console.

  4. Read back the message from the SD card into a temporary buffer, cpy_buff and print its contents to the console.

  5. The SD driver is closed and the example is terminated.

TI-RTOS:

FreeRTOS: