4
AVR1921
8301A-AVR-04/10
2.2 Using the preprogrammed firmware
The preprogrammed firmware in the ATxmega128A1 runs a demo application where
sounds/tunes are played when the buttons are pushed.
The preprogrammed firmware of the AT90USB1287 is composed of two distinct
sections: the bootloader and the application.
The bootloader provides a simple way for the user to update the application section of
the AT90USB1287 with the only need of FLIP (a free PC application) and a USB
cable.
The preprogrammed application is a USB to serial port bridge. When the USB is
connected to a PC host and correctly enumerated, the AT90USB1287 will operate as
a communication gateway, and pass on data between the UART and the USB (COM
port). When powered from a USB power adapter (and therefore not enumerated) the
AT90USB1287 will echo back data received on the UART.
2.3 Reprogramming the ATxmega128A1 firmware using JTAGICE mkII
This guide requires that AVR Studio 4 is installed. It is a walkthrough which describes
how to download the original firmware using a JTAGICE mkII with AVR Studio 4.18.
1. Make sure the Xplain board is powered (please refer to the “
5
2.1
6
Powering the
Xplain board” section).
2. Connect the JTAGICE mkII to the “JTAG & PDI XMEGA” pin header (J100)
as shown in figure 2.1.
3. Open the programming dialog in AVR Studio selecting Tools -> Program AVR
-> Connect. Select “JTAGICE mkII” and Auto and click “Connect”.
4. Select the “Main” tab and choose the “ATxmega128A1” from the dropdown
list. Choose “JTAG mode” as programming mode.
5. Select the “Program” tab and choose the XMEGA hex file provided with the
application note as Flash input hex file
(/firmware/revision_XXX/ATxmega128A1/ATxmega128A1.hex). Click
Program.
The device is now programmed original firmware. The same procedure can be used
to download your own application code.
2.4 Reprogramming the AT90USB1287 firmware using JTAGICE mkII
This guide requires that AVR Studio is installed. It is a walkthrough which describes
how to download the bootloader, the application as well as setting the correct fuse
settings. The firmware is downloaded with the JTAGICE mkII and AVR Studio 4.18.
Downloading the firmware:
1. Make sure the Xplain board is powered (please refer to the “
7
2.1
8
Powering the
Xplain board” section).
2. Connect the JTAGICE mkII to the “JTAG USB” pin header (J200) as shown in
figure 2.1.
3. Open the programming dialog in AVR Studio selecting Tools -> Program AVR
-> Connect. Select “JTAGICE mkII” and Auto and click “Connect”.