Datasheet
38
AVR079
8133A-AVR-04/08
Table 9-15. Command format.
Offset Field Size Values
0 Command ID
(1)
1 byte XPRG_READ_MEM
1 Memory type
(2)
1 byte Application, Boot, EEPROM, Fuse, Lockbits…
2 Address
(3)
4 bytes Any address
6 Length
(4)
2 bytes 1 to 256
Notes: 1. The command identifier
2. XPRG_MEM_TYPE_APPL
XPRG_MEM_TYPE_BOOT
XPRG_MEM_TYPE_EEPROM
XPRG_MEM_TYPE_FUSE
XPRG_MEM_TYPE_LOCKBITS
XPRG_MEM_TYPE_USERSIG
XPRG_MEM_TYPE_FACTORY_CALIBRATION
3. The start address of the data to be read. The address is in the TIF address space.
4. How many bytes to be read. It can be any value between 1 and 256.
Table 9-16. Answer format.
Offset Field Size Values
0 Command ID
(1)
1 byte XPRG_READ_MEM
1 Status
(2)
1 byte
2 Data
(3)
N bytes
Notes: 1. The command identifier.
2. One of the defined error codes.
3. The requested memory area, lowest address first.
9.2.7 XPRG_READ_CRC
This command starts the CRC generator and returns a three-byte CRC.
Table 9-17. Command format.
Offset Field Size Values
0 Command ID
(1)
1 byte XPRG_READ_CRC
1 CRC type
(2)
1 byte Application, Boot, or entire flash
Notes: 1. The command identifier
2. XPRG_CRC_APP,
XPRG_CRC_BOOT or
XPRG_CRC_FLASH, see appendix.