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.

TMS320F28377S: Where can I find an SD card library?

Part Number: TMS320F28377S
Other Parts Discussed in Thread: CONTROLSUITE, , C2000WARE

I found the controlSUITE SD card example for the TMS320F28377S.
Unfortunately the example only shows how to read the file system form the SD card.
I need a complete solution like the Arduino SD library that will allow me to write files to the SD card.
Does TI have a library or example that shows how to write files to the SD card?

  • Hi Kevin,

    Did you check this out: C:\ti\controlSUITE\device_support\f2806x\v151\MWare\third_party\fatfs

    Regards,
    Gautam
  • Hi Kevin,

    As you said, the example we have only demonstrates reads. We do have an enhancement request filed to update it to demonstrate writes as well although I don't have a release date for that yet. Regardless of what the example shows though, the write functions DO exist in the fatfs files we ship today. Take a look at ff.c and you'll see f_write() is implemented.

    (Note that if you're using controlSUITE instead of C2000Ware, there is a bug in xmit_datablock() in mmc_F2837x.c. The line that says wc = 0 should be wc = 256.)

    Whitney
  • Whitney,

    Thank you for your comment regarding using controlSUITE instead of C2000Ware.
    So far I have only been looking at the C2000Ware Driverlib examples which doesn't include an SD card example but your comment led me to do some more digging around and I found a C2000Ware Bitfield SD card example!
    In the C2000Ware Bitfield SD card example I found the mmc_F2837x.c file and the ff.c file with f_write() that you mentioned.

    Thanks,
    Kevin