DFU Bootloader for STM32 chips
FreeOpen-source USB DFU bootloader for STM32 microcontrollers
About DFU Bootloader for STM32 chips
dapboot is an open-source USB Device Firmware Upgrade (DFU) bootloader designed specifically for STM32 microcontrollers. It currently officially supports the STM32F103x series and provides pre-configured targets for popular development boards such as the Blue Pill, Maple Mini, ST-Link clones, and others. The bootloader can be built and flashed using standard make commands and OpenOCD, with support for both CMSIS-DAP and ST-Link debugging probes. It offers a standard 8 KiB bootloader occupying lower flash and experimental 'high memory' variants that reside in the top 7 KiB of ROM, allowing applications to run without an offset. The project is configurable via make variables and local.mk overrides, making it adaptable for custom hardware.
Key Features
Pros & Cons
- Open-source and free to use
- Supports multiple popular STM32 development boards
- High memory variant allows applications to run without offset, simplifying linker scripts
- Configurable build options for custom hardware
- Active GitHub repository with community contributions
- Currently only officially supports the STM32F103x series (limited microcontroller range)
- Command-line only; no graphical user interface
- Requires familiarity with make, OpenOCD, and linker scripts
- Documentation is primarily the README file with limited examples