AN2662
Note:
The CAN Bootloader firmware supports only one node at the same time. This means that
CAN Network Management is not supported by the firmware.
3.3
Bootloader command set
The supported commands are listed in
this section.
Table 4.
(1)
Get
Get Version & Read Protection
(2)
Status
(2)
Get ID
Speed
Read Memory
Go
Write Memory
(3)
Erase
Write Protect
Write Unprotect
Readout Protect
Readout Unprotect
1. Read protection – When the RDP (read protection) option is active, only this limited subset of commands is
available. All other commands are NACKed and have no effect on the device. Once the RDP has been
removed, the other commands become active.
2. On the STM32F105xx and STM32F107xx , the sector size is 4 Kbytes (2 pages) for the Write Protect,
Write Unprotect and Erase commands.
Communication safety
Each packet is either accepted (ACK answer) or discarded (NACK answer):
●
ACK message = 0x79
●
NACK message = 0x1F
Bootloader commands
Command
0x00
0x01
0x02
0x03
0x11
0x21
0x31
0x43
(2)
0x63
(3)
0x73
(2)
0x82
(2)
0x92
Doc ID 14156 Rev 1
Table 3
below. Each command is further described in
Command
code
Gets the version and the allowed commands
supported by the current version of the bootloader
Gets the bootloader version and the Read
Protection status of the Flash memory
Gets the chip ID
The speed command allows the baud rate for CAN
run-time to be changed.
Reads up to 256 bytes of memory starting from an
address specified by the user
Jumps to an address specified by the user to
execute (a loaded) code
Writes up to 256 bytes to the RAM or Flash memory
starting from an address specified by the user
Erases from one to all the Flash memory sectors
Enables the write protection for some sectors
Disables the write protection for all Flash memory
sectors
Enables the read protection
Disables the read protection
CAN bootloader
Command description
41/83
Need help?
Do you have a question about the STM32F105 Series and is the answer not in the manual?
Questions and answers