Reading the Flash
or EEPROM Data
The flow described below allows the user to read data in the Flash memory or in the EEPROM
data memory. A blank check command on the Flash memory is possible with this flow.
This operation is performed in 2 steps:
1. DFU_DNLOAD request with the read command (6 bytes)
2. DFU_UPLOAD request which correspond to the immediate previous command.
First Request from Host The Host sends a DFU Download request with a Display command in the data field.
SETUP
OUT
IN
DFU_DNLOAD
Display_Data (6 bytes)
ZLP
Command
Identifier
Id_display_data
03h
data[0]
00h
01h
02h
data[1] data[2]
start_address
data[3] data[4]
end_address
Description
Display FLASH Data
Blank Check in FLASH
Display EEPROM Data
Second Request from
Host
Answers from the
Device
The Host sends a DFU Upload request.
The device send to the Host the firmware from the specified start address to the end address.
SETUP
DFU_UPLOAD
IN
Firmware Packet 1
IN
Firmware Packet 2
IN
OUT
Firmware Packet n
ZLP
20 AT89C5131A USB Bootloader
4287E–USB–04/08