| KNOWLEDGE BASE

A rich source of expert knowledge

Learn from experts in the world of embedded systems

USE DISCOUNT CODE
LEARN30
TO SAVE $30 USD

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

Firmware tutorial on how to combine the USB mass storage device (MSD) class with an SD card (attached via SDMMC) on a custom STM32-based hardware platform.
Chapters:
  • 00:00Intro
  • 00:53Design Files
  • 02:27Hardware Overview
  • 05:51Pinout & Peripheral Set-Up
  • 08:31SDMMC Set-Up
  • 11:47Clock Configuration
  • 13:22USB MSD Class Middleware
  • 14:37Driver Implementation
  • 16:30GetCapacity Function
  • 18:02Read/Write Functions
  • 19:59SD Card Formatting
  • 21:01Capacity Test
  • 22:09Write Test
  • 23:22Improving Read/Write Speed
  • 24:25Improved Write Test
  • 25:25Read Test
  • 26:47Outro