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.

micro SDHC card : erase command CMD32, CMD33, CMD38

Hello,

Does the SD peripheral on  the C5535 support the erase command; namely the sequence 1. specify first block to erase (CMD32); 2. specify last block to erase (CMD33); 3. erase(CMD 38). After I issue CMD38 to erase only one sector, I issue a get card status command CMD 13 which times out. What could be the cause?

Regards,

Magda

 

  • Hello,

    The C5535 CSL does not support these erase command functions. Are you writing your own?

    The SD peripheral HW on the C5535 supports the erase commands. Please check to be sure you are following the SD erase protocol.

    Regards.

  • Hello Steve,

    Thanks for your reply.

    It seems to me that these commands should be supported by  the SD card peripheral if the C5535 complies with the SD Specifications Physical Layer 2.0. This is what is stated in SPRUH87.pdf - Section 6.1.5. It is important for me to know whether Version 2.0 is supported or not.  I ran into errors also when trying to follow 6.3.10 - Setting the SD card into High Speed Mode, though I am able to run the card at 50 MHz.

    Regards,

    Magda

     

  • Hello Steve,

    Thanks for your reply.

    It seems to me that these commands should be supported by  the SD card peripheral if the C5535 complies with the SD Specifications Physical Layer 2.0. This is what is stated in SPRUH87.pdf - Section 6.1.5. It is important for me to know whether Version 2.0 is supported or not.  I ran into errors also when trying to follow 6.3.10 - Setting the SD card into High Speed Mode, though I am able to run the card at 50 MHz.

    Regards,

    Magda

     

  • Magda,

    That's great you can run the card at 50MHz which is the maximum clock frequency supported. The HW complies with the spec. It is the SW layer functions not in CSL. I have submitted an enhancement request to the SW team.

    Regards.

  • Steve,

    Thanks for submitting the request.

    I actually tried to implement the erase steps using MMC_sendCmd() but got an error when I tried to send a new command following the erase command - CMD38. Likewise, CMD6 is not supported, though it appears that the SDHC can be set in high speed mode by simply setting the SD clock to be 50 MHz. Please confirm.

    Regards.

    Magda

  • Hey Magda,

    Did you ever figure out a way to put the SD card into high speed mode ? Did just increasing the clock do the trick ?

    Thanks,
    Koshy