---
title: "(Sponsored) STM32 USB SD Card Mass Storage Device Tutorial - Phil's Lab #148"
url: https://daily.dev/posts/sponsored-stm32-usb-sd-card-mass-storage-device-tutorial---phil-s-lab-148-fki5bida8
source_url: https://www.youtube.com/watch?v=aEwwQMdKd-c
type: video:youtube
source: "Phil's Lab"
published: 2026-05-31T07:45:22.381Z
updated: 2026-06-04T02:13:07.351Z
tags: ["c", "embedded", "stm32"]
reading_time: 27
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# (Sponsored) STM32 USB SD Card Mass Storage Device Tutorial - Phil's Lab #148

**[Phil's Lab](https://daily.dev/sources/phils-lab)** · 27 min read · 0 upvotes · 0 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=aEwwQMdKd-c>

---

Tags: [#c](https://daily.dev/tags/c), [#embedded](https://daily.dev/tags/embedded), [#stm32](https://daily.dev/tags/stm32)

[View this post on daily.dev](https://daily.dev/posts/sponsored-stm32-usb-sd-card-mass-storage-device-tutorial---phil-s-lab-148-fki5bida8)
