OpenBSL  v.0.1.0
OPEN_BSL_CMD_ERASE_IMAGE command

Description

The OPEN_BSL_CMD_ERASE_IMAGE is used to erase all/a specific memory section. This command can be enabled by using the OPEN_BSL_CONFIG_SUPPORT_CMD_ERASE_IMAGE compile options in OpenBSL_Config.h

Packet Format

REQUEST packet format

| CMD | IDX |

Field Name Length Description
CMD 1 byte OPEN_BSL_CMD_ERASE_IMAGE (0x01)
IDX 1 byte memory section index (0 - OPEN_BSL_NUM_OF_MEM_SECTIONS-1), 0xFF for all memory section

Positive RESPONSE packet format:

| RESP |

Field Name Length Description
RESP 1 byte (OPEN_BSL_CMD_ERASE_IMAGE|OPEN_BSL_RESP_BIT_MASK) (0x81)