GithubHelp home page GithubHelp logo

lishiyilong / stm32f4_dfu_demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microready/stm32f4_dfu_demo

0.0 0.0 0.0 1.5 MB

STM32F4 USB DFU Demo using STM32F407 Discovery Board

License: MIT License

C++ 3.06% C 93.95% Assembly 0.71% Makefile 1.15% HTML 1.12%

stm32f4_dfu_demo's Introduction

STM32F4_DFU_Demo

STM32F4 USB DFU Demo using STM32F407 Discovery Board

This is a demo of jumping to the system memory bootloader from your application The demo flashing led project was built in STM32CubeMX and then changes made to main.c and startup_stm32f407xx.s files. The blue user button on the board is set up as an interrupt. Whenever the button is pressed a bootloader_is_requested flag is set to 1. This flag is checked in the main loop. If the flag is set, a special boot value is stored in RAM and a software reset is performed. On reset, the RAM is checked to see if the special boot value is present. If not, it continues to the main application. If the flag is set then it jumps to the system memory bootloader.

Notes: All stm32f4 variants have the same bootloader address, so this code should work for other STM32F4s The USB DFU will not work if there is no external crystal. The DFU bootloader requires *.dfu files. These can be converted from the application hex files using ST's DFU File Manger and downloaded with ST's DfuSe Demo application.

stm32f4_dfu_demo's People

Contributors

microready 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.