STM32 Programming Tutorial for Custom Hardware | SWD, PWM, USB, SPI - Phil's Lab #13

preview_player
Показать описание

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.).

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:

[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
Рекомендации по теме
Комментарии
Автор

New hardware and PCB design course on mixed-signal embedded systems just released!

PhilsLab
Автор

This channel is just fantastic. I've always wanted to learn this stuff and this is one of the finest resources I've stumbled upon. It's easy to find beginner tutorials like Arduino programming but when you get beyond that it becomes harder and harder to find good content and resources.

RohitSardessai
Автор

Can't recall when my eyes have been so glued to my screen. Awesome Channel, awesome video.

kulaniscap
Автор

Mate, you're gonna groom alot of engineers with all this content. Essentially, helping people earn their way in the world. God bless you. Take care, and Thank you.

suvapillay
Автор

I completely love your videos. Please continue these STM32 videos!

billyjoe
Автор

Keep up the good work. The best detailed tutorials ever. Never get bored I can watch your videos for hours 😍

chihebsabri
Автор

your stm32 videos are hands down the best on YouTube keep up the great work sir

frankbose
Автор

The best stm32 tutorial on YouTube! Hands down!!

stm
Автор

Amazing tutorial Phil! No wasted time, just clear and complete explanations. On the downside, now engineering managers are going to expect that we can crank out a complete project in 38 minuets.

danielcox
Автор

Great tutorial. It was tutorials just like this that helped get me into electronics a few years back.

ScuffedCircuits
Автор

Have been searching for content like this for a while now thank you for taking the time to provide such an amazing content .

viswadeepkopalli
Автор

Great video. Very few people go this way to explain things in a simple and detailed way. Expect more content from you!

rikilshah
Автор

Phil, you have excellent presentation ability on topics that are on a different level and it is rare to see such a thing. The video is excellent and professional and shows all the basic steps to get started. I'm sure everyone will also be happy to see how DMA is enabled and how RTOS is used. Your contribution to amateurs, students and beginning engineers around the globe is unquestionable.

davidbrooks
Автор

As someone getting into this your videos have been one of my greatest resources, thank you so much for creating this awesome content!

clamper
Автор

This is some really high quality content/tutorial!

vinamarora
Автор

Awesome video! I hope this will be a whole video series. The topic is not covered well on the internet yet, so I think the community welcomes it nicely!

skrya
Автор

Love the stuff you are teaching here... So glad that I discovered your channel!

abhishekreddy
Автор

This is awesome, especially with the long tutorial on making a PCB. I struggled so much trying to figure out how to program and debug a cheap blue pill board. I couldn't find a straightforward tutorial on getting started. I spent countless hours trying to figure out what I needed to program and debug with stlink. Thanks again.

tonyfremont
Автор

A really nice overview! I'm going to go back and watch your earlier videos.

markday
Автор

Great timing. I just recently got a few of the WEACT modules. Great video and really helped me understand CubeIDE. Thank you.

JessieKropp