Datasheet
AVR079
17
8133A-AVR-04/08
Table 5-10. Mode byte description.
Pagesize \ bit 3 2 1
256 0 0 0
2 0 0 1
4 0 1 0
8 0 1 1
16 1 0 0
32 1 0 1
64 1 1 0
128 1 1 1
NOTE: that only Bit 0-3 are set in the XML file, cause Bit 6-7 are not static and must
be controlled by the PC Frontend.
Table 5-11. 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
Table 5-12. Valid Result Values for the answer to this command.
Value Description
STATUS_CMD_OK Operation succeeded
STATUS_RDY_BSY_TOUT
No response from target device within specified
timeframe
5.5 CMD_READ_FLASH_PP
This command will read data from 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 ReadFlash
command is used to read one page in the target device.
XML PATH: /AVRPART/ICE_SETTINGS/STK600/PpReadFlash/
Table 5-13. Command format.
Field Size Values Description
Command ID 1 byte CMD_READ_FLASH_PP Command id
Nmb bytes (MSB) 1 byte Total number of bytes to read (MSB)
Nmb bytes (LSB) 1 byte Total number of bytes to read (LSB)
Table 5-14. Answer format if the command is executed.
Field Size Values Description
Answer ID 1 byte CMD_READ_FLASH_PP Answer id