我们需要 在线升级功能类式于bootloader功能, 但我们要自己实现, 现在有两个问题,
1, 在线升级需要两个固件,一个是正常运行程序 ,一个是升级程序,这两个之间 跳转是用什么方式 ,有没有类式的代码,
2, flash的擦除功能,在升级的时候需要把主程序的固件全擦除,写入新固件,
固件的导入方式 已经实现了,但没有找到擦除flash 源码,还两个固件之间的跳转方法源码
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我们需要 在线升级功能类式于bootloader功能, 但我们要自己实现, 现在有两个问题,
1, 在线升级需要两个固件,一个是正常运行程序 ,一个是升级程序,这两个之间 跳转是用什么方式 ,有没有类式的代码,
2, flash的擦除功能,在升级的时候需要把主程序的固件全擦除,写入新固件,
固件的导入方式 已经实现了,但没有找到擦除flash 源码,还两个固件之间的跳转方法源码
BootLoader升级原理及方法请参考下面文档:
方法我看了,那个串口实现肯定可以的,但从里面找到的代码是C++的还是独立的几个文件放在一起,我对C++不熟,也没有找到 我想要的几个实现方法,
我就是想知道 两个固件之间的来回跳转指令,应该是控制哪个寄存器实现 的,还有 擦除闪存的指令,及解锁指令,你们没有这个简单的源码提供或说明吗,