OpenBSL  v.0.1.0
OPEN_BSL_CMD_DOWNLOAD_IMAGE command

Description

The OPEN_BSL_CMD_DOWNLOAD_IMAGE is used to download byte streams to a specific memory section.

This command can be enabled by using the OPEN_BSL_CONFIG_SUPPORT_CMD_DOWNLOAD_IMAGE compile options in OpenBSL_Config.h

The host shall implement small delay (device specific) between sending the bytes of the byte streams since the target device might need additional to write every incoming byte into the memory

Packet Format

REQUEST packet format

| CMD | IDX | BYTE_0 | ....... | BYTE_N-1 | CHKSUM |

Field Name Length Description
CMD 1 byte OPEN_BSL_CMD_DOWNLOAD_IMAGE (0x02)
IDX 1 byte memory section index (0 - OPEN_BSL_NUM_OF_MEM_SECTIONS-1)
BYTE_0 1 byte byte stream index 0
BYTE_N-1 1 byte byte stream index N-1, where N is the length of memory section (can be retrieved from OPEN_BSL_CMD_GET_MEM_INFO command)
CHKSUM 2 bytes 16 bit packet checksum (LSB first), calculated starting from BYTE_0 to BYTE_N-1

Positive RESPONSE packet format:

| RESP |

Field Name Length Description
RESP 1 byte (OPEN_BSL_CMD_DOWNLOAD_IMAGE|OPEN_BSL_RESP_BIT_MASK) (0x82)