Datasheet
AVR068
17
2591C-AVR-06/06
Table 5-39. Answer format (same for all results)
Field Size Values Description
Answer ID 1 byte
CMD_CHIP_
ERASE_PP
Answer id
Status 1 byte See table below
A Result Value indicating the result of
the operation
Table 5-40. Valid Result Values for the answer to this command
Values Description
STATUS_CMD_OK Operation succeeded
STATUS_RDY_BSY_
TOUT
No response from target device within specified timeframe
5.3.4 CMD_PROGRAM_FLASH_PP
This command will program data into the FLASH memory of the target device if it
succeeds. For devices with the FLASH organized in pages, the data address and size
used with this command must confirm to that of the device. I.e. one ProgramFlash
command is used to program one page in the target device.
XML PATH: /AVRPART/ICE_SETTINGS/STK500_2/PpProgramFlash/
Table 5-41. Command format
Field Size Values Description
Command ID 1 byte
CMD_PROGRAM_
FLASH_PP
Command id
Nmb bytes
(MSB)
1 byte
Total number of bytes to program
(MSB)
Nmb bytes
(LSB)
1 byte
Total number of bytes to program
(LSB)
mode 1 byte XML: mode Mode byte (explained below)
pollTimeout 1 byte XML: pollTimeout pollTimeout (in ms)
Data 1 byte Data 1
Data 1 byte ...
Data 1 byte Data N
Table 5-42. Answer format (same for all results)
Field Size Values Description
Answer ID 1 byte
CMD_PROGRAM_
FLASH_PP
Answer id
Status 1 byte See table below
A Result Value indicating the result of
the operation