Atmel AVR ONE! Manuale utente

32103C–AVR ONE!–02/10
AVR ONE!
....................................................................................................................
Quick-start Guide
EVK1100 + Windows
®

Table of Contents (Continued)
AVR ONE! Quick-start Guide i
32103C–AVR ONE!–02/10
Section 1
Introduction................................................................................................................. 1-1
1.1 General .............................................................................................................................. 1-1
1.2 Requirements..................................................................................................................... 1-1
Section 2
Quick-start guide (short version) ................................................................................ 2-1
2.1 Install Hardware and software ........................................................................................... 2-1
2.2 Create a demonstration project ......................................................................................... 2-1
2.3 Configure target MCU for a debug session using trace ..................................................... 2-1
2.4 Start the debug session and configure AVR32 Studio 2.5 for trace................................... 2-2
2.5 Start the trace debug session ............................................................................................ 2-2
Section 3
Hardware preparation................................................................................................. 3-1
Section 4
Software Installation ................................................................................................... 4-1
4.1 Download the software ...................................................................................................... 4-1
4.2 Download the two installation files to your disk.................................................................. 4-2
4.3 Install AVR32 GNU Toolchain............................................................................................ 4-2
4.4 Install AVR32 Studio 2.5 .................................................................................................... 4-8
4.5 Connect the AVR ONE! to power and USB host ............................................................. 4-11
4.6 Install AVR ONE! Driver................................................................................................... 4-12
Section 5
5.1 Connect the AVR ONE! to the EVK1100 ........................................................................... 5-1
5.2 Connect the EVK1100 to power......................................................................................... 5-2
Section 6
Create demo application ............................................................................................ 6-1
6.1 Start AVR32 Studio............................................................................................................ 6-1
6.2 Configure adapter and target ............................................................................................. 6-2
6.2.1 Add and configure the adapter (AVR ONE!)........................................................ 6-3
6.2.2 Configure target board and MCU......................................................................... 6-5
6.2.3 Target MCU Chip erase....................................................................................... 6-7
6.3 Create a demonstration project ......................................................................................... 6-8
6.4 Configure AVR32 Studio for a debug session using trace............................................... 6-11
6.4.1 Create a new debug launch configuration ......................................................... 6-12
6.4.2 Configure the target trace module for program trace......................................... 6-13
6.4.3 Configure the target trace module for data trace............................................... 6-16
6.5 Start a debug session and configure the debugger for trace ........................................... 6-17

Table of Contents (Continued)
AVR ONE! Quick-start Guide ii
32103C–AVR ONE!–02/10
6.5.1 Add start and stop trace-points.......................................................................... 6-19
6.6 Start the trace debug session .......................................................................................... 6-23
6.7 Modify the code and restart the debug session ............................................................... 6-26
Section 7
Firmware Upgrade...................................................................................................... 7-1
7.1 Firmware upgrade overview............................................................................................... 7-1
7.2 Firmware version test and upgrade ................................................................................... 7-1
7.3 Adapter in use.................................................................................................................... 7-2

AVR ONE! Quick-start Guide 1-1
32103C–AVR ONE!–02/10
Section 1
Introduction
1.1 General
This document contains a quick-start guide describing how to get up and running using the AVR
®
ONE!
debugger with AVR32 Studio. In addition to the AVR ONE! debugger, you need the following items:
– AVR32 Studio 2.5 software
– AVR32 GNU Toolchain 2.4
– EVK110x Evaluation board
Software and documents can be found at www.atmel.com/avrone
1.2 Requirements
This example was created on a PC running Microsoft
®
Windows
®
XP Professional. For other versions of
Windows, the behaviour when installing software and drivers may be slightly different.
Please read the AVR32 Studio 2.5 release notes for information about support for other versions of
Windows.

