CAN bootloader AN2662
38/83 Doc ID 14156 Rev 1
3 CAN bootloader
3.1 Bootloader code sequence
Figure 25. Bootloader for STM32F105xx and STM32F107xx withCAN2
Once System memory boot mode is entered and the microcontroller has been configured as
described above, the bootloader code waits for a falling edge on the CAN2_Rx pin. When a
detection occurs the CAN Bootloader firmware starts to check the external clock frequency,
Figure 26 shows the flowchart of the frequency check.
&ALLINGEDGEDETECTED
ON#!.2XPIN0"
7AITFORA
COMMAND
'%4CMD
ROUTINE
AI
#HECK(3%FREQUENCY
2$CMD
ROUTINE
OPTIONAL
2OUTINESFOR
LOADING
INTO2!-
'/CMD
ROUTINE
*0TO?!DDRESS
'/CMD
#OMMAND
RECEIVED
'%4CMD