Skip to content
0:00 / 0:00

#stm32#hal#bare-metal

STM32 Guide #4: Generated Code, HAL, and Bare Metal

Mitch Davis

53K subscribers • 7 videos on Hallway

YouTube
  • Recommended by 3 people: 3 in engineering communities.
  • A classic. People kept recommending it from 2021 to 2024.
  • Presented by Mitch Davis

Intermediate. Assumes working knowledge.

120K views5 years ago3 recommendations

Systems programmingHardwareEmbedded systemsC

Mitch Davis explains how to reverse engineer STM32 CubeMX generated code, use the HAL documentation, and write bare-metal PWM code.

STM32 Tutorial. This video breaks down generated code from STM32 Cube IDE / CubeMx to explain what's going on behind the scenes. I also cover the HAL documentation to explain how to create your own setup code instead of using CubeMX. Additionally, this video covers the bare-metal manipulation of the PWM duty cycle to demonstrate how you can control the microcontroller without HAL or CubeMX.

Why it's here

3 people recommend this

What people say. Recommended for learning how to transition from STM32 auto-generated HAL code to bare-metal programming.

u/forgotmyteain r/embedded • Recommends

STM32 - Reverse engineering auto-generated code

u/ninjabe86in r/embedded • Recommends

On “Don’t know where to start.”

Hey There! Completely understand where you're coming from. Everyone has to start somewhere and knowing where to look is half the battle. Hopefully these resources help you understand what's happening on ARM microcontroller. For C programming on ARM platform, please take a look at Miro Sameks modern embedded programming course playlist. playlist This will bring you from absolute basics up to RTOS implementation. What I really like is how he explains exactly what's happening under the hood with ARM microcontrollers. For beginners introduction to STM32 microcontrollers, digikey has a great playlist that shows how to connect to and read sensors, display their data over uart and more. [digi…

u/hobbesdccin r/embedded • Recommends

On “Made the jump! Looking forward to improving!”

This might be **close** to what you want, the "part 4" vid here shows a bit of doing PWM on bare metal, but not a ton, but he walks you through how to figure it out a little. (ps I'm not an expert, just learned this yesterday) link to this video (part 3) link to this video (part 4)