Figure 6. Example of Firmware Download Zero Length DFU_DNLOAD Request
SETUP
DFU_DNLOAD
OUT
Prog_Start + (EP0 fifo length - 6) x 00h
OUT
X offset bytes + Firmware Packet 1
OUT
Firmware Packet 2
OUT
IN
Answers from Bootloader
Firmware Packet n + DFU suffix
ZLP
The Host sends a DFU_DNLOAD request with the wLength field cleared to 0 to the
device to indicate that it has completed transferring the firmware image file. This is the
final payload packet of a download operation.
This operation should be preceded by a Long Jump address specification using the cor-
responding Flash command.
After each program request, the Host can request the device state and status by send-
ing a DFU_GETSTATUS message.
If the device status indicates an error, the host can send a DFU_CLRSTATUS request
to the device.
18 AT89C5131A USB Bootloader
4287C–USB–11/04