2025-01-17 08:18 AM
Hello,
I've just received my custom PCB with an STM32H743VIT6 MCU.
It has a Samsung eMMC connected to the SDMMC1 interface (MMC 8 Bits Wide Bus) :
(I'll link the eMMC datasheet below.)
I'm encountering some issues while initializing the device with the MX_SDMMC1_MMC_Init function.
More particularly it seems to be stuck in the HAL_MMC_InitCard function, on this block :
/* Card initialization */
errorstate = MMC_InitCard(hmmc);
if (errorstate != HAL_MMC_ERROR_NONE)
{
hmmc->State = HAL_MMC_STATE_READY;
hmmc->ErrorCode |= errorstate;
return HAL_ERROR;
}
When i launch a debug session it seems to freeze on this block :
/* Get CSD parameters */
if (HAL_MMC_GetCardCSD(hmmc, &CSD) != HAL_OK)
{
return hmmc->ErrorCode;
}
Here's the variables states at this breakpoint :
The data does not seem coherent. Am I missing something here ?
For the configuration of the SDMMC1 interface i setted the Clock at 50MHz on the Clock Configuration, and a Divide Factor of 8 (tried 0, 5 and 6 but have the same result) :
Could someone help me solve this issue?