文件名称:stm32-iap-small-data
介绍说明--下载内容来自于网络,使用问题请自行百度
1.此代码基于红牛开发板,请根据自己的板子进行修改。
2.通过修改网上的代码实现,修改前的功能开了一个很大的缓存接收app数据,然后一次性全部数据写入,
但是这个在实际应用中没多大用,所以修改为一次写入128个字节。
3.程序flash的偏移地址为0x8010000,所以app编译前应该在mdk中设置
Option窗口->Target页->IROM1,start 改为 0x8010000
4.设置中断向量重映射,我用的方法是在app端的main函数起始位置添加语句
SCB->VTOR = FLASH_BASE | 0x10000
5.启动时如果发现没有app,会进入bootloader模式(灯全亮),如果发现有程序就要看程序的功能了。
如果有app,但是又想重新升级的话就按住某个键(我这里是Tamper),然后按复位,松开复位之前不要松开
按键,这样就会进入bootloader模式。
6.进入bootloader后通过串口1接收升级app数据,bin文件数据,接收完成后按User1键进行升级操作,完成后
复位或者按User2键可以运行刚写入的app。-1. This code is based on the Red Bull development board, please modify it according to their own board.
2. Modify the online code, the function before the amendment opened a big reception app cache data, and then all at once data is written,
But this is not much use in practical applications, it is changed to a write 128 bytes.
3. The program flash offset address 0x8010000, so should be set before the app compiled in mdk
Option Window-> Target Page-> IROM1, start instead 0x8010000
4. Set the interrupt vector remapping, I use is to add statements in the main function of the starting end position app
SCB-> VTOR = FLASH_BASE | 0x10000
If no app, will enter bootloader mode 5. Start (lights lit), if found to have the program depends on the functions of the program.
If you have app, but want to re-upgrade, then press and hold a key (I have here is Tamper), then press the reset, do not let go until reset release
Button, which will enter bootloader mode.
App upgra
2.通过修改网上的代码实现,修改前的功能开了一个很大的缓存接收app数据,然后一次性全部数据写入,
但是这个在实际应用中没多大用,所以修改为一次写入128个字节。
3.程序flash的偏移地址为0x8010000,所以app编译前应该在mdk中设置
Option窗口->Target页->IROM1,start 改为 0x8010000
4.设置中断向量重映射,我用的方法是在app端的main函数起始位置添加语句
SCB->VTOR = FLASH_BASE | 0x10000
5.启动时如果发现没有app,会进入bootloader模式(灯全亮),如果发现有程序就要看程序的功能了。
如果有app,但是又想重新升级的话就按住某个键(我这里是Tamper),然后按复位,松开复位之前不要松开
按键,这样就会进入bootloader模式。
6.进入bootloader后通过串口1接收升级app数据,bin文件数据,接收完成后按User1键进行升级操作,完成后
复位或者按User2键可以运行刚写入的app。-1. This code is based on the Red Bull development board, please modify it according to their own board.
2. Modify the online code, the function before the amendment opened a big reception app cache data, and then all at once data is written,
But this is not much use in practical applications, it is changed to a write 128 bytes.
3. The program flash offset address 0x8010000, so should be set before the app compiled in mdk
Option Window-> Target Page-> IROM1, start instead 0x8010000
4. Set the interrupt vector remapping, I use is to add statements in the main function of the starting end position app
SCB-> VTOR = FLASH_BASE | 0x10000
If no app, will enter bootloader mode 5. Start (lights lit), if found to have the program depends on the functions of the program.
If you have app, but want to re-upgrade, then press and hold a key (I have here is Tamper), then press the reset, do not let go until reset release
Button, which will enter bootloader mode.
App upgra
(系统自动生成,下载前可以参看下载内容)
下载文件列表
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.