Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
STM32F4 Baremetal Programming master class(Coding only )
23 students

STM32F4 Baremetal Programming master class(Coding only )

Master STM32F4 Bare-metal Programming(coding only): GPIO, UART, SPI, I2C, ADC, DAC, Timers, PWM
Created byEdison Gachomo
Last updated 8/2026
English

What you'll learn

  • You will write to RCC registers to configure PLL, clock sources, and prescalers—then read back the actual frequencies.
  • You will program the SysTick timer from scratch—implementing polling delays, interrupt-based periodic calls, and building your own delay functions using direct
  • You will configure GPIO pins as outputs—controlling them via ODR and understanding the difference between push-pull and open-drain modes.
  • How interrupts work by configuring the NVIC, writing ISRs and setting priorities
  • You will configure GPIO outputs via ODR and BSRR registers, mastering push-pull vs open-drain modes through direct register control.
  • You will implement UART transmit and receive using all three methods—polling, interrupt, and DMA—by directly manipulating the USART registers
  • You will develop an I2C driver from scratch via register configuration and interface with the MPU6050 sensor to read accelerometer and gyroscope data.
  • You will configure SPI in transmit-only and receive-only modes—including interfacing with a MAX7219 LED display driver.
  • You will configure ADC in single and multi-channel modes using polling, interrupt, and DMA—plus trigger conversions externally via EXTI Line 11.
  • You will configure DAC output using polling and DMA methods through direct register control.
  • You will configure basic and advanced timers for periodic tasks and generate PWM signals on multiple channels using direct register control.

Course content

12 sections • 35 lectures • 2h 51m total length
  • STM32F4 Bare-Metal Setup: Downloading Software & Documentation3:17

Requirements

  • Basic C Programming Knowledge
  • A foundational understanding of STM32 HAL libraries
  • STM32CubeIDE or Keil uVision pre-installed and ready to use on your machine
  • An STM32F4 series development board (e.g., Discovery or Nucleo) and a Mini USB cable for debugging/powering
  • A solid understanding of the communication protocols (UART, I2C, SPI) at the bus level.

Description

This course teaches STM32F4 bare-metal programming from the ground up using direct register manipulation. Instead of relying on HAL libraries or abstraction layers, you will learn to configure every peripheral by writing directly to hardware registers—exactly how microcontrollers were programmed before vendor libraries existed.

You will learn:

System Foundation

  • System Clock configuration and frequency verification

  • SysTick Timer programming using polling, interrupts, and delay generation

GPIO (General Purpose Input/Output)

  • Push-Pull and Open-Drain output modes

  • Pull-Up and Pull-Down input configurations

  • External Interrupts (EXTI) for event-driven programming

Serial Communication Protocols

  • UART: Transmit and Receive using Polling, Interrupt, and DMA methods

  • SPI: Transmit-Only, Receive-Only, and interfacing with the MAX7219 display driver

  • I2C: Driver development and interfacing with the MPU6050 sensor

Analog Peripherals

  • ADC: Single-channel and multi-channel conversion using Polling, Interrupt, and DMA

  • DAC: Output generation, DMA transfer, and triangular waveform generation

Timers & PWM

  • Basic Timer for periodic task generation

  • Advanced Timer for periodic task generation and PWM on 1, 2, and ALL channels

Key Skills You Will Gain

  • Reading and understanding microcontroller reference manuals

  • Configuring peripherals using direct register writes

  • Writing your own device drivers without vendor libraries

  • Debugging hardware issues at the register level

  • Building production-ready embedded systems

By the end of this course, you will have the confidence to build efficient, reliable embedded systems without relying on vendor HAL libraries—giving you complete control over your hardware.

Who this course is for:

  • Embedded Engineers & Firmware Developers
  • Hobbyists & Makers
  • Developers Transitioning to Embedded Systems
  • Anyone Tired of Copy-Paste Coding