AN2662
Figure 55. Download request: Device side
No
Stall
Write Memory
routine
1. This routine can be used to reset the device to be reset or to jump to the application.
No
Stall
Leave DFU
1)
routine
wBlockNum > 1?
Yes
Unsupported
command
State = dfuERROR
Status = errSTALLEDPKT
Doc ID 14156 Rev 1
Download request
Current status is
dfuIDLE or dfuDNLOAD-IDLE
Yes
Acknowledge
the request
No
wLength > 0
Yes
Wait for data stage
Receive data
buffer
Wait for Get Status
Return Status:
dfuDNBUSY
No
wBlockNum == 0 ?
Yes
Decode the command
(First byte of the received buffer)
Erase
Read Unprotect
command
command
Erase
routine
DFU bootloader
Set Address
Pointer command
Set Address
Read Unprotect
routine
Pointer routine
73/83
Need help?
Do you have a question about the STM32F105 Series and is the answer not in the manual?
Questions and answers