
CAN bootloader
AN2662
Doc ID 14156 Rev 1
Figure 33.
Get ID command: device side
1.
GID = Get ID.
2.
PID: is the product ID, which may be 0x0410, 0x0412, 0x0414 or 0x0418 according to the STM32F105xx
and STM32F107xx product. byte 1 is the MSB and byte 2 is LSB of the address.
The STM32F105xx and STM32F107xx sends the bytes as follows:
3.7 Speed
command
The speed
command allows the baud rate for CAN run-time to be changed. It can be used
only if CAN is the peripheral being used.
A system reset is generated if CAN2 receives the correct message but the operation to set
the new baudrate fails, which prevents it from entering or leaving initialization mode.
Message 1:
Std ID = 0x02, DLC = 1, data = ACK with DLC except for current message
and ACKs.
Message 2:
Std ID = 0x02, DLC = N (the number of bytes – 1. For STM32F105xx and
STM32F107xx , N = 1), data = PID with byte 0 is MSB and byte N is the LSB
of the product ID
Message 3:
Std ID = 0x02, DLC = 1, data = ACK = 0x79
3END!#+MESSAGE
3TART')$
X
3ENDMESSAGE0)$
%NDOF')$
.O
9ES
AI
3END.!#+MESSAGE
3END!#+BYTE
2ECEIVEDMESSAGE
WITHSTD)$