Datasheet

10
AVR068
2591C-AVR-06/06
5.2.4 CMD_PROGRAM_FLASH_ISP
This command will program data into the FLASH memory of the target device if it
succeeds.
XML path: /AVRPART/ICE_SETTINGS/STK500_2/IspProgramFlash/
Table 5-21. Command format
Field Size Values Description
Command ID 1 byte CMD_PROGRAM_FLASH_ISP Command id
NumBytes 2 byte
Total number of bytes to
program, MSB first
mode 1 byte XML: mode Mode byte (explained below)
delay 1 byte XML: delay
Delay, used for different types
of programming termination,
according to mode byte
cmd1 1 byte
Command 1 (Load Page, Write
Program Memory)
cmd2 1 byte
Command 2 (Write Program
Memory Page)
cmd3 1 byte
Command 3 (Read Program
Memory)
poll1 1 byte XML: pollVal1 Poll Value #1
poll2 1 byte XML: pollVal2
Poll Value #2 (not used for
flash programming)
Data N bytes N data
Table 5-22. Answer format
Field Size Values Description
Answer ID 1 byte CMD_PROGRAM_FLASH_ISP Answer id
Status 1 byte
STATUS_CMD_OK,
STATUS_CMD_TOUT,
STATUS_RDY_BSY_TOUT
A status value indicating the
result of the operation