OpenBSL  v.0.1.0
OPEN_BSL_CMD_GET_MEM_INFO command

Description

The OPEN_BSL_CMD_GET_MEM_INFO is used to retrieve the memory layout information from the target device which consists of the following information:

The information is basically derived from the const OpenBSL_MemSect_t MemInfo[OPEN_BSL_NUM_OF_MEM_SECTIONS] variable defined in OpenBSL_Mem.c

Packet Format

REQUEST packet format

| CMD |

Field Name Length Description
CMD 1 byte OPEN_BSL_CMD_GET_MEM_INFO (0x00)

Positive RESPONSE packet format:

| RESP | NUM | START_0 | END_0 | ....... | START_N-1 | END_N-1 | CHKSUM |

Field Name Length Description
RESP 1 byte (OPEN_BSL_CMD_GET_MEM_INFO|OPEN_BSL_RESP_BIT_MASK) (0x80)
NUM 1 byte number of memory sections (N sections)
START_0 4 bytes start address of memory section index 0 (LSB first)
END_0 4 bytes end address of memory section index 0 (LSB first)
START_N-1 4 bytes start address of memory section N-1 (LSB first)
END_N-1 4 bytes end address of memory section N-1 (LSB first)
CHKSUM 2 bytes 16 bit packet checksum (LSB first), calculated starting from NUM to END_N-1 (LSB first)