Giter Site home page Giter Site logo

isliulin / stm32-iap-msd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from havenxie/stm32-iap-msd

0.0 0.0 0.0 3.96 MB

STM32内部Flash模拟成U盘,实现拖拽Hex/Bin文件进行固件升级

C 98.19% Assembly 0.62% CSS 0.13% C++ 0.31% Objective-C 0.58% Batchfile 0.17%

stm32-iap-msd's Introduction

###STM32 Flash-Udisk-IAP

:项目说明

STM32内部Flash模拟成U盘进行固件升级。系统上电之后在3S内检测到PC连接到STM32成功则进入Boot模式,此时将固件拖入U盘则完成升级,之后跳转到App区域执行用户代码。

注意事项:

  • BOOT区域划分20K
  • App区域从0x8004000开始
  • App程序进入Main后首先需要设置中断向量表地址并且在工程配置里设置flash起始地址是0x8004000
  • 支持HEX文件拖拽升级
  • 支持BIN文件拖拽升级

项目开发过程:

  1. 在Win10上bin文件烧录过程会失败,Win7待测 2019050

    • Win7同样会失败,初步原因分析是数据丢包 20190507
    • bin文件写入地址不正确,重新实现写入flash数据的算法,解决了bug 20190511
  2. 在Win10上hex文件只能烧录一次,Win7待测 20190506

    • Win7上也是只能烧录一次,已经找到BUG,再第二次烧录前flash没有擦除,问题已经解决 ----20190507
    • hex文件与LAB值解耦合,重新实现写入算法,解决了bug 20190511
  3. 文件16.xK 希望可以裁剪到10K左右 ----20190511

    • 已经将BOOT从16K压缩到10.7K,希望可以压缩到10K以内。----20190512

stm32-iap-msd's People

Contributors

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