ADuCM320 Hardware Reference Manual
UG-498
Rev. C | Page 189 of 196
N
Y
N
N
RESET
SWITCH TO FLASH 1
P2.3 = HIGH
K2B0 = 0
Y
Y
N
K2B1 = 0
Y
CHANGE TO USER CODE
SWITCH TO FLASH 1
KEY1’ > KEY1
KEY2 = 0
TRIAL RUN
TRIAL OK
N
Y
Y
N
WRITE
KEY2’ = 0
FLASH OTHER BLOCK (KEY2’ = 0xFFs, K1’ = K1+1)
ERROR
NORMAL RUN
KERNEL CODE
HARDWARE
USER CODE
K2B0 = 0
Y
K1B0 < K1B1
Y
N
K2B1 = 0
Y
RUN
DOWNLOADER
N
N
1
1176
-137
Figure 38. Flowchart for MDIO Memory Block Switching