Product Comparison: USB I2C | USB SPI | USB GPIO

USB PIC Bootloader. User Manual


7.3.8. BOOT_WRITE_ID command

BOOT_WRITE_ID command is used to write data into ID Locations of PIC microcontroller.

Eight memory locations (200000h-200007h) are designated as ID locations, where the you can store checksum or other code identification numbers.

Before sending the given command you have to fill in boot_cmd_write_id structure:

Fields assignment:

cmd

Command code; the given field must be initialized by BOOT_WRITE_ID constant value.

echo

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.

reserved

Not used

data

Data to be written into the PIC microcontroller ID locations.

After this command is processed, Bootloader sends response with code BOOT_WRITE_ID.