STM32H753I-EVAL SDMMC cubeMX problem
Hello,
I am a total newby for what concerns stm32 programming and this question may be stupid....
I am using a STM32H753i-eval board and will need to use fdcan, lcd, SD and a few more peripherals. For this reason I started my project using STM32cubeMX and the latest H7 1.3.0 STM32cube. I cleared all pins and tried to configure SDMMC1 as plain 1 bit.
As soon as I try to initialize the card, using HAL_SD_INIT(&hsd1), the program returns an error code.
I compared my code with the SD example in the cube library, and changed my clock settings to make them identical to those in the example (just in case!), but the init function still fails. I also disabled the DMA template in the FatFs setup, as suggested in another post, but still no success.
I used the debugger and found that the error is generated in
SDMMC_CmdOperCond()
called by SD_PowerON()
where
SD_CmdResponse7() returns SDMMC_ERROR_CMD_RSP_TIMEOUT;
this sets
hsd->SdCard.CardVersion = CARD_V1_X;
and finally, when
SDMMC_CmdAppCommand()
is called
SDMMC_GetCmdResp1()
returns, as the previous function, SDMMC_ERROR_CMD_RSP_TIMEOUT;
so that a final HAL_SD_ERROR_UNSUPPORTED_FEATURE; is returned to my main().
I did try to copy as much as possible the example (that works, even if quite slow) but with no success. Maybe I am just doing something stupid..... can anyone help ?
