STM32 USB 2.0 High-Speed Tutorial (ULPI + MSC + SDRAM) - Phil's Lab #167

Published at : 23 Dec 2025

Firmware and hardware tutorial on how to interface STM32 MCUs with USB 2.0 High-Speed (HS) PHYs. Testing via USB mass storage device (MSD) class with external SDRAM on a custom STM32-based hardware platform.

Limited-time: $2 for 6-layer PCBs up to 100×100 mm - grab your $33 coupon now: https://
jlcpcb.com/events/6-layer-pcb?from=PhilsLab (Ad)



[LINKS]
USB FS + SD MSC Video: https://www.youtube.com/watch?v=aEwwQMdKd-c
SDRAM Video: https://www.youtube.com/watch?v=h28D4AaPSjg
ULPI Blog Post: https://resources.altium.com/p/usb-high-speed-ulpi-routing
USB HS DMA Fix: https://community.st.com/t5/stm32-mcus-embedded-software/problem-with-stm32h747-hs-usb-dma/m-p/165464#M9835

[TIMESTAMPS]
00:00 Intro

02:07 JLCPCB (Ad)
03:09 Altium Develop (Ad)

04:16 Hardware Walkthrough
11:27 CubeIDE Peripheral Set-Up
21:21 Firmware
27:53 Demo & Test
31:25 USB DMA
33:00 Increasing MSC_MEDIA_PACKET Size

34:59 Outro