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.

TM4C1294NCPDT: SDCard read error with TM4C1294NCPDT

Part Number: TM4C1294NCPDT

One of my project requires SD-Card to interfaced with TM4C1294NCPDT to store data regularly. I've chosen "fatsdraw_EK_TM4C1294XL_TI" project from the "Resource Explorer".

I've formatted the SD-Card with FAT32 and using 2GB and 32GB. The SD-Card module is interfaced with TM4C via SPI2. The SD-card module is from "robocraze.com/.../sd-card-module

I'm able to send proper CS, Clock (400Khz) and MOSI signals. But, I'm getting "FR_NOT_READY" status.

Need support to solve this issue.

  • HI,

      I'm not familiar with the TI-RTOS SDcard example. Have you tried the example as-is without modification on a LaunchPad? Per the example instructions, it uses SPI0. I will suggest you run as is and make sure it works on the LaunchPad. This way it will be easier for you to debug/diagnose the problem. 

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    Example Summary
    ---------------
    Sample application to read and write data onto a SD Card (SPI interface)
    Board Overview
    --------------
    Board_LED0 Indicates that the board was initialized within main()
    Board_SDSPI0 Connection to SD card
    Resources & Jumper Settings
    ---------------------------
    Please refer to the development board's specific "Settings and Resources"
    section in the Getting Started Guide. For convenience, a short summary is also
    shown below.
    | Development board | Notes |
    | ================= | ====================================================== |
    | CC3200 | Requires an external SD Card boosterpack |
    | EK-TM4C123GXL | |
    | ----------------- | ------------------------------------------------------ |
    | DK-TM4C123G | It uses the onboard SD Card slot. |
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Charles,

    Thanks Charles for quick response.

    Yes I'm using the Tiva LaunchPad. And I've connected to SPI2. I'll try changing to SPI0 and update you on the results.

  • Hi Charles,

    I tried changing the SPI, but still the error is same. Is bare-metal code for SD-Card is available for TM4C1294NCPDT?

  • Hi,

      Yes, there is a bare-metal example at C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\dk-tm4c129x\sd_card. The example is created for a EVM board that has a LCD screen. You need to remove the code that pertains to the LCD and also adapt the code for your specific part number (e.g. pinmuxing.)