Using the AT90USBKey
AT90USBKey Hardware User Guide 2-13
7627A–AVR–04/06
2.5 In-System Programming
2.5.1 Programming with USB bootloader: DFU (Device Firmware Upgrade)
AT90USB part comes with a default factory pre-programmed USB bootloader located in
the on-chip boot section of the AT90USB. This is the easiest and fastest way to
reprogram the device directly over the USB interface. The “Flip” PC side application, is
available from the Atmel website, offers a flexible an user friendly interface to reprogram
the application over the USB bus.
The HWB pin of the AT90USB allows to force the bootloader section execution after
reset. (Refer to AT90USB datasheet section “boot loader support”). To force bootloader
execution, operate as follow:
Press both “RST” and “HWB push buttons
First release the “RST” push button
Release the “HWB” push button
For more information about the USB bootloader and “Flip” application, please refer to
the “USB bootloader datasheet document” and “Flip’s user manual”.
Note: The HWB pin is active only if the HWBE fuse is set (default factory configuration).
2.5.2 Programming with AVR JTAGICEmKII
The AT90USB can be programmed using specific JTAG link. To use the AVR
JTAGICEmkII with an AT90USBKey an optional HE10 connector should be soldered to
J9 footprint. Then the JTAG probe can be connected to the AT90USBKey as shown in
Figure 2-10.
Note: When the JTAGEN Fuse is unprogrammed, the four TAP pins are normal port pins, and
the TAP controller is in reset. When programmed, the input TAP signals are internally
pulled high and the JTAG is enabled for Boundary-scan and programming. The
AT90USB device is shipped with this fuse programmed.
Using the AT90USBKey
2-14 AT90USBKey Hardware User Guide
7627A–AVR–04/06
Figure 2-10 . Connecting AVR JTAG ICE to AVRUSBKey
The Flash, EEPROM and all Fuse and Lock Bit options ISP-programmable can be
programmed individually or with the sequential automatic programming option.
Note: See AVR Studio® on-line Help for information.
2.6 Debugging
2.6.1 Debugging with AVR JTAG ICE mkII
The AT90USBKey can be used for debugging with JTAG ICE MK II.
Connect the JTAG ICE mkII as shown in Figure 2-10, for debugging, please refer to
AVR Studio® Help information.
When using JTAG ICE MK II for debugging, and as AT90USB parts are factory
configured with the higher security level set, a chip erase operation will be performed on
the part before debugging. Thus the on-chip flash bootloader will be erased. It can be
restored after the debug session using the bootloader hex file available from ATMEL
website.
AT90USBKey Hardware User Guide 3-15
7627A–AVR–04/06
Section 3
Troubleshooting Guide
Figure 3-1 . Troubleshooting Guide
Problem Reason Solution
The Green “VCC-ON”
LED is not on
No power supply
Verify the power supply source (check
battery charge or USB connection).
AVRUSBKey does not
work
The AT90USB cannot be
programmed
The AVR JTAG ICE
probe is not
connected
Connect the JTAG ICE 10-PIN header to
the correct AVRUSBKey JTAG header
(page 13)
The memory lock bits
are programmed
Erase the memory before programming
with JTAG ICE.
The fuse bits are
wrongly programmed
Check the fuse bits with JTAG ICE
Can not connect to
USB bootloader
Force bootloader execution with HWB
under reset.
USB bootloader erased after a JTAG
debugging session: reprogram the USB
bootloader with JTAG.
AVR Studio does not
detect the AVR JTAG
ICE.
Serial/USB cable is
not connected, or
power is off
Connect serial cable to RS232 (STK500 -
AVR ISP) and check power connections
Connect serial cable to USB (JATG ICE
MKII, AVR ISPmkIIl) and check power
connections
PC COM port is in
use
Disable other programs that are using
PC COM port.
Change PC COM port
AVR Studio does not
detect COM port.
Disable COM port auto-detection in AVR
Studio file menu. Force COM port to
correct COM port

AT90USBKEY2

Mfr. #:
Manufacturer:
Microchip Technology / Atmel
Description:
Development Boards & Kits - AVR AVR USB Eval Kit
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet