Iap+app, based on stm32f407, has been fully realized and made a note.
1. Prepare the boot to determine if there is an APP, does not exist to enter the IAP mode to wait for the data to burn write.
2.boot If you are receiving bin file data, you can read the bin directly to Flash. The hex file needs to be parsed. The bin file and the hex file data format are different.
3. If boot is ready, prepare a host computer software, read the bin file and send it to boot in package format (I only get through the UART port for now.) You can try USB later).
4.APP need to modify a few places, the first is the link file. To leave the boot file in flash storage space, the space to store configuration information is also left out.
Second, the forced modification of the interrupt vector table, generally in the Cmsis file.
Third, if the use of RTOs in the app will appear unable to enter the RTOs, here need to modify Systeminit () This file, vect_tab_offset the new vector table address offset assignment
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Stm32 IAP + App implementation