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.

SDcard FileSystem Stellaris Launchpad

Hi friend thanks for attetions of everyone. I'm working with a SDcard on Stellaris Lauchpad. And CCS 5.2. I need write and read sdcard with 16GB or 32GB ( SDHC). I see some links on internet talking about FATFS. But I didnt find informatiions about capacity of filesystems and support functions . 

Someone can help me find code that work on Stellaris or give suggestion to implement filesystem to support 32GB. I need that this SD library free, but if didnt find free I would like to receive suggestion about others filesystem. 

THanks for attention and good weekend 

  • Carlos,

    I have not tried an SD card that large with the Launchpad -- only 1GB and smaller.  You should be able to use the sd_card example that is in the boards/ek-lm4f232 directory of StellarisWare as a guide for the Launchpad. This is what I did for a project with an Adafruit MicroSD card adapter.  Looking at the forums, it appears that this code should work with large cards... the included fatfs file system supports FAT32.  SDHC are usually formatted with FAT32.

    Thanks,

    Sean

  • Hi Sean, Thanks to much for answer me. Then I will check stellaris were, Are you test with sucess SD card on stellaris then, this is good, I'm development project to my PHD and I need to store too much data, to offline processing. Then I think to store this data in 2 SD card, one is mirror of other, did you try implement this condition? Did you see something about? 

    I build dual interface, and I need to guaranted 1Mbps trougthput. In my implementation I will tranfer data of FPGA Altera using SPI bus to Stellaris and Stellaris to 2 sd card. If you have some suggetions to solve this big problem, please send me. Thanks soo much to everyone and have a good weekend 

  • Carlos,

    We have not tried to implement this condition here.  How are you mirroring them?  Are they connected separately or together?

    If you are trying to meet a certain level of performance, make sure you use the uDMA to transfer data as well as ensuring that the SPI clock rate is as high as possible. How are you recording data from the FGPA?

    Thanks,

    Sean

  • Hi Sean,  thanks for attention, 

    then in my case I'm build a power energy datalogger to complete may P.H.D . And I have FPGA altera working on signal processing ( extremelly fast to execute using DSP) and I will receive all informations of FPGA using SPI, after received this file I will execute compress data inside of stellaris  and transfer to SDcard. I my project concept I will use 2 separeted SPI bus to SDCARD and mirror SD. 

     I'm open to suggestions, I'm finish build code of SDcard filesystem to start tdata transfer, after this stage I will implement data compress algorithm . Thanks for you attention