FileX/SD card issue with SSP1.3.0

Hello,

 

I have the following issue with a S7G2-DK board, SSP 1.3.0, and FileX/SD card.

 

The FileX error callback is called upon initialization because the SD card could not be initialized.

In the attached screenshots, you can see the CMD6 failing, putting the SDHI in busy, and failing every other command afterward. Note that it is not an issue specifically with the CMD6, but this is the first command that outputs data both on the CMD line (R1 response) and on the DATA lines (512 bits). Commands that output only R1/R7/... response on the CMD line works fine.

 

The same issue I had even before, with SSP 1.2.0, at that point the first command that failed was ACMD51 (same thing, it was the first command to output data on DATA lines). I'm testing with a SDHC SanDisk 8GB and a microSD Kingston 2GB with the same status.

 

Please find attached the sample project that I use to reproduce this issue and some screenshots. The sample project has no code in the Filesystem user thread part, because that part is not even reached, everything fails at initialization.

 

Looking forward for your response!

Thank you,

Valentin

  • In reply to Valentin:

    Attached a screenshot with the timeout on CMD6 (SDHI remains busy indefinitely).

  • In reply to Valentin:

    Hi Valentin,

    Do all SDHI pins have drive capacity set to high?

    Which transfer driver do you use, DTC or DMAC? You may try to use the other one.

    Regards,
    adboc

  • In reply to adboc:

    Hi adboc,

    All the pins connected to the SDHI0 peripheral have the drive capacity set to High.
    I use DTC, but I tried switching to DMAC and the same issue occurs.

    Are you able to reproduce my issue with the project I've sent?

    Thanks,
    Valentin
  • In reply to Valentin:

    Hi Valentin,

    I cannot even compile your project, seems like the project should be exported using right click on project > Export Synergy Project...

    But I've copied all configuration and source files. Currently I don't have access to any SD card, so switched the configuration to eMMC and didn't encounter any issue. Have you tested it with eMMC also?

    Have you had a chance to check the FileX on Block Media module guide: www.renesas.com/.../D6001597.html ?

    Regards,
    adboc
  • In reply to adboc:

    Hi adboc,

     

    First, here is the exported project that should compile on your side. 8168.DK_sdcard_issue.zip

    Then, I tried switching the configuration to eMMC (media type = embedded, card detection = none, S101 DIP switch configured for MMC) and it is working.

    Then, I tried using directly the project SDMMC_HAL_FRWK_FX_MG_AP from the media guide you indicated, and without any modifications, the project is not working. I have the same SD card initialization failure as with my own project.

     

    So, what could be the problem that even with an example from Renesas I cannot initialize the SD card?

     

    Thanks,

    Valentin

  • In reply to Valentin:

    Hello Valentin,

    Please verify that "SD" switch on the expansion board is in the ON position and following switches are set to OFF: MMC, CAM as well as ETH1 on the main board.

    Regards
  • In reply to Renesas Karol:

    Hello Karol,

    On the main board, only PMODB, SD, RS switches are ON, everything else are OFF.
    On the breakout board, there is ENET1, but I need this and should have nothing to do with SD. (ENET0 pins are multiplexed with SD, right?).

    Thanks,
    Valentin
  • In reply to Valentin:

    Hi Valentin,

    That's correct, ENET0, SD and eMMC are mutually exclusive. CAM and ETH1 are mutually exclusive also. Please make sure that the motherboard is sat firmly on the expansion as there are 4 connectors between the two.

    Regards
  • In reply to Renesas Karol:

    Hi Karol,

    I checked and the motherboard is firmly sat on the expansion. More, I have no other issues on the board except with the sd card... Any other ideas of what could go wrong?

    Thanks,
    Valentin
  • In reply to Valentin:

    Hi Valentin,

    Is the card FAT12/16/32 formatted? exFAT and NTFS are not supported by FileX on Synergy.

    Regards
  • In reply to Renesas Karol:

    Hi Karol,

    The cards I use are FAT32 formatted, but it's not an issue with the file system, rather with the sdcard communication. CMD6 which is failing has nothing to do with the filesystem.

    Thanks,
    Valentin
  • In reply to Valentin:

    Hi Valentin,

    Despite of being unable to build your project, I've created a new one and copied all necessary files. I haven't observed any issues with SD card. Which DK-S7G2 version are you using?

    Regards,
    adboc
  • In reply to adboc:

    Hi adboc,

    Here is a picture with by DK board. The board version is not clear (either 3.0 or 3.1).

    Thanks,

    Valentin