background image

 

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”. 

Summary of Contents for AVR1921

Page 1: ...Potentiometer Analog Output from DAC Mono speaker via audio amplifier Digital IO UART communication through USB gateway 8 micro switch buttons 8 LEDs 8 spare analog pins 8 spare digital pins 1 Introd...

Page 2: ...ll the Xplain USB driver the first time it is connected Please find the install file in the software USB driver folder of the zip file distributed with this application note 0http www atmel com avr Se...

Page 3: ...AVR1921 8301A AVR 04 10 Figure 2 2a Xplain revision Figure 2 2b Xplain revision...

Page 4: ...refer to the 52 1 6Powering 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...

Page 5: ...2 5 Reprogramming the AT90USB1287 application firmware using FLIP This guide requires that both AVR Studio and FLIP are installed It is a walkthrough which describes how to download the USB applicatio...

Page 6: ...ick next Figure 2 4 Driver path selection 7 Click finish 8 Open AVR Studio and select Tools Flip X X X 9 Select Device Select AT90USB1287 and click OK 10 Select Settings Communication USB and click Op...

Page 7: ...ice is now programmed with the serial gateway application firmware The same procedure can be used to download your own application code Remove the jumper at the JTAG USB pin header J200 and cycle powe...

Page 8: ...RY WARRANTY RELATING TO ITS PRODUCTS INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTY OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE OR NON INFRINGEMENT IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY...

Reviews: