How to Flash STM32F103-Based Flight Controllers with ST-Link

Added:

Setup & Connect
Erase & Prep
ESP Wiring
Link Success

Setup & Connect

0:00
Playing Section
  • 1

    Initializes Flashing Tool and connects to the flight controller.

  • 2

    Selects target interface and establishes serial connection.

Basic understanding of microcontroller architecture, specifically the ARM Cortex-M3 processor used in the STM32F103 series.
Familiarity with Serial Wire Debug (SWD) and JTAG communication protocols used for programming and debugging hardware.
Understanding the role of flight controller firmware (such as Betaflight or Cleanflight) and how it interfaces with sensors and actuators.
Basic electrical safety and connection practices, including pinout identification (VCC, GND, SWDIO, SWCLK) on embedded boards.
Setting up a full development environment (like STM32CubeIDE) to write, compile, and debug custom C/C++ firmware.
Using GDB (GNU Debugger) with the ST-Link for real-time hardware-in-the-loop debugging, setting breakpoints, and inspecting memory registers.
Understanding bootloader mechanics, including how to recover or 'unbrick' a device using STM32 system boot modes (BOOT0/BOOT1 pins).
Transitioning to more advanced ARM Cortex-M4 or M7 microcontrollers (such as STM32F4 or STM32F7) commonly used in modern flight controllers.
307 views4likes8:03@kiradite4321Original Release: 2020-04-21

This video demonstrates the complete process of setting up and programming an STM32F103 microcontroller for a fly controller application, including hardware connections with jumpers, establishing debugger connections, configuring communication protocols, and verifying successful device communication through practical demonstration.