Chapter 5 — Firmware Download
54 ED40 Decode Board Integration Guide
WRITE_BLOCK – 0x16
Description
Writes a block of the new firmware to the imager flash memory.
Host Request
• BLOCK_SIZE – number of bytes to be written 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
Host sends
After reception of the CMD_ACK byte from the imager, the host sends the block
using the following format:
Flash Driver Response
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 0x16 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
Status Response
OK CMD_ACK (0x32)
Not OK: undefined byte (error, bad checksum or incorrect parameter)