DFU bootloader AN2662
72/83 Doc ID 14156 Rev 1
Note: Before issuing an Upload request, the host has to check that the device is in a correct state
(dfuIDLE or dfuUPLOAD-IDLE state) and that there is no error reported in the status. If the
Device is not in the required state/status, the Host has to clear any error (DFU_CLRSTATUS
request) and get the new status till the Device returns to dfuIDLE state.
4.5 DFU_DNLOAD request commands
The download request allows to perform different commands. The command selection is
done through the value of
parameter wValue in the USB request structure. The following operations
are supported:
● Write Memory (wValue > 1)
● Set Address Pointer (wValue = 0 and First Byte = 0x21)
● Erase (wValue = 0 and First Byte = 0x41)
● Read Unprotect (wValue = 0 and First Byte = 0x92)
● Leave DFU (leave DFU mode and Jump to application)