IAR开发STM32 BOOT + APP 的便捷方式

本文介绍了如何使用IAR Embedded Workbench为STM32创建BOOT+APP的固件升级方案。关键点包括:1. 分别为Bootloader和Application创建独立项目;2. 注意Flash内存边界,确保更新时不误删;3. 调试时,通过Project > Options > Debugger > Images设置调试信息,并禁用'Run to main'。此外,修改.icf文件配置链接器输入,调试时指定.out文件和Image偏移地址,避免现场升级问题。
摘要由CSDN通过智能技术生成

最近要开发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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值