| Documentation |
|---|
| Related products |
|---|
| USB-I2C/SPI/GPIO Adapter - U2C-12 |
| USB-IO Interface Adapter - GPIO-12 |
Bootloader sends this response after BOOT_READ_EEPROM command processing. The response contains data read from EEPROM memory.
If XTEA encryption algorithm is used (see "the section called “XTEA - The encryption key”"), the response contains the encrypted data. It can be decrypted with encoder program, which comes with Bootloader installation. During decryption you have to use the password, identical to the password in Bootloader.
To ease data processing boot_rsp_read_eeprom structure can be used:
typedef struct
{
unsigned char cmd; /* command code, see BOOT_xxx constants */
unsigned char echo; /* echo is used to link between command and response */
unsigned char addr; /* EEPROM address the data was read from*/
unsigned char size; /* size of EEPROM data */
unsigned char data[BOOT_RSP_SIZE - 6];
} boot_rsp_read_eeprom;
Fields assignment:
Command code. cmd field contains BOOT_READ_EEPROM constant value for the given response.
Package ID. Bootloader copies it from the corresponding command before the response is sent. Therefore, when response is received, PC program can associate this response with previously sent command.
The address, EEPROM memory reading starts from.
The size of the read data in bytes.
Data read from EEPROM memory.