Coder Social home page Coder Social logo

longgang / stm32_iap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lycraft/stm32_iap

0.0 0.0 0.0 9.63 MB

尝试一下IAP固件升级。两个工程(bootloader;app)。芯片使用的stm32l071rbt6,有128k的片上flash,分为3个区域:12k的bootloader,58k的app,58k的app升级区域。

C 99.78% Assembly 0.21% Batchfile 0.01%

stm32_iap's Introduction

STM32_IAP

学习一下IAP固件升级。芯片用的是STM32L071RBT6。所以片上资源带有128K的FLASH,还有6K的EEPROM,20K的SRAM。

flash

用stm32cubemx创建了两个工程:Bootloader和app。

Start Address End Address
Bootloader 0x0800 0000 0x0800 2FFF
APP 0x0800 3000 0x0800 FFFF
APP_OTA 0x0801 0000 0x0801 FFFF

按照以上的地址分配ROM空间。这样的话,Bootloader程序不能超过12K,APP程序不超过52K,APP_OTA不超过64K。

上图可以看到EEPROM的地址范围是:0x0808 0000 ~~0x0808 17FF

所以EEPROM一共是6K。现在的想法是,把升级的标志位放在EEPROM里边,boot程序读到升级的标志位,就把APP_OTA的内容写进APP的地址范围里。

stm32_iap's People

Contributors

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