OpenBSL  v.0.1.0
OPEN_BSL_CMD_UPLOAD_SEGMENT command

Description

The OPEN_BSL_CMD_UPLOAD_SEGMENT is used to upload/read the given memory segment.

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

Packet Format

REQUEST packet format

| CMD | START_ADDR | END_ADDR | CHKSUM |

Field Name Length Description
CMD 1 byte OPEN_BSL_CMD_UPLOAD_SEGMENT (0x08)
START_ADDR 4 bytes start address (LSB first) of the memory area to be uploaded
START_ADDR 4 bytes start address (LSB first) of the memory area to be uploaded
CHKSUM 2 bytes 16 bit packet checksum (LSB first), calculated starting from START_ADDR to END_ADDR

Positive RESPONSE packet format:

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

Field Name Length Description
RESP 1 byte (OPEN_BSL_CMD_UPLOAD_SEGMENT|OPEN_BSL_RESP_BIT_MASK) (0x88)
LEN 1 byte packet length (calculated from BYTE_0 to BYTE_N-1)
BYTE_0 1 byte data byte index 0
BYTE_N-1 1 byte data byte index N-1, where N is the total number of data byte to be uploaded
CHKSUM 2 bytes 16 bit packet checksum (LSB first), calculated starting from BYTE_0 to BYTE_N-1