Stm32 IAP + App implementation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.