AVR ONE! Quick-start Guide 2-1
32103C–AVR ONE!–02/10
Section 2
Quick-start guide (short version)
2.1 Install Hardware and software
Install the MICTOR38 connector on the EVK1100 board.
Download and install avr32-gnu-toolchain-2.4.x and AVR32Studio-2.5.x.
Connect AVR ONE! to power and USB and turn it on.
Install AVR ONE! USB driver.
Connect AVR ONE! to the EVK1100 using the MICTOR38 connector.
Connect the EVK1100 to power and turn it on.
Start AVR32 Studio.
Select a suitable workspace folder to contain your projects.
Exit from the welcome screen to workbench.
Right-click in the AVR32 Targets view and select Scan Targets.
Select the AVR ONE! and click on the Properties-tab.
Select Details-tab. Set MCU to UC3A0512 or UC3A0512ES, depending on what MCU is mounted on
your EVK1100 and Board to EVK1100,.
Right-click on the AVR ONE! in the AVR32 Target view and select Chip Erase. This operation is only
needed one time (when the EVK1100 is new).
2.2 Create a demonstration project
Select File>New>Example.
Select EVK1100>Components>DIP204 example, then Next.
Enter a name for the project, and click Finish.
Right-click on the project in Project Explorer view and select Build Project (or use Ctrl+B).
2.3 Configure target MCU for a debug session using trace
When the build process is finished, right-click on the project in the Project Explorer-view and select
Debug As>Debug Configurations.
In the Debug Configurations-view, select AVR32 Application and click New. A new launch
configuration will be created and default values will be filled into all fields.
Select the Trace-tab and click Enable Trace.
Select the preferred trace method. In this case we want Buffered AUX Trace.
Select the preferred action when buffer is full. In this case we choose Break, read out and halt.
Select Buffer Size. We use 16kB for a quick test.

Quick-start guide (short version)
AVR ONE! Quick-start Guide 2-2
32103C–AVR ONE!–02/10
Select Debugger tab and tick Stop on startup at: main.
2.4 Start the debug session and configure AVR32 Studio 2.5 for trace
Click the Debug-button. Now the program will be loaded into the target, and run until main().
When the program halts, add at least a trace start-point (Right-click to the left of the source code line
in the source code view).
2.5 Start the trace debug session
Click Resume (green Play button in Debug view) and wait until the program halts.
You can now look at the trace data in the Trace-view.

AVR ONE! Quick-start Guide 3-1
32103C–AVR ONE!–02/10
Section 3
Hardware preparation
In case you have an evaluation kit without the MICTOR38 connector, you need to install one. In case the
connector is already mounted, you can skip this chapter.
To be able to connect to the evaluation board AUX port, you need to solder a connector to the board.
The AVR ONE! Kit contains one MICTOR38 connector for this purpose. If you need more connectors for
other kits, or your own designs, you can buy more connectors from Atmel, or Tyco Electronics/AMP.
The Tyco Electronics/AMP Part number is 2-5767004-2.
To install the MICTOR38 connector, you only need a fine-tipped soldering iron, a small piece of fine sol-
der (0,3mm is OK), and some extra flux. Also remember to provide proper ventilation to prevent inhaling
the fumes from the flux.
The soldering guide shows the EVK1100, but is applicable for all other kits that needs a MICTOR38 con-
nector (like the EVK1101).
Figure 3-1. Required hardware and tools for installation of Mictor38

Hardware preparation
AVR ONE! Quick-start Guide 3-2
32103C–AVR ONE!–02/10
Unpack the Mictor38 connector and remove the pick-and-place pad
Figure 3-2. Remove the pick-and-place pad
Place the connector onto the footprint on the evaluation board. Make sure that the guide tab beneath the
connector fits into the guide hole in the PCB.
Add a fair amount of flux. The extra flux is very important for a good result. It is also very important to
keep the tip of the soldering iron clean while mounting the connector.
Too thick solder, too little flux or solder-blobs on the tip of the soldering iron will give bad connections or
short circuits.
Figure 3-3. Place Mictor38 and apply flux

Hardware preparation
AVR ONE! Quick-start Guide 3-3
32103C–AVR ONE!–02/10
Make sure that the connector is firmly seated on the footprint, and start by soldering the corners.
Figure 3-4. Soldering the corners
When all corners are soldered, check that connector is still firmly seated. It is still possible to push the
connector down and re-heat corner pins if you need to adjust a bit.
Figure 3-5. Soldered corner pin

Hardware preparation
AVR ONE! Quick-start Guide 3-4
32103C–AVR ONE!–02/10
Solder the remaining pins.
Figure 3-6. Continuing with the remaining pins
After soldering, you should make sure that there are no shorts circuits between pins.
Figure 3-7. All pins finished
Altri manuali per AVR ONE!
1
Indice
Altri manuali Atmel Accessori per computer





















