Chapter 5 — Firmware Download
ED40 Decode Board Integration Guide 53
READ_BLOCK – 0x15
Description
Reads a block of the current firmware in the flash memory of the imager. This
command is used to save a copy of the current firmware before sending the erase
command and then downloading the new firmware in the imager.
Host Request
• BLOCK_SIZE – number of bytes to be read to the flash memory (maximum
256)
• MSB – most significant byte
• LSB – least significant byte
• ADDRESS – points to bytes and must be compatible with flash memory size
Flash Driver Response
Flash Driver sends
After sending the ACK response, the flash driver sends the requested block in the
following format:
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 0x15 BLOCK_SIZE ADDRESS 0x00 0x00 calculated
MSB LSB MSB byte 2 byte 3 LSB
Status Response
OK CMD_ACK (0x32)
Not OK: undefined byte (error, bad checksum or incorrect parameter)
8 bits 8 bits 8 bits 32 bits
BYTE_1 BYTE_2 … BYTE_N checksum
first byte of
block
second byte of
block
… last byte of block