2025-05-19 7:31 AM - last edited on 2025-05-19 8:05 AM by Andrew Neil
Hello,
I’m working on a custom board based on the STM32H753IITx and I'm trying to access a microSD card via USB_OTG_HS using the USB Mass Storage Class (MSC). I've read this post, which is close to my use case, but unfortunately, I haven’t been able to solve my issue.
Here is a summary of my configuration in STM32CubeMX:
SDMMC1 (SD card interface):
USB_OTG_HS (Mass Storage Device):
Here’s what I’m observing:
I'm using:
STM32CubeFW_H7 v1.12.1
STM32 USB Device Library v1.17.0
I've created a minimal standalone project reproducing the issue — it’s available here: https://github.com/Brandon-Altaneos/STM32H7_SD_USB_StandAlone/tree/master/SD_USB_Stand_Alone .
Any guidance or suggestions would be greatly appreciated.
Thanks in advance,
Brandon
2025-05-19 8:26 AM - edited 2025-05-19 8:30 AM
Hi,
> Clock divide factor: 1 (which results in 200 MHz / (2 × 1) = 100 MHz SDMMC_CK
- is too much ! sd-card max is 50MHz , set div to 2 (or3) , to have max. 50 M .
+
Try first without DMA ;
if working, then try with DMA : disable D-cache (to check, if its a problem with cache manage.)