English
Language : 

AN3155 Datasheet, PDF (11/37 Pages) STMicroelectronics – USART protocol used in the STM32 bootloader
AN3155
Bootloader command set
Figure 5. Get Version & Read Protection Status command: device side
6WDUW*9 
5HFHLYHG
E\WH [[)("
1R
6HQG1$&.E\WH
<HV
6HQG$&.E\WH
6HQGWKHERRWORDGHUYHUVLRQ
3.3
2SWLRQE\WH
2SWLRQE\WH
6HQG$&.E\WH
(QGRI*9 
1. GV = Get Version & Read Protection Status.
The STM32 sends the bytes as follows:
069
Byte 1:
Byte 2:
Byte 3:
Byte 4:
Byte 5:
ACK
Bootloader version (0 < Version ≤ 255), example: 0x10 = Version 1.0
Option byte 1: 0x00 to keep the compatibility with generic bootloader protocol
Option byte 2: 0x00 to keep the compatibility with generic bootloader protocol
ACK
Get ID command
The Get ID command is used to get the version of the chip ID (identification). When the
bootloader receives the command, it transmits the product ID to the host.
The STM32 device sends the bytes as follows:
Byte 1: ACK
DocID17066 Rev 6
11/37