| Documentation |
|---|
| Related products |
|---|
| USB-I2C/SPI/GPIO Adapter - U2C-12 |
| USB-IO Interface Adapter - GPIO-12 |
Bootloader sends this response after BOOT_ERASE_FLASH command processing.
To ease data processing boot_rsp_erase_flash 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 */
} boot_rsp_erase_flash;
Fields assignment:
Command code. cmd field contains
BOOT_ERASE_FLASH 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.