STM32h7 problem with SDMMC Initialization
Hello,
I'm using an STM32h753i-eval2 board and trying to access an SD card through the SDMMC peripheral.
I have my RCC set on Master Clock Output 1.
I has the SDMMC external transceiver present set to no.
System clock mux is set to HSI
PLL Source is HSI
Using PLL1Q as the SDMMC clock, which I've tried at 25, 50, 100, and 200Mhz (docs suggest the slowest SD cards run at 25mhz).
The problem arises in the generated init code in HAL_SD_InitCard when it calls SD_PowerON:
/* SEND CMD55 APP_CMD with RCA as 0 */
errorstate = SDMMC_CmdAppCommand(hsd->Instance, 0);
always returns SDMMC_FLAG_CTIMEOUT
I've tried increasing the timeout times with no luck. I've stepped through all the clock setup code at runtime and everything looks in order. Any insight would be very helpful and appreciated.
