H7A3 SDMMC 2 not working, system stall at MX_SDMMC2_SD_Init().
Hello, when testing the SDcard on SDIO 1-bit interface , we see a big problem here:
when card in slot, cpu stall in MX_SDMMC2_SD_Init() , on debug can see: card info sector count, block size etc. read seem ok, but then waiting for response -- forever. (timeout -1)
SDclk set to 200/(4*2) MHz, 1-bit mode; tried different things: cache on/off, clk faster/slow, extra cap close to card holder, different cards, core volt.scale 0/1; now i am out of ideas, why it is not working. looked also H7A3 errata, but there i see no problem with SD .
Stall/wait is here, in init :
while (!__HAL_SD_GET_FLAG(hsd, SDMMC_FLAG_RXOVERR | SDMMC_FLAG_DCRCFAIL | SDMMC_FLAG_DTIMEOUT | SDMMC_FLAG_DATAEND))
so: what is wrong? do i something wrong? or is something missing?
