Chapter 5 — Firmware Download
ED40 Decode Board Integration Guide 55
WRITE_SAME_BYTE – 0x17
Description
Writes the same byte in a block of the flash memory in the imager.
This command optimizes the transmission time when you want to fill a block of
memory with the same character.
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
• BYTE – to be written in block of flash memory
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 0x17 BLOCK_SIZE ADDRESS BYTE 0x00 calculated
MSB LSB MSB byte 2 byte 3 LSB
Status Response
OK CMD_ACK (0x32) followed by CMD_DONE (0x31)
Not OK: undefined byte (error, bad checksum or incorrect parameter)