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.

FATFS for sd card

Other Parts Discussed in Thread: ADS1292

Hi, 

I have got the mmc.c sorted to be used with the SDHC card. the writing on the SD card is happening at 4 MHz, I need help and suggestions on the following:

1. How do I write the SDHC card in FATFS. I have gone through the elm-chan FATFS but am stuck as to how do i integrate the various commands with that of mmc.c

2. How do I make the card write at a higher speed. I have tried 2 cards and with of them if I increase the clock speed the card does not respond back with R1 command when I send CMD0. Instead the MISO line is always showing 0xFF at speeds higher than 4 MHz

Regards

Viney Chaddha

  • Hi Viney,

    Are you aware of the MSP-EXP430F5529 experimenter's board user experience code? That board has an SD card slot in it and the user experience code implements FatFs - it might be a good reference: dev.ti.com/tirex

    -Katie
  • Katie,

    I have the F5529 launch pad and not the experimenter board. I have attached a breakout board to the UCB1 port of the LP. The breakout board has the micro SD card slot. I am aware of the example being there in the TI-RTOS and imported that but not able to understand the detailed working of various functions like fwrite etc.I want to write the data collected from ADS1292 onto a SD card in FATFS. In order to understand that I had also hunted on the net and came across Elm-Chan site where he said that one needs a glue program between mmc.c and the fwrite, etc. it is precisely this "glue function" that i need is confusing me. I am quite a layman when it comes to SD card. I spent a considerable time and effort to have the mmc.c working for the microSDHC card and after having done that I am stuck with the FATFS. an example code for th "glue program" would be helpful.

    Regards

    Viney Chaddha

  • Hi Viney,

    Unfortunately I'm not familiar with this Elm-Chan library (this isn't supplied by TI) so I don't have an example for you. Maybe someone else from the community will chime in here.

    I realize that you are using the Launchpad and not the experimenter board, but I thought the experimenter board code SD card portion of the user experience code might be an easier example for you to start from and port than something else because it is still the F5529 device on it (and it doesn't use TI-RTOS so it might be simpler for you to understand). It would hopefully be worth looking at.

    Regards,
    Katie

**Attention** This is a public forum