OpenBSL  v.0.1.0
OPEN_BSL_CMD_UPLOAD_IMAGE command

Description

The OPEN_BSL_CMD_UPLOAD_IMAGE is used to upload byte streams from a specific memory section.

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

Packet Format

REQUEST packet format

| CMD | IDX |

Field Name Length Description
CMD 1 byte OPEN_BSL_CMD_UPLOAD_IMAGE (0x03)
IDX 1 byte memory section index (0 - OPEN_BSL_NUM_OF_MEM_SECTIONS-1)

Positive RESPONSE packet format:

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

Field Name Length Description
RESP 1 byte (OPEN_BSL_CMD_UPLOAD_IMAGE|OPEN_BSL_RESP_BIT_MASK) (0x83)
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