For a few days, I used QT to write a serial IAP tool.
Before use, you need to convert axf to a binfile. You can use the fromelf of Keil to produce binfiles. Load the file, open the serial port, and click Download.
Tool features: 1 K is used to send files. Less than 1 K, complete 0xff to 1 K at the end
Transfer in the following format
Data_len_l data_len_h data (no more than 1 k) index_l index_h CRC
2b Data Length
Valid data up to 1 kb (real burned data)
2b Data Index (indicating the number of 1 kb for receiving/sending data)
4B CRC (Reserved)
This tool has not been used to write programs using QT for some time. The code is messy. However, the object-oriented thinking is not deep enough. It is basically written as C. First, the previous graph.
Put the code on my GitHub.
IAP on stm32 can see this blog http://www.cnblogs.com/xiemm/p/3945668.html
Stm32 IAP Tool