A guide for developing firmware for STM32 hardware, covering program execution principles, GNU Toolchain usage, OpenOCD flashing, and QEMU simulation.
This document explains how to develop firmware that runs independently on STM32 hardware. It covers the principles of program execution, hardware operation mechanisms, and how the GNU Toolchain compiles and links programs. It also discusses using OpenOCD to burn programs into the STM32 chip's Flash and executing them. For developers without physical devices, the document introduces the QEMU system simulation. This manual is written in Chinese.
The firmware controls an LED connected to GPIO pin 9 on port D (PD9) to make it blink.
The output mode is configured for a maximum speed of 10MHz.
The delay loop increments the counter variable from 0 to 100000.