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.

Using SD slot on AM335X ICE board

Hi, I'm trying to use the SD port to write files into and currently am not able to get the Starterware hs_mmcsd_rw.c example to work.  It seems like it isn't able to detect the SD card. 


I've tried changing the Base Address of the MMC mapped registers from 0 to 1 and it would show the card as being detected even though no card was inserted.

Has anyone gotten this to work properly? Any help is appreciated.  Thank you.

  • Did you also change the EDMA function-index (as used e.g. in cb_Fxn[])? For MMC1 different EDMA-indices are used for read and write, EDMA3_CHA_MMCSD0_TX and EDMA3_CHA_MMCSD0_RX need to be replaced by their MMC1-pendants.

    If that does not help it also could be a similar problem as discussed in http://e2e.ti.com/support/embedded/starterware/f/790/t/313879.aspx

  • I don't see those other macros defined for MMCSD1 in the EDMA headers files.  Do you know if I should be able to use either of the MMC channels?

    In your link, were you only reading from the SD card or did you write to it as well?  Did you have to change any of the Pin muxing or the Card detect pinnum to get yours to work?

  • Hi,

    Modify the following to port for another instance

    1. Pinmux

    2. Clock Config

    3. Following MACROs

    a. MMCSD_INST_BASE

    b. MMCSD_INT_NUM

    c. MMCSD_TX_EDMA_CHAN

    d. MMCSD_RX_EDMA_CHAN

    Regards,

    Ramesh D

  • Andrew Kong1 said:
    I don't see those other macros defined for MMCSD1 in the EDMA headers files.  Do you know if I should be able to use either of the MMC channels?

    StarterWare is VERY incomplete at this point, support for MMC1 is missing completely, including these defines. But you can find their values in TRM easily (don't know the exact values at the moment).

    Andrew Kong1 said:
    In your link, were you only reading from the SD card or did you write to it as well?  Did you have to change any of the Pin muxing or the Card detect pinnum to get yours to work?

    I plan to write to it but since it isn't working at all, I could test neither reading nor writing at the moment :-(

    Pin-Muxing is definitely necessary!

  • According to the schematic I have, the MMC1_CD pin is connected to pin M16 on the ICE board which is not one of the designated pins from the AM335X datasheet.  I ended up pin muxing  M16 as a GPIO pin and now am able to detect the SD card.

    If other people have had to do this, then I think TI needs to fix this issue.