pxforever / bt_iap_stm32f4 Goto Github PK
View Code? Open in Web Editor NEWusing a Qt app as a service and STM32 as a client ,update program of stm32
using a Qt app as a service and STM32 as a client ,update program of stm32
# BT_IAP_STM32F4 #Main function using a Qt app as a service and STM32 as a client ,update program of stm32 #folder introduction <./App demo> it's a application demo , this project could generate a binary file(such :app_demo.bin) ,the BT_IAP.exe could send this **.bin file to STM32F407**. <./BT_IAP> it's QT source code. <./IAP_BT-STM32F407ZG> it's STM32f407 main IAP code. #hardware introduction S|---------------------------------| |--------------------|B B| E| | | STM32F407ZG |T (Uart6) T| R| QT driver the serial port | | | (HC05) | I| | | IAP code at flash |M --------------------- M| A|through the HC05 send *.bin file | |0x8000000~ 0x8010000|O <<<<<<<<<<<<<<<<<<<< O| L| | | |D >>>>>>>>>>>>>>>>>>>> D| | | | APP code |U --------------------- U| P| | |0x8010000~0x80f0000 |L (HC05) L| O| | |--------------------|E E| R| | T|---------------------------------| #software tools 1.QTcreator 2.keil IDE #configuration For application runing at specific flash address ,we need setup the flash address In keil : project -> option for target -> Target -> read/Only memory Areas -> On chip ->IROM1: filling with :start-0x8010000 (keep Consistency whit ./IAP_BT-STM32F407ZG/IAP/iap.h line-17 :#define FLASH_APP1_ADDR 0x08010000) size -0xf0000 (STM32F407ZG flash size(1024KB) - IAP region(64K) = (APP region)960K) & For application compliting a binary file, In keil: -o project -> option for target -> USer -> After build /rebuild ,checking the first checkbox(Run #1), and filling: D:\keil\ARM\ARMCC\bin\fromelf.exe --bin -o ..\OBJ\pro.bin ..\OBJ\pro.axf -this is my path. Your keil instaalling directory path\ARM\ARMCC\bin\fromelf.exe --bin <You want create .bin at ?> <your .axf path> -this is your need set #BT_IAP_STM32F4 #主要功能 使用一个Qt编写的app来通过蓝牙与STM32通信,实现iap更新程序。 #文件夹介绍 <./App demo> 是一个模板app文件夹 <./BT_IAP> 是Qt的源代码 <./IAP_BT-STM32F407ZG> 是STM32f407的IAP程序代码 #软件工具 1.QTcreator 2.keil IDE #配置 为了让其能够在STM32制定代码区域运行,需要在代码中设置参数 project -> option for target -> Target -> read/Only memory Areas -> On chip ->IROM1: filling with :start-0x8010000 (keep Consistency whit ./IAP_BT-STM32F407ZG/IAP/iap.h line-17 :#define FLASH_APP1_ADDR 0x08010000) size -0xf0000 (STM32F407ZG flash size(1024KB) - IAP region(64K) = (APP region)960K) &为了让keil编译出.bin文档,需要在选项设置参数: project -> option for target -> USer -> After build /rebuild ,checking the first checkbox(Run #1), 填入: D:\keil\ARM\ARMCC\bin\fromelf.exe --bin -o ..\OBJ\pro.bin ..\OBJ\pro.axf -这是我的路径位置。 你的keil安装路径\ARM\ARMCC\bin\fromelf.exe --bin <你想生成在?> <你的.axf 路径> -这是你的设置的路径
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.