(Sponsored) STM32 Board Bring-Up (Firmware and Test) - Phils Lab #54 @PhilsLab
(Sponsored) STM32 Board Bring-Up (Firmware and Test) - Phils Lab #54  @PhilsLab
Uploaded March 2022 | Updated November 2026, 3 hours ago
Basic board firmware bring-up of the 'new' LittleBrain++ PCB featuring an STM32F4 microcontroller, sensors, and USB. How to write simple test firmware (I2C, USB), set-up STM32CubeIDE, and transfer data from a schematic to software.

(AD: This video includes a paid promotion for JLCPCB and Altium.)

[SUPPORT]
Free trial of Altium Designer: altium.com/yt/philslab (AD)

PCBA from $0 (Free Setup, Free Stencil): jlcpcb.com/RHS (AD)

Hardware design courses: https://phils-lab-shop.fedevel.education

Patreon: patreon.com/phils94

[LINKS]
GitHub: github.com/pms67

[USB CDC CODE]
After include statements:
static uint8_t lineCoding[7] // 115200bps, 1stop, no parity, 8bit
= { 0x00, 0xC2, 0x01, 0x00, 0x00, 0x00, 0x08 };

in CDC_Control_FS:
case CDC_SET_LINE_CODING:
memcpy(lineCoding, pbuf, sizeof(lineCoding));
break;

case CDC_GET_LINE_CODING:
memcpy(pbuf, lineCoding, sizeof(lineCoding));
break;

[TIMESTAMPS]
00:00 Introduction
00:35 First Steps

01:40 Tag-Connect SWD Programming Header/Connector

02:24 JLCPCB and GitHub Repo (Ad)
03:00 Altium Designer Free Trial (Ad)

03:16 Hardware Overview
04:59 STM32CubeIDE Basics
05:59 Pinout
08:14 Clock Configuration
09:15 Programming and GPIO (LED) Test
12:08 I2C #1 (Inertial Measurement Unit)
16:58 I2C #2 (Pressure Sensor)
19:11 USB (Virtual COM Port)

23:14 Outro

ID: QIBvbJtYjWuHiTG0uCoK
(Sponsored) STM32 Board Bring-Up (Firmware and Test) - Phils Lab #54HyperLynx DC Drop Simulation - Phils Lab #164Critiquing My Own PCB Designs - Phils Lab #43(Sponsored) Design Review (Buck + STM32 + Peripherals)  - Phils Lab #81IMU Sensor Fusion - Kalman vs Complementary FilterPCB Silkscreen & Solder Mask 101 - Phils Lab #133STM32 + Segger Real-Time Transfer (RTT) Debugging Basics - Phils Lab #177Audio Compressor Software Implementation (STM32 DSP) - Phils lab #157PCB Via Fencing & Edge Plating Basics - Phils Lab #175Self-Balancing Bicycle - Lego PrototypeMixed-Signal PCB Design Course Preview & JLCPCB 6-Layer Assembly - Phils Lab #16PCB Design Final Touches (Tips & Checklist) - Phils Lab #131
Phil’s Lab |

(Sponsored) STM32 Board Bring-Up (Firmware and Test) - Phil's Lab #54

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER