USB PIC Bootloader. User Manual


7.4.9. BOOT_WRITE_EEPROM response

Bootloader sends this response after BOOT_WRITE_EEPROM command processing. Bootloader does not verify the written data while processing BOOT_WRITE_EEPROM command. You can use BOOT_READ_EEPROM command for reading and further verification of the written data.

To ease data processing boot_rsp_write_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 */
} boot_rsp_write_eeprom;

Fields assignment:

cmd

Command code. Cmd field contains BOOT_WRITE_EEPROM constant value for the given response.

echo

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.