This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LAUNCHXL-F28379D: how to use SD card in SPI mode ?

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi all,

I am a beginner . I want to connect the SD card in SPI mode to my launchpad, but I don't know What functions should I use in order to get started that there was in "mmc_F2837x.c" .

1- Does exist any document that explain how to initialize SD card for writing or reading? ( I study  FatFs website and I know the steps of initialize SD memory card but the functions of "mmc_F2837x.c" are very complex and I don't know them.)

2- Does exist any sample code for initialize SD card in SPI mode that help me for initialize SD card? (not in I2C or USART---> in sample code in C2000ware SD card is in uart and the initialize process is vague for me.)

Thank you in advance for your kindness.


  • 1. The only documentation we provide is the pretty limited description of the SD card example from C2000Ware. I think the best approach is probably to continue to study the FatFs site and cross reference it with the code in the example.

    2. The C2000Ware example is the only one we provide. It is using SPI to interact with the SD card. All the UART code is just to provide a nice user interface for you to issue commands to the application, but all the communication with the SD card IS using SPI. You could remove the UART code and code the calls to f_open, f_read, etc... yourself and it would still read/write to the card.

    I can offer one more alternative. There's an old app note written for a different C2000 device that describes interfacing with an SD card over SPI that you can look at. You'll have to port it to the the F2837xD (which shouldn't be too bad since SPI hasn't changed much). It doesn't include any of the file system code, but maybe you don't need that part for your application?

    http://www.ti.com/lit/an/spraao7/spraao7.pdf

    Whitney