USB PIC Bootloader. User Manual


7.4.3. BOOT_WRITE_FLASH response

Bootloader sends this response after BOOT_WRITE_FLASH command processing.

Bootloader does not verify the written data during processing BOOT_WRITE_FLASH command. You can use BOOT_READ_FLASH command for reading and further verification of the written data.

To ease data processing boot_rsp_write_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_write_flash;

Fields assignment:

cmd

Command code. cmd field contains BOOT_WRITE_FLASH constant value.

echo

Header field is used to access common for all packages parameters - cmd and echo. These parameters are also available from the structures that define specific responses.