CAN bootloader AN2662
44/83 Doc ID 14156 Rev 1
The host sends the messages as follows
Command message: Std ID = 0x00, data length code (DLC) = ‘not important’.
Figure 29. Get command via CAN: Device side
The STM32F105xx and STM32F107xx sends the messages as follows
Message 1: Std ID = 0x00, DLC = 1, data = 0x79 - ACK
Message 2: Std ID = 0x00, DLC = 1 data = N = 12 = the number of bytes to be sent -1
(1 <= N +1 <= 256)
Message 3: Std ID = 0x00, DLC = 1, data = bootloader version (0 < version <= 255)
Message 4: Std ID = 0x00, DLC = 1, data = 0x00 - Get command
Message 5: Std ID = 0x00, DLC = 1, data = 0x01 - Get Version & Read Protection
Status command
Message 6: Std ID = 0x00, DLC = 1, data = 0x02 - Get ID command
Message 7: Std ID = 0x00, DLC = 1, data = 0x03 - Speed command
Message 8: Std ID = 0x00, DLC = 1, data = 0x11 - Read memory command
Message 9: Std ID = 0x00, DLC = 1, data = 0x21 - Go command
Message 10: Std ID = 0x00, DLC = 1, data = 0x31 - Write memory command
Message 11: Std ID = 0x00, DLC = 1, data = 0x43 - Erase memory command
3ENDMESSAGE.UMBEROFBYTES
VERSIONCOMMANDS
%NDOFGETCOMMAND
.O
9E S
3TARTGETCOMMAND
AI
3ENDMESSAGE"OOTLOADERVERSION
3ENDMESSAGES3UPPORTEDCOMMANDS
2ECEIVEDMESSAGE
WITH)$X
3END!#+MESSAGE
3END!#+MESSAGE
3END.!#+MESSAGE