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.

EK-TM4C123GXL: Help with SDCard needed.

Part Number: EK-TM4C123GXL

Hello Guys,

I am trying to figure out how to get the sd card example from the dk-tm4c129x working with the tm4c123gxl. Right now I removed no wanted stuff from the example and I am just trying to create a simple txt-file. But that does not work. I have connected the SSI0 to the SD card reader (just a basic micro sd card adapter for arduinos with spi). 

I am using the in the tivaware included FATFS library. I also use the mmc-dk-tm4c123g.c where I just changed a few GPIO Pins to use the SSI0 module instead of the SSI1, but actually I have tried both already and none works.

My project files can be downloaded here: 

Filebin | mheis5gsgdbkf70w

Does someone can take a look into it? I have actually no idea anymore where the problem could be. 

When opening a file it just responds with error: f_open error: FR_NOT_READY

  • Hi,

      I'm currently out of office. I will look into your question when I get back tomorrow. 

  • Hi,

      I tried the sd-card example for dk-tm4c129x and it is working out of the box for me. This means the example and the FAT file system are working. You will need to port the example to TM4C123. There is also the sd-card example for a obsolete TM4C123 EVM board. You can still find the example in the 2.1.4.178 TivaWare. The example is at C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c123g\sd_card. You can download the earlier TivaWare version. 

    Below is what I see on the LCD screen for the sd-card using FAT file system. 

  • Ok, now the issue resolved. I'm not really sure what the problem was. I made sure that the connection to the sd card reader was good and reformated the sd card. 
    I guess my sd card was not properly formatted which is why it could not access it, but not really sure.