Completed a simple IAP upgradeProgramOnly simple programs can be erased.
When the program starts, check the command. If it times out, run the main program. Otherwise
Upgrade mode: splits the binfile and sends program data to the corresponding format.
Board, while the Board directly implements program erasure, only one verification and feedback,
There is no effective verification mechanism. Because only Bin decomposition can be implemented manually
Write a small program to test it. It can still run. If you are depressed, you still have to click the upper level.
Machine programming, otherwise many tests will not be implemented.
However, further thinking shows that I cannot upgrade this program again as long as the upgrade fails.
(The main program has been erased), so there will certainly be a lot of problems, it seems that the main
The program is separated, so that after the program fails, the command can be used again to enter the upgrade,
But now the program structure is found to be a little bad, sad, really don't change, write
It's really a pain to add features.