This document describes the CAN protocol used in the STM32 microcontroller bootloader and details each supported command.
This document details the CAN protocol implementation within the STM32 microcontroller bootloader. It outlines the sequence of operations the bootloader follows upon detecting a CAN frame, including checks for the external clock frequency (HSE) before accepting commands.
The note provides a comprehensive list of supported bootloader commands, such as Get Version, Read Memory, Write Memory, and Erase Memory. It also specifies the CAN settings, including support for standard and extended frames, baud rate configuration up to 1 Mbps, and specific identifier and data field requirements for communication between the host and the device.
| CAN specifications compliance | 2.0A and B (active) |
|---|---|
| Maximum bitrate | 1 Mbit/s |
| Frame types | Standard and Extended |
| Initial baud rate | 125 kbps |
| Maximum data bytes per message | 8 |
| Read protection limitation | Limited subset of commands |
The initial baud rate is 125 kbps, which can be changed via the speed command.
The maximum bitrate supported is 1 Mbit/s.
Only a limited subset of commands is available; all other commands are NACKed and have no effect.
Incoming messages can contain from 1 to 8 data bytes.