OpenBSL  v.0.1.0
OPEN_BSL_CMD_CALCULATE_CHECKSUM command

Description

The OPEN_BSL_CMD_CALCULATE_CHECKSUM is used to calculate the checksum value of given memory area

This command can be enabled by using the OPEN_BSL_CONFIG_SUPPORT_CMD_CALCULATE_CHECKSUM 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_CALCULATE_CHECKSUM (0x05)
START_ADDR 4 bytes start address (LSB first) of the memory area whose content checksum to be calculated
END_ADDR 4 bytes end address (LSB first) of the memory area whose content checksum to be calculated
CHKSUM 2 bytes 16 bit packet checksum (LSB first), calculated starting from START_ADDR to END_ADDR

Positive RESPONSE packet format:

| RESP | CHKSUM |

Field Name Length Description
RESP 1 byte (OPEN_BSL_CMD_CALCULATE_CHECKSUM|OPEN_BSL_RESP_BIT_MASK) (0x85)
CHKSUM 2 bytes 16 bit of calculated checksum (LSB first), calculated from the memory content starting from START_ADDR to END_ADDR