Chapter 5 — Firmware Download
ED40 Decode Board Integration Guide 49
DOWNLOAD_INIT – 0x11
Description
Checks that the flash driver is able to read, erase and write in the flash memory
installed in the imager.
DOWNLOAD_INIT must be sent before the following commands (mandatory):
• ERASE_ALL
• READ_BLOCK
• WRITE_BLOCK
• WRITE_SAME_BYTE
Host Request
Flash Driver Response
Flash Driver sends
When the command has been successfully executed, the flash driver sends:
• FLASH_SIZE – four bytes, most significant byte (MSB) sent first then least
significant byte (LSB)
• DRIVER_VERSION – ASCII string terminated by "\0" (maximum 50
characters)
8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 32 bits
– cmd param 1 param 2 param 3 param 4 param 5 param 6 param 7 param 8 checksum
0x00 0x11 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 calculated
Status Response
OK CMD_ACK (0x32)
Not OK: undefined byte (error, bad checksum or incorrect parameter)
Example
8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits 8 bits
byte 1 byte 2 byte 3 byte 4 S_4 S_5 S_6 S_7 S_7 S_7 S_8 ... S_N
FLASH_SIZE "V" "E" "R" "S" "I" "O" "N" ... "\0"
Note: If FLASH_SIZE = 0x00000000 then the flash memory is not recognized by
the flash driver and a new flash driver must be downloaded to the imager. See the
following REMOVE_DRIVER command for more information.