GithubHelp home page GithubHelp logo

sim-hyunkyu / dfubootloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intergatedcircuits/dfubootloader

0.0 0.0 0.0 44 KB

STM32 USB device bootloader using DFU class interface

License: Apache License 2.0

C 74.44% Assembly 18.99% Makefile 6.58%

dfubootloader's Introduction

DFU Bootloader Build Status

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

Features

  • Fully-featured DFU class (with support to STMicroelectronics protocol Extension) USB device
  • Small footprint: consumes only 8kB flash with -Os (50% smaller than the STM32Cube solution)
  • The DFU interface is allocated to a fixed address, so it can be mounted on the application's USB device, allowing convenient entry to firmware update mode
  • Easy to port on virtually any STM32 device that is supported by STM32_XPD
  • C# CLI application available for performing the update: LibUsbDfu

How to build

Simply run make with the following arguments:

Symbol Name Use
SERIES The series of the STM32 device
TARGET_HEADER String of the device-specific STM32_XPD header
APP_ADDRESS Value of the application's flash start address
APP_SIZE The total available flash space for the application in bytes
TOTAL_ERASE_MS Average erase time of the application flash area
VID Vendor ID of the USB device in hexadecimal format (no prefix)
PID Product ID of the USB device in hexadecimal format (no prefix)
DFUSE Set to 1 if DFUSE protocol is desired
DESC_STR DFUSE specific flash layout descriptor string
BINPATH Path 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)

dfubootloader's People

Contributors

benedekkupper avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.