STM32 Programming Tutorial for Custom Hardware | SWD, PWM, USB, SPI - Phil's Lab #13
Phil’s Lab Phil’s Lab
151K subscribers
310,628 views
0

 Published On Oct 25, 2020

⏵Hardware and PCB design course: https://www.phils-lab.net/courses

Overview of how to write test firmware for a custom STM32-based PCB, in particular for a variant of one made using the hardware design tutorial videos (including various sensors, flash memory, USB, etc.).
Visit https://jlcpcb.com/RHS for $2 for five 2-layer PCBs and $5 for five 4-layer PCBs.

Includes topics such as: STM32CubeIDE, SWD and ST-Link, Timers and PWM (RGB LED), USB (Virtual COM Port), SPI (driver for inertial measurement unit).
By no means a complete tutorial but rather a guide on how to approach writing firmware when you first get your custom boards!

If you're enjoying my content, please consider becoming a patron:
  / phils94  

https://github.com/pms67/LittleBrain-...

[TIMESTAMPS]

00:00 Assembled Boards
02:53 Hand-Soldered Components
03:26 Initial Testing Suggestions and ST-Link/USB Connections
04:45 How to Order (JLCPCB)

06:36 STM32CubeIDE Overview
07:43 CubeIDE Project Creation
08:44 Pin and Peripheral Assignment
12:40 Clock Configuration
13:43 USB CDC Config
14:28 SPI Baud Rate Config
15:10 Timer PWM Config

18:23 RGB LED Firmware (Timers and PWM)
21:38 Debugging via ST-Link and SWD
24:11 USB Virtual COM Port Firmware (USB CDC)
29:05 Inertial Measurement Unit (IMU) (SPI in Polling Mode)

37:28 Final Testing

ID: QIBvbJtYjWuHiTG0uCoK

show more

Share/Embed