SD Init Failure on STM32H743I-EVAL2 with Example Code
I am using the STM32H743I-EVAL2 and have been trying to get the SD card initialization working. During the execution of HAL_SD_Init() --> HAL_SD_InitCard() --> SD_PowerON(), HAL_SD_ERROR_CMD_RSP_TIMEOUT is returned.
I was originally using code generated by CubeMX, but when I couldn't get this issue resolved, I loaded in one of the example projects for this Eval board (FatFs_uSD_Standalone), and it worked for about an hour. But then when I switched the SD card for a different card, it started failing in the same way as before. And when I put the other SD card back in, it continued to fail. One of these cards is the one that shipped with the Eval board. The other is a 16GB SDHC I speed class 10 card.
One more thing to mention: I probed the CMD and clock lines going to the SD card and noticed that when the Eval board is sending commands, transitions on the CMD line occur on the rising edge of the clock, but when the SD card is responding, transitions occur on the falling edge of the clock. I don't know if this is an effect of the IP4856CX25 voltage level translator and is to be expected, or if this indicates something is wrong, but this could possibly be connected to the problem I am seeing.