教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 求职职场 >

AN2606 STM32 microcontroller system memory boot mode

来源:网络收集 时间:2026-05-01
导读: AN2606 Application note STM32 microcontroller system memory boot mode Introduction The bootloader is stored in the internal boot ROM memory (system memory) of STM32 devices. It is programmed by ST during production. Its main task is to dow

AN2606

Application note

STM32 microcontroller system memory boot mode

Introduction

The bootloader is stored in the internal boot ROM memory (system memory) of STM32 devices. It is programmed by ST during production. Its main task is to download the application program to the internal Flash memory through one of the available serial peripherals (USART, CAN, USB, I2C, SPI, etc.). A communication protocol is defined for each serial interface, with a compatible command set and sequences.

This document applies to the products listed in Table 1. They are referred as STM32 throughout the document.

Table 1. Applicable products

Type

Part number or product series

STM32L0 series: STM32L051xx, STM32L052xx, STM32L053xx, STM32L062xx,

STM32L063xx

STM32L1 series.

STM32L4 series: STM32L476xx, STM32L486xx

STM32F0 series: STM32F03xxx, STM32F04xxx, STM32F05xxx, STM32F07xxxSTM32F1 series.

MicrocontrollersSTM32F2 series.

STM32F3 series: STM32F301xx, STM32F302xx, STM32F303xx, STM32F318xx,

STM32F328xx, STM32F334xx, STM32F358xx, STM32F373xx, STM32F378xx

STM32F4 series: STM32F401xx, STM32F405xx, STM32F407xx, STM32F411xx,

STM32F415xx, STM32F417xx, STM32F427xx, STM32F429xx, STM32F437xx, STM32F439xx, STM32F446xx

The main features of the bootloader are the following:

It uses an embedded serial interface to download the code with a predefined communication protocol

It transfers and updates the Flash memory code, the data, and the vector table sections

This application note presents the general concept of the bootloader. It describes the supported peripherals and hardware requirements to be considered when using the

bootloader of STM32 devices. However the specifications of the low-level communication protocol for each supported serial peripheral are documented in separate documents. For specifications of the USART protocol used in the bootloader, refer to AN3155. For the specification of the CAN protocol used in the bootloader, refer to AN3154. For the

specification of the DFU (USB device) protocol used in the bootloader, refer to AN3156. For the specification of the I2C protocol used in the bootloader, refer to AN4221. For the specification of the SPI protocol used in the bootloader, refer to AN4286.

March 2015DocID13801 Rev 21

1/155

ContentsAN2606

Contents

123

Related documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11General bootloader description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

3.13.23.33.4

Bootloader activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Bootloader identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Hardware connection requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Bootloader Memory Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

4STM32F10xxx devices bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

4.14.24.3

Bootloader configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Bootloader selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Bootloader version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

5STM32F105xx/107xx devices bootloader . . . . . . . . . . . . . . . . . . . . . . . 25

5.15.25.3

Bootloader configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Bootloader selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Bootloader version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

5.3.15.3.25.3.35.3.4

How to identify STM32F105xx/107xx bootloader versions . . . . . . . . . . 28Bootloader unavailability on STM32F105xx/STM32F107xx devices

with a date code below 937 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29USART bootloader Get-Version command returns 0x20

instead of 0x22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30PA9 excessive power consumption when USB cable is plugged

in bootloader V2.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

6STM32F10xxx XL-density devices bootloader . . . . . . . . . . . . . . . . . . . 31

6.16.26.3

Bootloader configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31Bootloader selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32Bootloader version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

7STM32L1xxx6(8/B) devices bootloader . . . . . . . . . . . . . . . . . . . . . . . . . 33

7.1

Bootloader configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

2/155DocID13801 Rev 21

AN2606Contents

7.27.3

Bootloader selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34Bootloader version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

8STM32L1xxxC devices bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

8.18.28.3

Bootloader configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Bootloader selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37Bootloader version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . …… 此处隐藏:5986字,全部文档内容请下载后查看。喜欢就下载吧 ……

AN2606 STM32 microcontroller system memory boot mode.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/119915.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)