2025-07-08 2:05 AM - last edited on 2025-07-08 2:53 AM by FBL
hey @m.beddi ,
have you find the solution . i am struck at this too.
edit : to reformulate the issue
Issue description :
I am trying to implement the MSC_Standalone example (USB device mode with SD card) on the STM32469 Discovery board using CubeMX (with USB OTG FS mode).
uint32_t SDMMC_GetCmdResp1(SDIO_TypeDef *SDIOx, uint8_t SD_CMD, uint32_t Timeout)
{
uint32_t response_r1;
uint32_t sta_reg;
uint32_t count = Timeout * (SystemCoreClock / 8U / 1000U);
do
{
if (count-- == 0U)
{
return SDMMC_ERROR_TIMEOUT;
}
sta_reg = SDIOx->STA;
} while (((sta_reg & (SDIO_FLAG_CCRCFAIL | SDIO_FLAG_CMDREND | SDIO_FLAG_CTIMEOUT)) == 0U) ||
((sta_reg & SDIO_FLAG_CMDACT) != 0U));
}
I would appreciate any advice or best practices on how to troubleshoot and resolve this issue, especially regarding clock configuration, SD card initialization, or CubeMX project setup. The complexity of clock and peripheral setup is overwhelming, so any guidance would be very helpful.
2025-08-06 3:45 AM
Hi @Prajyot1
Did you test the SD card with another device? Ensure it is formatted with a supported file system (usually FAT32) and is not corrupted. Otherwise the example itself should be working without issues.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.