| Documentation |
|---|
| Related products |
|---|
| USB-I2C/SPI/GPIO Adapter - U2C-12 |
| USB-IO Interface Adapter - GPIO-12 |
BOOT_READ_EEPROM command is used to read data block from microcontroller EEPROM memory.
Before you send the given command you have to fill in boot_cmd_read_eeprom structure:
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 to start read from */
unsigned char size; /* size of EEPROM data to read */
} boot_cmd_read_eeprom;
Fields assignment:
Command code; the given field must be initialized by BOOT_WRITE_ID constant value.
Package ID. Its value is selected arbitrarily before the command is sent. In the simplest case it is a counter value, increased by one while sending every new command. Bootloader does not analyze this field value. It simply copies it into response. Therefore, when response received, PC program can connect this response to previously sent command.
The address from which flash memory read starts.
Flash memory size to read.