A step-by-step walkthrough of implementing a USB Mass Storage Class (MSC) device on an STM32H743 microcontroller connected to a micro SD card via SDMMC. Covers hardware schematic and PCB design decisions, STM32CubeIDE peripheral configuration (USB full-speed, SDMMC, clocks), and firmware implementation of the get_capacity, read, and write functions linking the USB MSC driver to the HAL SD card driver. Demonstrates real-world transfer speeds (~700 KB/s write) limited by the USB 2.0 full-speed interface, and shows how increasing the MSC media packet size from 512 bytes to 32 KB improves throughput. Future improvements mentioned include DMA-based transfers and USB high-speed.
•27m watch time
1 Impression