Atmel ATSTK600 500 Starter Kit and Development System. ATSTK600 ATSTK600 Data Sheet
Product codes
ATSTK600
28
AVR079
8133A-AVR-04/08
7.1.4 CMND_ENTER_PROGMODE
This command enables communication between the STK600 and the target MCU and
should be the first JTAG command sent to the STK600. After receiving this command
the MCU is held in reset state and memory read and write is allowed.
should be the first JTAG command sent to the STK600. After receiving this command
the MCU is held in reset state and memory read and write is allowed.
Table 7-10. Command format.
Field Size
Values
Description
AVR8JTAG id
1 byte
CMD_JTAG_AVR
Command id
Message ID
1 byte
CMND_ENTER_PROGMODE (0x14)
Table 7-11. Answer format.
Field Size
Values
Description
Answer id
1 byte
CMD_JTAG_AVR
Answer id
status 1
byte
STATUS_CMD_OK
STATUS_CMD_FAILED
STATUS_CMD_FAILED
If failed the JTAG id was not read successfully
from target
from target
7.1.5 CMND_LEAVE_PROGMODE
This command releases the target MCU which will run freely from the reset vector.
Table 7-12. Command format.
Field Size
Values
Description
AVR8JTAG id
1 byte
CMD_JTAG_AVR
Command id
Message ID
1 byte
CMND_LEAVE_PROGMODE (0x15)
Table 7-13. Answer format.
Field Size
Values
Description
Answer id
1 byte
CMD_JTAG_AVR
Answer id
status 1
byte
STATUS_CMD_OK
7.1.6 CMND_CHIP_ERASE
This command erases all memory and releases the lock bits of the target MCU.
Table 7-14. Command format.
Field Size
Values
Description
AVR8JTAG id
1 byte
CMD_JTAG_AVR
Command id
Message ID
1 byte
CMND_CHIP_ERASE (0x13)
Table 7-15. Answer format.
Field Size
Values
Description
Answer id
1 byte
CMD_JTAG_AVR
Answer id
status 1
byte
STATUS_CMD_OK
STATUS_CMD_TOUT
STATUS_CMD_TOUT