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.

  • Resolved

TMS320C5515: MMC_getCardStatus() Never Returns

Part Number: TMS320C5515

Hi,


We wanted to be able to read the SPEED_CLASS of an SD card.


From what I currently understand this is located in bits 447:440 of the SD card status register as per Section 4.10.2 SD Status of document Physical Layer Simplified Specification Version 6.00 found at the below link: www.sdcard.org/.../


I have tried using the function MMC_getCardStatus() after calling MMC_open() to get the 512 bit status of the SD card with no success.


Below is our situation:


1. A call to MMC_getCardStatus() executes indefinitely, the CPU never returns from this method.


2. MMC_getCardStatus() wants to store the information into a uint32, however, the status register is 512 bits.  Will all the data be stored in one uint32?


Otherwise the SD card works as expected, we can read and write to it with no issues whatsoever.


We are using CSL v3.04 with Code Composer Version: 6.1.1.00022 and TI Compiler 4.4.1.

Thanks,


Ben

  • Ben,
    We will need to look into this and get back to you. Please expect a delay in the response due to the holidays. Appreciate your patience.

    Lali
  • Ben,

    Thanks for your patience. I checked on this internally and the SD card driver is only supported as far as v3 of the SD specification.
    So, unfortunately the SPEED_CLASS of the SD card isn't supported in the driver. The 512-bit block that you are reading only indicates if its a MMC card or an SD card.
    Hope this clarifies.

    Lali

  • In reply to Lalindra Jayatilleke:

    Hi Lali,

    Thanks for the response.

    I'll have to look into interrogating the card myself then for the desired information since CSL only supports up to v3 of the SD specification.

    That's fine, but what could be contributing to the SD card driver hanging up?

    Is the method MMC_getCardStatus() something that shouldn't be called?

    Thanks,

    Ben

  • In reply to Benjamin Michaud:

    Hi Ben,

    I don't think that would cause the driver hang. Weird that it is.
    Were you able to step through the code with break points to see where it ditches or how far it reaches?

    Lali
  • In reply to Lalindra Jayatilleke:

    It helps if one has an SD card inserted on their development PCB.

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.