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!
I'm attaching the project. DK_sdcard_issue.zip
In reply to Valentin:
Attached a screenshot with the timeout on CMD6 (SDHI remains busy indefinitely).
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.
In reply to 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?
In reply to Renesas Karol:
Here is a picture with by DK board. The board version is not clear (either 3.0 or 3.1).