最近要开发BOOT+APP的方式,进行固件升级。
使用IAR,基于STM32F072.
之前调试烧写都是分开来,最后合并一个文件烧写。
最近发现IAR可以在调试的时候,直接调试BOOT或者APP,很是便捷。
具体请参考IAR官方NOTE:https://www.iar.com/support/tech-notes/general/creating-a-bootloader-for-cortex-m/
复制如下:
Technical Note 160822
Targets:
ARM
Component:
General
Updated:
2016/9/19 14:02
Introduction
This Technical Note provides guidelines on how to create a bootloader using IAR Embedded Workbench for ARM. Most of the recommendations in the Technical Note are general, although the example project is for a Cortex-M microprocessor (specifically STMicroelectronics STM32L152VB).
Discussion
When creating a bootloader, there are some things to consider regarding project setup, and the execution handover from the bootloader to the application. See the example project for STM32L152VBand follow the considerations below. Note that for clarity, this Technical Note does NOT describe how to perform a “live update” (IAP – in application programmi