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.

Interfacing of microSD card with LM4f232h5qd

Hi,

I am having issues interfacing sd card with LM4f232h5qd. Are there any pre defined header files or example codes available which I could use? I tried searching the ti website but couldn't find any solutions.

  • Hello Raghav,

    The following example from TivaWare will be useful for communicating with sd-card.

    C:\ti\TivaWare_C_Series-2.1.0.12573\examples\boards\ek-lm4f232\sd_card

    Regards
    Amit
  • You may also (better) match your Stellaris MCU via: StellarisWare9453\boards\ek-lm4f232\sd_card.

    Your report (having issues) is too vague to enable any meaningful comment.

    Have you loaded that file - complied w/readme guides - and noted specific issues?

    In addition - we note this is your first post - have you prior experience w/MCUs in general - and w/this "ARM" class in specific?

    Unwise to "start" with an advanced peripheral - have you experimented w/GPIO, Timers, and spent time reviewing the SPI chapter w/in MCU manual?

  • I did have a look at the example code. This is basically the file system. I wanted to know if there were any pre built read/write functions?
  • Hi,
    Yes I have used the SPI protocols and worked on few micros developed by freescale. I just wanted to know how to go about if i wanted to interface the ti micro with a SD card. are there any library files which i could use or i have to start from scratch?
  • Hello Raghav,

    The basic read/write can be accessed by re-using the command structure in the mmc-ek-lm4f232.c. But why wouldn't a file system be more useful? That way data exchange between a PC and the board would be simplified.

    Regards
    Amit
  • There is a rather detailed example w/in past StellarisWare - exactly matching your (now) indicated desire.

    Suggest that you read/review - then compile, download & explore.

    Amit's point re: "compatibility w/PC for data read/write" of course has value - but does (possibly) add complication & effort. (it's been years since we've used our EK232 boards (we were "gifted" 3 by vendor) and I don't recall if PC support was included w/in that sd_card code example...

    My 1st post listed (and directed you to) an sd card code example - basic responsibility to judge it's value falls more upon you than others...