
AN2662
USART bootloader
Doc ID 14156 Rev 1
The STM32F105xx and STM32F107xx sends the bytes as follows:
2.7
Get Version & Read Protection Status command
The Get Version & Read Protection Status command is used to get the bootloader version
and the read protection status. When the bootloader receives the command, it transmits the
information described below (version, read protection: number of times it was enabled and
disabled) to the host.
Byte 1:
ACK
Byte 2:
N = 11 = the number of bytes to follow – 1 except current and ACKs.
Byte 3:
Bootloader version (0 < Version < 255): 0x10 = Version 1.0
Byte 4:
0x00
– Get command
Byte 5:
0x01
– Get Version and Read Protection Status
Byte 6:
0x02
– Get ID
Byte 7:
0x11
– Read Memory command
Byte 8:
0x21
– Go command
Byte 9:
0x31
– Write Memory command
Byte 10:
0x43
– Erase command
Byte 11:
0x63
– Write Protect command
Byte 12:
0x73
– Write Unprotect command
Byte 13:
0x82
– Readout Protect command
Byte 14:
0x92
– Readout Unprotect command
Last byte (15): ACK