2020-09-09 02:28 AM
I try a lot of clock configurations but it always response command timeout error at the following line of the generated MX_SDMMC1_SD_Init function.
if (HAL_SD_Init(&hsd1) != HAL_OK)
{
Error_Handler();
}
How should I set the SDMMC1 configuration for STM32H747I-DISCO?
2020-09-15 09:40 AM
Hello @Ellaine ,
Please refer to this AN5200 "Getting started with STM32H7 Series SDMMC host controller" , which presents typical examples that highlight the SDMMC host interface features and will help you on SDMMC configuration using STM32CubeMx.
Best Regards
Imen
2020-09-22 09:07 PM
Ok, thank you vey much.
2022-06-08 10:16 AM
I have similar problem. I read the documentation. But it's not for my H747I. I configured it as described, Cube shows no errors, but when I start my app I get a black screen. When I disable SDMMC1 it works. My clock is 125MHz, I use 1-bit SD mode. Hardware used is STM32H747I-DISCO board. Application is created with TouchGFX.
Ooops, nevermind, it looks like the HAL driver queries the card, and I have no card inserted. It passes all initialization to the point of card voltage query, so I guess it will work as soon as I insert the card.