12.2 Troubleshooting Guide

Table 12-1. Troubleshooting Guide
Target type/familyProblemPossible causesSolution
N/APower LED does not light upDC supply voltage is insufficient or of incorrect polarityCheck that you are using the correct power supply provided with the kit. If you are using another power supply, ensure that it has a center-positive connector.
Atmel megaAVR and Atmel AVR XMEGAJTAG debugging starts, then suddenly failsThe JTAG Disable bit in the MCUCSR register has been inadvertently written by the applicationHold reset low to regain control and change the code so that the JTAG Disable bit is not written
Atmel megaAVR and Atmel AVR XMEGAAfter using the Atmel AVR ONE! to download code to the device, the emulator no longer works

1. The JTAG ENABLE fuse has been disabled.

2. The programming interface is still active. It is not possible to use both OCD and programming at the same time.

1. Program the JTAG ENABLE fuse.

2. Close the Programming interface, then enter emulation mode.

Atmel megaAVR, Atmel AVR XMEGA, and Atmel tinyAVRAtmel AVR ONE! is detected by Atmel Studio or other software front-end, but it will not connect to target device

JTAG: JTAG ENABLE Fuse is not programmed

debugWIRE: DWEN Fuse is not programmed

JTAG: Use an other programming interface to program the JTAG ENABLE Fuse

debugWIRE: Use an other programming interface to program the DWEN Fuse

Atmel megaAVR, Atmel AVR XMEGA, and Atmel AVR UC3JTAG Debugging and programming is unstable, or does not work at allFor some target board configurations there might be some ringing on the interface linesAdd series resistors on the JTAG lines, especially TCK, but series resistors could be useful on TMS and TDI too. A value of about 68Ω will in most cases be suitable. Note that you might have to reduce the JTAG clock frequency after adding the series resistors.
N/AAtmel Studio gives a message that no voltage is present

1. No power on target board.

2. Vtref not connected.

3. Target voltage too low.

1. Apply power to target board.

2. Make sure your JTAG connector includes the Vtref signal.

3. Make sure the target power supply is able to provide enough power.

Atmel megaAVROCD fuse is disabled, but using the Atmel AVR ONE!, OCD is still possibleThe AVR ONE! will automatically program the OCD fuse if it is disabledThis is correct operation
Atmel megaAVR and Atmel tinyAVRSome I/O registers are not updated correctly in Atmel Studio I/O viewWhen non-intrusive read back is not possible, the Atmel AVR ONE! will not update this location in the Atmel Studio I/O viewRead this I/O location into a temporary register, and view it there during debugging. See the chapter "Special Considerations" for information about which registers affected by this.
Atmel tinyAVR and Atmel megaAVR with debugWIRE supportSPI programming after a debugWIRE session is not possibleWhen the debugWIRE Interface is enabled the SPI Interface is disabledRe-enable the SPI Interface as described in the section "Connecting to Target through the debugWIRE Interface". Use command line software to re-enable SPI interface.
Atmel tinyAVR and Atmel megaAVR with debugWIRE supportNeither SPI nor debugWIRE connection worksThe SPI and debugWIRE interfaces are disabled. DebugWIRE will not work if the lockbits are programmed.Connect to target with High Voltage Programming. Enable SPI or debugWIRE and clear lockbits if using debugWIRE.
Atmel megaAVR, Atmel tinyAVR, Atmel AVR XMEGA, and Atmel AVR UC3Error messages, or other strange behavior when using debugWIRE or JTAGTarget is running outside Safe Operation Area. Maximum frequency vs. VCC.Make sure the target is running within the Safe Operation Area as described in the chapter "Electrical Characteristics" in the datasheet for the actual part. Lower the frequency and/or increase the voltage.