AN3154
Bootloader code sequence
Doc ID 17063 Rev 1
5/34
1
Bootloader code sequence
Figure 1.
Bootloader for STM32 with CAN
Once the system memory boot mode is entered and the STM32 device has been configured
(for more details refer to application note AN2606 “STM32 system memory boot mode”), the
bootloader code waits for a frame on the CANx_Rx pin. When a detection occurs the CAN
bootloader firmware starts to check the external clock frequency,
shows the
flowchart of the frequency check.
&RAMEDETECTED
ON#!.X?2XPIN
7AITFORA
COMMAND
'%4CMD
ROUTINE
AI
#HECK(3%FREQUENCY
2$CMD
ROUTINE
OPTIONAL
2OUTINESFOR
LOADING
INTO2!-
'/CMD
ROUTINE
*0TO?!DDRESS
'/CMD
#OMMAND
RECEIVED
'%4CMD