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.

SDHC support for 5509A with 5515 CSL

Other Parts Discussed in Thread: SPRC133

Hi!

I'm working withTMS320VC5509A and I'm trying to support sdhc cards in this CPU.  According Texas, this changes could be done using C5515 CSL. The card identification occurs well, but I'm having some reading troubles. Right now the code is stuck waiting for a read flag that never comes. The code below show the where exactly i'm stuck.

do{
status = hMmcsd->mmcRegs->st0;
//printf("status = 0x%x\n", status);
if((status & CSL_MMCSD_DATA_TOUT_CRC_ERROR) != 0){
reIssueReadFlag = 1;
break;
}
} while((status & CSL_MMCSD_READ_READY) != CSL_MMCSD_READ_READY);

Does anyone have any idea to help me?

Thanks in advance.

Filipe Meyer

  • Hi Filipe,

    I am not sure if VC5509A MMC/SD interfcace supports SDHC capacity cards, however I know C5515 does support SDHC.

    You cannot use the CSL for C5515 with the VC5509A - instead use SPRC133 version for VC5509A.

    http://www.ti.com/tool/sprc133

    Compare the different versions...

    SPRC133: TMS320C55x Chip Support Library for C5501, C5502, C5509, C5509A, and C5510 devices

    C55XCSL-LOWPOWER: TMS320C55x Chip Support Library for C5504, C5505, C5514, C5515 and C5517 device

    Hope this helps,
    Mark

  • Hi Mark!

    3 months ago I've sent a question to Texas if if it's possible to make what I wanted to do. The answer is that it's possible. above you can see the answer:

    "

    Hello Felipe,

    Thank you for contacting TI Applications Support.

    The CSL drivers provided for the VC5509A do not support SDHC. The hardware can support SDHC but the software has not been done to support SDHC on this platform. SDHC has been implemented, however, for the C5515/35.

    What I would recommend is to download the C5515 CSL (http://www.ti.com/tool/sprc133) and modify the VC5509A CSL accordingly to support SDHC.

    I hope this answers your question. If you have any questions or concerns, please let me know."

    The principal differences between 2  controllers is that 5515 has a FIFO to read and write. The card identifican is OK. It recognizes an SDHC card.

  • If the card is identified as high-capacity and card size is read properly, you should be able to access the card for data transfers.

    During data transfers, only difference between standard capacity and high capacity card is, standard capacity card uses byte address mode where high capacity card uses block address mode.

    C5515 CSL expects application/driver layer to pass 'cardAddr' as per the address mode required by the card. You should take care of this in your C5509 CSL or the layer that calls CSL functions.

    - Pratap.

  • Hi Pratap!

    problem solved.  I was using wrong adress format.

    thanks

    Filipe Meyer

  • Hi Pratap,

    can you request SDHC modification in 5509A CSL? or can you or Filipe can post code please?

    Thanks,

    -Yogin