Uploaded November 2024 | Updated November 2026, 3 hours ago
JLCPCB PCB Fab & Assembly from $2! Register to get $80 Coupons: jlcpcb.com/?from=PhilsLab (AD: This video includes a paid promotion for JLCPCB.)
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.
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: phils-lab.net/courses
Patreon: patreon.com/phils94
[GIT]
github.com/pms67
[SOCIAL]
instagram.com/philslabyt
[LINKS]
Design Files: github.com/pms67/QueenB
Interactive Designs: pms67.github.io
SDMMC App Note: st.com/resource/en/application_note/an5200-getting-started-with-stm32h7-mcus-sdmmc-host-controller-stmicroelectronics.pdf
Rise & Fall Times Video: youtube.com/watch?v=UrnRPwrctRE
[TIMESTAMPS]
00:00 Intro
00:53 Design Files
01:47JLCPCB (Ad)
02:27 Hardware Overview
05:51 Pinout & Peripheral Set-Up
08:31 SDMMC Set-Up
11:47 Clock Configuration
13:22 USB MSD Class Middleware
14:37 Driver Implementation
16:30 GetCapacity Function
18:02 Read/Write Functions
19:59 SD Card Formatting
21:01 Capacity Test
22:09 Write Test
23:22 Improving Read/Write Speed
24:25 Improved Write Test
25:25 Read Test
26:47 Outro
JLCPCB PCB Fab & Assembly from $2! Register to get $80 Coupons: jlcpcb.com/?from=PhilsLab (AD: This video includes a paid promotion for JLCPCB.)
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.
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: phils-lab.net/courses
Patreon: patreon.com/phils94
[GIT]
github.com/pms67
[SOCIAL]
instagram.com/philslabyt
[LINKS]
Design Files: github.com/pms67/QueenB
Interactive Designs: pms67.github.io
SDMMC App Note: st.com/resource/en/application_note/an5200-getting-started-with-stm32h7-mcus-sdmmc-host-controller-stmicroelectronics.pdf
Rise & Fall Times Video: youtube.com/watch?v=UrnRPwrctRE
[TIMESTAMPS]
00:00 Intro
00:53 Design Files
01:47JLCPCB (Ad)
02:27 Hardware Overview
05:51 Pinout & Peripheral Set-Up
08:31 SDMMC Set-Up
11:47 Clock Configuration
13:22 USB MSD Class Middleware
14:37 Driver Implementation
16:30 GetCapacity Function
18:02 Read/Write Functions
19:59 SD Card Formatting
21:01 Capacity Test
22:09 Write Test
23:22 Improving Read/Write Speed
24:25 Improved Write Test
25:25 Read Test
26:47 Outro
![PCB Controlled Impedance - Phils Lab #171
Basics of controlled impedance (microstrip, stripline) for signal integrity and EMI control of high-speed digital systems and PCBs. Sample lesson of the Advanced Digital Hardware Design course (part of Lesson 5).
[LINKS]
Course: https://fedevel.com/courses/advanced-digital-hardware-design
Survey: https://forms.gle/SH815WhaE6MdS9Fv8
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Patreon: https://www.patreon.com/phils94
[GIT]
https://github.com/pms67
[TIMESTAMPS]
00:00 Course Overview
00:51 New Course Survey
01:44 Controlled Impedance (Lesson Extract) PCB Controlled Impedance - Phils Lab #171](https://i.ytimg.com/vi/aNYmOIMt7CY/mqdefault.jpg)
![How To Learn PCB Design (My Thoughts, Journey, and Resources) - Phils Lab #87
Recommendations on how to approach learning PCB and hardware design, including my journey, thoughts on university courses, IPC CID, ECAD tools, and resource tips.
(AD: This video includes a paid promotion for Altium).
[SUPPORT]
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
Patreon: https://www.patreon.com/phils94
Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education
[GIT]
GitHub: https://github.com/pms67
[WEBSITE]
https://www.phils-lab.net
[LINKS]
Dave Jones PCB Design PDF: https://alternatezone.com/electronics/files/PCBDesignTutorialRevA.pdf
Rick Hartley Grounding Video:
https://www.youtube.com/watch?v=ySuUZEjARPY
Rick Hartley Reading List:
https://ninedotconnects.com/public_resources/Ricks-Reading-Recommendation.pdf
Robert Feranecs Channel:
https://www.youtube.com/c/RobertFeranec
[TIMESTAMPS]
00:00 Introduction
01:02 Altium Designer Free Trial (Ad)
01:24 Why Learn PCB Design (Unlocking New Electronics)
03:52 Why Learn PCB Design (Career)
04:47 Problems With University Courses
05:37 My Initial PCB Design Journey
09:01 Key point: Learn by doing and challenge yourself!
10:14 Open-Source Hardware
11:16 Get Your PCBs Manufactured!
12:02 Thoughts on IPC and IPC CID
13:08 ECAD Tools (KiCad, Altium Designer, ...)
14:04 Beginner PCB Design PDF Tutorial
14:37 Design Reviews
15:56 YouTube and Courses (Robert Feranec, Phils Lab)
16:39 Rick Hartley (Videos, Books)
18:02 Outro How To Learn PCB Design (My Thoughts, Journey, and Resources) - Phils Lab #87](https://i.ytimg.com/vi/aODkA2mrimQ/mqdefault.jpg)
![KiCad 6 STM32 PCB Design Full Tutorial - Phils Lab #65
Complete step-by-step PCB design process going through the schematic, layout, and routing of a black-pill STM32-based PCB including USB in the *new* KiCAD 6. All the way from schematic creation, through to two-layer PCB layout and routing, as well as sending it off for manufacture and assembly.
Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education
[SUPPORT]
Patreon: https://www.patreon.com/phils94
[LINKS]
GitHub: https://github.com/pms67
[TIMESTAMPS]
00:00 Introduction
01:26 What Youll Learn
(Schematic)
03:54 STM32 Microcontroller, Decoupling
15:01 STM32 Configuration Pins
21:15 Pin-Out and STM32CubeIDE
26:59 Crystal Circuitry
30:49 USB
33:57 Power Supply and Connectors
42:54 Electrical Rules Check (ERC), Annotation
49:25 Footprint Assignment
(Layout)
52:11 PCB Set-Up
57:03 MCU, Decoupling Caps, Crystal Layout
01:03:15 USB and SWD Layout
01:06:37 Changing Footprints, Adding 3D Models
01:09:38 Switch and Connector Placement
01:12:11 Power Supply Layout
01:14:50 Mounting Holes, Board Outline
(Routing)
01:19:54 Decoupling, Crystal Routing
01:24:10 Signal Routing
01:27:26 Power Routing
01:32:45 Finishing Touches, Design Rule Check (DRC)
01:35:21 Producing Manufacturing Files (BOM, CPL, Gerber, Drill)
01:39:44 Outro
ID: QIBvbJtYjWuHiTG0uCoK KiCad 6 STM32 PCB Design Full Tutorial - Phils Lab #65](https://i.ytimg.com/vi/aVUqaB0IMh4/mqdefault.jpg)
![(Sponsored) Design Review (Spartan 7 FPGA) - Schematic & PCB - Phils Lab #63
First design review of series. Examining schematic and PCB design of a Spartan 7-based board made using KiCad. Common errors, best practices, routing techniques, and so on discussed in brief. Thanks to Andrey for sending this one in! Send your designs for review here: https://phils-lab.net/contact
(AD: This video includes a paid promotion for JLCPCB and Altium.)
Andreys EEVblog post and Git repo:
https://www.eevblog.com/forum/fpga/custom-spartan-7-board-for-beginners/
https://github.com/asmi84/kicad-projects/tree/master/S7_Min
Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education
[SUPPORT]
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
PCBA from $0 (Free Setup, Free Stencil): https://jlcpcb.com/RHS (AD)
Patreon: https://www.patreon.com/phils94
[LINKS]
GitHub: https://github.com/pms67
[TIMESTAMPS]
00:00 Have your design reviewed!
00:43 JLCPCB (Ad)
01:01 Altium Designer Free Trial (Ad)
01:44 Custom Spartan-7 Board Overview
02:50 Schematic
08:30 PCB
ID: QIBvbJtYjWuHiTG0uCoK (Sponsored) Design Review (Spartan 7 FPGA) - Schematic & PCB - Phils Lab #63](https://i.ytimg.com/vi/au9hlIVZteE/mqdefault.jpg)
![STM32 USB 2.0 High-Speed Tutorial (ULPI + MSC + SDRAM) - Phils Lab #167
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)
Altium Develop: http://altium.com/yt/philslab
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Patreon: https://www.patreon.com/phils94
[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 STM32 USB 2.0 High-Speed Tutorial (ULPI + MSC + SDRAM) - Phils Lab #167](https://i.ytimg.com/vi/b6WIETPXQJc/mqdefault.jpg)

![PCB Design for Manufacturing (DFM) Q&A with Sierra Circuits - Phils Lab #158
(AD: This video includes an unpaid promotion for Sierra Circuits.)
A huge thank you to Amit & Lucy from Sierra Circuits for having a chat with me about design for manufacturing from a PCB manufacturer and assemblers perspective!
Try the Better DFM tool to check your PCB design before you send your files for fab:
https://www.protoexpress.com/tools/pcb-dfm-tool/?utm_source=youtube&utm_medium=social&utm_campaign=philslab%2Bpodcast%2Bjan%2B2024
Join Sierra Circuits’ new forum SierraConnect to get answers to all your PCB questions:
https://sierraconnect.protoexpress.com/?utm_source=youtube&utm_medium=social&utm_campaign=philslab%2Bpodcast%2Bjan%2B2024
PCB Fabrication Notes: https://www.protoexpress.com/kb/pcb-fabrication-notes/
PCB Assembly Notes: https://www.protoexpress.com/kb/assembly-notes/
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Patreon: https://www.patreon.com/phils94
[GIT]
https://github.com/pms67
[SOCIAL]
Instagram: https://instagram.com/philslabyt
[TIMESTAMPS]
00:00 Intro
02:22 Rounded Corners
03:27 Solder Mask Expansion
05:47 Acid Traps
08:07 Teardrops
08:38 Copper Fills, Board Warp, and Copper Balance
12:13 Via Finished Drill Size and Annular Ring
15:30 Pick and Place Orientation Standard
17:12 Reducing Number of Different Drill Sizes
19:06 Fiducial Marker Shape
20:18 Rounding Drill Hole Sizes
21:19 Polarity Markers
22:13 Designators
25:02 Panelisation
27:48 Layer Index, Fab Drawings, and Callouts
30:44 Etch Comp
31:33 Output File Format
33:37 Removing Non-Functional Pads
34:54 Outro PCB Design for Manufacturing (DFM) Q&A with Sierra Circuits - Phils Lab #158](https://i.ytimg.com/vi/c2JySJjjs0A/mqdefault.jpg)
![Tremolo Effect - Digital Audio Processing with STM32 #3 - Phils Lab #51
Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education
Real-time digital processing (DSP) of audio data using an STM32 microcontroller in C on custom audio-processing hardware. Third video in series, covering the tremolo effect. Essentially, amplitude modulation of the audio waveform using a low-frequency oscillator (LFO). In this video, well be using a triangular waveform modulator. Including live guitar demo.
(AD: This video includes a paid promotion for JLCPCB and Altium.)
[SUPPORT]
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
PCBA from $0 (Free Setup, Free Stencil): https://jlcpcb.com/RHS (AD)
Patreon: https://www.patreon.com/phils94
[LINKS]
DSP Playlist: https://www.youtube.com/playlist?list=PLXSyc11qLa1ZCn0JCnaaXOWN6Z46rK9jd
STM32 Playlist: https://www.youtube.com/playlist?list=PLXSyc11qLa1a4Tqbz228dPZfMrs-KRpzA
Notch Filter Video: https://youtu.be/ysS4bIXFAsU
First DSP Video: https://youtu.be/VDhmVrbSpqA
GitHub: https://github.com/pms67
Digilent ADP3450: https://digilent.com/shop/analog-discovery-pro-3000-series-portable-high-resolution-mixed-signal-oscilloscopes/
[TIMESTAMPS]
00:00 Introduction
00:41 Previous Videos
01:02 Altium Designer Free Trial (Ad)
01:20 Hardware Platform
01:57 JLCPCB and Git Repo (Ad)
02:20 Test Set-Up and Hardware Overview
03:20 Tremolo Effect Overview
04:22 Tremolo Block Diagram
05:43 Tremolo Equation
06:16 Generating the LFO Triangle Wave
07:43 Tremolo.h (Header)
08:50 Tremolo.c (Source)
11:07 main.c
12:30 Time-Domain Analysis (WaveForms)
14:28 Frequency-Domain Analysis (WaveForms)
16:22 Guitar Demo
ID: QIBvbJtYjWuHiTG0uCoK Tremolo Effect - Digital Audio Processing with STM32 #3 - Phils Lab #51](https://i.ytimg.com/vi/cj8E1ivCCEo/mqdefault.jpg)
![FPGA/SoC Board Bring-Up - QSPI (Zynq Part 3) - Phils Lab #98
How to configure the QSPI Flash memory interface and create first-stage bootloader (FSBL) to automatically program a Xilinx/AMD Zynq system-on-chip on custom hardware. Schematic and hardware walkthrough, Vivado and Vitis configuration, and test.
(AD: This video includes a paid promotion for Altium).
[SUPPORT]
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
Patreon: https://www.patreon.com/phils94
Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education
Advanced Hardware Design Course Survey:
https://forms.gle/X4jwvtZeJ1jTXh7r9
[GIT]
https://github.com/pms67
[LINKS]
Instagram: https://instagram.com/philslabyt
FSBL:
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/439124055/Zynq-7000+FSBL
https://xilinx.github.io/Embedded-Design-Tutorials/docs/2021.1/build/html/docs/Feature_Tutorials/debuggable-fsbl/debuggable-fsbl.html
[TIMESTAMPS]
00:00 Introduction
00:51 Previous Videos
01:13 Altium Designer Free Trial (Ad)
01:30 Schematic
02:45 Memory Choice (UG908)
03:53 PCB & Bootmode Pins
04:58 First-Stage Boot Loader (FSBL) Overview
05:39 Vivado Set-Up
06:57 Vitis FSBL & Boot Image
07:49 Vitis Hello World Application & Boot Image
09:14 Hardware Connection
09:53 Program Flash
11:44 Bootmode Selection (QSPI)
12:17 UART Hello World Test
12:26 Summary & Whats Next
13:08 Outro FPGA/SoC Board Bring-Up - QSPI (Zynq Part 3) - Phils Lab #98](https://i.ytimg.com/vi/cmS0J4ZFhv4/mqdefault.jpg)
![STM32 Fast Fourier Transform (CMSIS DSP FFT) - Phils Lab #111
How to implement a Fast Fourier Transform (FFT) on an embedded system (STM32 microcontroller + CODEC) using ARMs CMSIS library. Full walkthrough and demo of a peak frequency detector. PCBs by PCBWay https://www.pcbway.com (AD: This video includes a paid promotion for PCBWay and Altium).
[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: https://www.phils-lab.net/courses
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
Patreon: https://www.patreon.com/phils94
[GIT]
https://github.com/pms67
[SOCIAL]
Instagram: https://instagram.com/philslabyt
[LINKS]
CMSIS Libraries: https://github.com/ARM-software/CMSIS_4
STM32CubeIDE: https://www.st.com/en/development-tools/stm32cubeide.html
3blue1brown FFT Video: https://www.youtube.com/watch?v=spUNpyF58BY
Hardware Walkthrough Video: https://www.youtube.com/watch?v=AxEL3eESL9I
I2S/DMA Set-Up Video: https://www.youtube.com/watch?v=zlGSxZGwj-E
[TIMESTAMPS]
00:00 Introduction
01:13 Altium Designer Free Trial (Ad)
01:36 PCBWay (Ad)
01:56 Previous Videos
02:27 FFT Basics
03:04 CMSIS Libraries
04:24 Adding Libraries to CubeIDE
06:06 Basic Code Structure
07:12 Including arm_math.h
07:43 ARM FFT Function Overview
09:04 FFT Variables & Defines
09:56 Initialising FFT
10:14 Processing Callback (Fill Buffer, Compute FFT)
12:32 Peak Frequency Detector
13:26 FFT Complex Result
14:27 Computing Magnitude
15:10 Frequency Bins
17:15 Data via USB
17:38 Test Set-Up
18:10 Live Demo
19:43 Outro STM32 Fast Fourier Transform (CMSIS DSP FFT) - Phils Lab #111](https://i.ytimg.com/vi/d1KvgOwWvkM/mqdefault.jpg)
![(Sponsored) ESC Hardware Design - Phils Lab #66
How to design our own simple ESC (electronic speed controller) for control of brushless DC motors (BLDCs), including tips on ESC structure, power section, current and voltage feedback, microcontroller pin-out, USB HS ULPI, and more.
(AD: This video includes a paid promotion for Altium.)
Mixed-signal hardware design course: https://phils-lab-shop.fedevel.education
[SUPPORT]
Free trial of Altium Designer: https://www.altium.com/yt/philslab (AD)
Patreon: https://www.patreon.com/phils94
[LINKS]
GitHub: https://github.com/pms67
ESC/BLDC motor explanation: https://www.youtube.com/watch?v=yiD5nCfmbV0
[TIMESTAMPS]
00:00 Introduction
00:44 Altium Designer Free Trial (Ad)
01:00 ESC Overview and Specification
03:12 Power/Buck Converter
05:52 Microcontroller and USB HS Phy
09:12 Pinout (STM32CubeIDE)
11:19 Half-Bridge, Gate Driver, Voltage/Current Feedback
17:53 Outro
ID: QIBvbJtYjWuHiTG0uCoK (Sponsored) ESC Hardware Design - Phils Lab #66](https://i.ytimg.com/vi/dJjxcjJOlN0/mqdefault.jpg)