Home

Awesome

DFU Bootloader Build Status

This repository contains a generic USB device bootloader firmware for STM32 controllers.

Features

How to build

Simply run make with the following arguments:

Symbol NameUse
SERIESThe series of the STM32 device
TARGET_HEADERString of the device-specific STM32_XPD header
APP_ADDRESSValue of the application's flash start address
APP_SIZEThe total available flash space for the application in bytes
TOTAL_ERASE_MSAverage erase time of the application flash area
VIDVendor ID of the USB device in hexadecimal format (no prefix)
PIDProduct ID of the USB device in hexadecimal format (no prefix)
DFUSESet to 1 if DFUSE protocol is desired
DESC_STRDFUSE specific flash layout descriptor string
BINPATHPath to build toolchain binaries (/usr/bin by default)

An example for an STM32F042K6 device with (VID,PID)={FFFF,FFFF}:

make TARGET_HEADER="\<stm32f042x6.h\>" SERIES=STM32F0 APP_ADDRESS=0x08002000 APP_SIZE=24568 TOTAL_ERASE_MS=480 VID=FFFF PID=FFFF

Further examples can be found in .travis.yml.

Built with GCC. (arm-atollic-eabi- is preferred over arm-none-eabi- as it provides better size optimization)