Datasheet
AVR079
29
8133A-AVR-04/08
8 AVR32 JTAG
All AVR32 jtag commands except for ENTER_PROGMODE and
LEAVE_PROGMODE start with CMD_JTAG_AVR32 (0x80)
The implementation of JTAG programming in STK600 is in equal to the JTAGICE
mkII (see T0152-0007 JTAGICE mkII Communication Protocol) but without the
JTAGICE mk II message structure and fifo packages, i.e. only the message body is
used in STK600.
Before issuing any AVR32 JTAG commands the following parameters must be set
correctly with the CMD_SET_PARAMETER command:
• PARAM_JTAG_DAISY_BITS_BEFORE
• PARAM_JTAG_DAISY_BITS_AFTER
• PARAM_JTAG_DAISY_UNITS_BEFORE
• PARAM_JTAG_DAISY_UNITS_AFTER
8.1 CMD_ENTER_PROGMODE_JTAG_AVR32
This command enables communication with the JTAG interface on the AVR32. This
command should be the first AVR32 JTAG command issued.
Table 8-1. Command format.
Field Size Values Description
AVR32JTAG id 1 byte CMD_ENTER_PROGMODE_32 (0x81) Command id
Table 8-2. Answer format.
Field Size Values Description
Answer id 1 byte CMD_ENTER_PROGMODE_32 Answer id
status 1 byte STATUS_CMD_OK
8.2 CMD_LEAVE_PROGMODE_JTAG_AVR32
This command disables the JTAG interface.
Table 8-3. Command format.
Field Size Values Description
AVR32JTAG id 1 byte CMD_LEAVE_PROGMODE_32 Command id (0x82)
Table 8-4. Answer format.
Field Size Values Description
Answer id 1 byte CMD_LEAVE_PROGMODE_32 Answer id
status 1 byte STATUS_CMD_OK