Atmel ATSTK600 500 Starter Kit and Development System. ATSTK600 ATSTK600 データシート
製品コード
ATSTK600
26
AVR079
8133A-AVR-04/08
Before issuing any AVR8 JTAG commands the following parameters must be set
correctly with the CMD_SET_PARAMETER command:
correctly with the CMD_SET_PARAMETER command:
• PARAM_JTAG_ALLOW_FULL_PAGE_STREAM
• PARAM_JTAG_EEPROM_PAGE_SIZE
• PARAM2_JTAG_FLASH_PAGE_SIZE
• PARAM2_JTAG_FLASH_SIZE_H
• PARAM2_JTAG_FLASH_SIZE_L
• PARAM_JTAG_DAISY_BITS_BEFORE
• PARAM_JTAG_DAISY_BITS_AFTER
• PARAM_JTAG_DAISY_UNITS_BEFORE
• PARAM_JTAG_DAISY_UNITS_AFTER
• PARAM_JTAG_EEPROM_PAGE_SIZE
• PARAM2_JTAG_FLASH_PAGE_SIZE
• PARAM2_JTAG_FLASH_SIZE_H
• PARAM2_JTAG_FLASH_SIZE_L
• PARAM_JTAG_DAISY_BITS_BEFORE
• PARAM_JTAG_DAISY_BITS_AFTER
• PARAM_JTAG_DAISY_UNITS_BEFORE
• PARAM_JTAG_DAISY_UNITS_AFTER
7.1 Memory Read / Write
The following memory modes are defined for CMND_WRITE_MEMORY and
CMND_READ_MEMORY. (The values are the same as for jtagice mkII)
CMND_READ_MEMORY. (The values are the same as for jtagice mkII)
Table 7-3. Valid Result Values for the answer to this command.
Name Value
JTAGC_MemType_FLASH_PAGE 0xB0
JTAGC_MemType_EEPROM_PAGE 0xB1
JTAGC_MemType_FUSE_BITS 0xB2
JTAGC_MemType_LOCK_BITS
0xB3
JTAGC_MemType_SIGN_JTAG (ro)
0xB4
JTAGC_MemType_OSCCAL_BYTE (ro)
0xB5
7.1.1 CMND_READ_MEMORY
This commands reads a specified amount of bytes from the chosen target MCU
memory. The target MCU must be in programming mode
(CMND_ENTER_PROGMODE) before issuing this command.
memory. The target MCU must be in programming mode
(CMND_ENTER_PROGMODE) before issuing this command.
Table 7-4. Command format.
Field Size
Values
Description
AVR8JTAG id
1 byte
CMD_JTAG_AVR
Command id
Message ID
1 byte
CMND_WRITE_MEMORY
(0x05)
(0x05)
Memory type
1 byte
JTAGC_MemType_xxxx See table above
Byte count
4 bytes
Lsb first
Number of bytes to write
Start address
4 bytes
Lsb first
Start memory address