Atmel AVR ONE! User manual

32104B–AVR ONE!–02/10
AVR ONE!
....................................................................................................................
Quick-start Guide
EVK1101 + Windows
®

Table of Contents (Continued)
AVR ONE! Quick-start Guide i
32104B–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
Software Installation ................................................................................................... 4-1
3.1 Download the software ...................................................................................................... 4-1
3.2 Download the two installation files to your disk.................................................................. 4-2
3.3 Install AVR32 GNU Toolchain............................................................................................ 4-2
3.4 Install AVR32 Studio 2.5 .................................................................................................... 4-8
3.5 Connect the AVR ONE! to power and USB host ............................................................. 4-11
3.6 Install AVR ONE! Driver................................................................................................... 4-12
Section 4
4.1 Connect the AVR ONE! to the EVK1101 ........................................................................... 5-1
4.2 Connect the EVK1101 to power and RS232...................................................................... 5-2
Section 5
Create demo application ............................................................................................ 6-1
5.1 Start AVR32 Studio............................................................................................................ 6-1
5.2 Configure adapter and target ............................................................................................. 6-2
5.2.1 Add and configure the adapter (AVR ONE!)........................................................ 6-3
5.2.2 Configure target board and MCU......................................................................... 6-4
5.2.3 Target MCU Chip erase....................................................................................... 6-5
5.3 Create a demonstration project ......................................................................................... 6-6
5.4 Configure AVR32 Studio for a debug session using trace................................................. 6-9
5.4.1 Create a new debug launch configuration ......................................................... 6-10
5.4.2 Configure the target trace module for program trace......................................... 6-11
5.4.3 Configure the target trace module for data trace............................................... 6-14
5.5 Start a debug session and configure the debugger for trace ........................................... 6-16
5.6 Add start and stop trace-points ........................................................................................ 6-17
5.7 Start the trace debug session .......................................................................................... 6-20
5.8 View trace data ................................................................................................................ 6-24

Table of Contents (Continued)
AVR ONE! Quick-start Guide ii
32104B–AVR ONE!–02/10
5.9 Modify the application ...................................................................................................... 6-27
Section 6
Firmware Upgrade...................................................................................................... 7-1
6.1 Firmware upgrade overview............................................................................................... 7-1
6.2 Firmware version test and upgrade ................................................................................... 7-1
6.3 Adapter in use.................................................................................................................... 7-2

AVR ONE! Quick-start Guide 1-1
32104B–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
32104B–AVR ONE!–02/10
Section 2
Quick-start guide (short version)
2.1 Install Hardware and software
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 EVK1101 using the 10pin JTAG connector.
Connect the EVK1101 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 Board-tab. Set Board to EVK1101, MCU to UC3B0256 or UC3B256ES, depending on what
MCU is mounted on your EVK1101.
Right-click on the AVR ONE! in the AVR32 Target view and select Chip Erase. This operation is only
needed one time (when the EVK1101 is new).
2.2 Create a demonstration project
Select File>New>Example.
Select EVK1101>Components>Accelerometer 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-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 Nano Trace.
Select the preferred action when buffer is full. In this case we choose Break, read out and halt.
Deselect the option Break on application buffer access
Set Buffer Size. Select Specify size and location, then click Detect.

Quick-start guide (short version)
AVR ONE! Quick-start Guide 2-2
32104B–AVR ONE!–02/10
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 4-1
32104B–AVR ONE!–02/10
Section 3
Software Installation
3.1 Download the software
To use the AVR ONE!, you must download and install two software packages:
avr32-gnu-toolchain-2.4.x.exe
AVR32Studio-2.5.x.exe
The AVR32 Toolchain is a collection of tools that are required to be able to work with the AVR ONE! It
contains command-line tools for controlling the AVR ONE!, and tools to compile code for the AVR32
MCUs.
AVR32 Studio is the front end that uses the AVR32 GNU Toolchain to generate binary code for the tar-
get, program the target, and control the debug sessions.
Figure 3-1. Tools structure
AVR32 Studio
Source code editor and front-end for the compiler and debugger interface command-line tools
AVR32 GNU
Toolchain
Source code files Programming and debugging tools
(Part of AVR32 GNU Toolchain)
Binary file
(Compiledcode,
ELFformat)
USB Driver
Target board with target MCU
User
Hardware Software
Programming and debugging adapter
(AVR ONE! / JTAGICE MkII / ...)

Software Installation
AVR ONE! Quick-start Guide 4-2
32104B–AVR ONE!–02/10
3.2 Download the two installation files to your disk.
The installation files can be found at this location: www.atmel.com/avrone
3.3 Install AVR32 GNU Toolchain
If you have any AVR tools connected to the USB hub, turn them off now. Otherwise the USB driver
installation may fail.
Double-click on avr32-gnu-toolchain-2.4.x to start the installation process.
Figure 3-2. AVR32 GNU Toolchain installation welcome
Click Next.

Software Installation
AVR ONE! Quick-start Guide 4-3
32104B–AVR ONE!–02/10
Figure 3-3. AVR32 GNU Toolchain License Agreement form
Select I accept the terms of the licence agreement, then click Next.
Figure 3-4. AVR32 GNU Toolchain installation folder select
Check that the installation folder is correct and click Next.

Software Installation
AVR ONE! Quick-start Guide 4-4
32104B–AVR ONE!–02/10
Figure 3-5. AVR32 GNU Toolchain installer configuration finished
Click Install.
Figure 3-6. AVR32 GNU Toolchain installation progress indicator
The AVR32 GNU Toolchain is now being installed. As a part of the installation process, USB drivers for
all supported programming and debugging adapters are installed.

Software Installation
AVR ONE! Quick-start Guide 4-5
32104B–AVR ONE!–02/10
Figure 3-7. USB Drivers installation start
Figure 3-8. USB Driver installer welcome
Click Next.

Software Installation
AVR ONE! Quick-start Guide 4-6
32104B–AVR ONE!–02/10
Figure 3-9. USB Drivers licence agreement form
Select I accept the terms of the licence agreement, then click Next.
Figure 3-10. USB drivers installer configuration finished
Click Install.

Software Installation
AVR ONE! Quick-start Guide 4-7
32104B–AVR ONE!–02/10
Figure 3-11. USB Drivers installation progress indicator
Figure 3-12. USB Drivers installation complete
Click Finish.

Software Installation
AVR ONE! Quick-start Guide 4-8
32104B–AVR ONE!–02/10
Figure 3-13. AVR32 GNU Toolchain installation complete
Click Finish to complete the AVR32 Toolchain installation process.
3.4 Install AVR32 Studio 2.5
Double-click on the AVR32Studio-2.5.x.exe file to start the installation process.
Figure 3-14. AVR32 Studio 2.5 installer welcome
Click Next.

Software Installation
AVR ONE! Quick-start Guide 4-9
32104B–AVR ONE!–02/10
Figure 3-15. AVR32 Studio installation folder select
Check that the installation folder is correct and click Next.
Figure 3-16. AVR32 Studio installer configuration finished
Click Install to start the installation.

Software Installation
AVR ONE! Quick-start Guide 4-10
32104B–AVR ONE!–02/10
Figure 3-17. AVR32 Studio installation progress indicator
Wait for the installation process to complete.
If a suitable Java™ runtime is not installed, a Java installer wizard will guide you through the installation
procedure.
Figure 3-18. AVR32 Studio installation process complete
Tick Create shortcut on desktop if you want a shortcut to be created. Then click Finish.

Software Installation
AVR ONE! Quick-start Guide 4-11
32104B–AVR ONE!–02/10
3.5 Connect the AVR ONE! to power and USB host
Connect the AVR ONE! to power using the supplied power supply.
Connect the AVR ONE! to the USB host (PC) using the supplied USB cable
Turn on the AVR ONE! using the power switch next to the power connector
Figure 3-19. AVR ONE! connected to power and USB

Software Installation
AVR ONE! Quick-start Guide 4-12
32104B–AVR ONE!–02/10
3.6 Install AVR ONE! Driver
When the AVR ONE! is powered up and connected to the PC for the first time, the proper USB driver
must be installed. Since the PC is keeping track of the serial number of each USB device, this will hap-
pen every time a new AVR ONE! is connected to the PC, even if the driver is the same as for all other
AVR ONE!s that have been connected previously. This is a property of the operating system, and is not
controlled by any Atmel software installed.
Figure 3-20. “New hardware” notification pop-up
Figure 3-21. AVR ONE! Hardware installation wizard
When the hardware installation wizard pops up, select No, not this time and click Next.

Software Installation
AVR ONE! Quick-start Guide 4-13
32104B–AVR ONE!–02/10
Figure 3-22. Hardware installation wizard configuration
Select Install the software automatically and click Next.
Figure 3-23. Hardware installation in progress
Wait for the installation process to complete.

Software Installation
AVR ONE! Quick-start Guide 4-14
32104B–AVR ONE!–02/10
Figure 3-24. Hardware installation wizard complete
Click Finish.
Other manuals for AVR ONE!
1
Table of contents
Other Atmel Computer Accessories manuals
Popular Computer Accessories manuals by other brands

ekwb
ekwb EK-FC R9-290X Matrix Series INSTALLATION AND MOUNTING MANUAL

IOTA
IOTA isoCell user manual

Sony
Sony Vaio LocationFree LF-V30 quick start guide

Heckler Design
Heckler Design H460 Assembly & installation

Apevia
Apevia X-Dreamer II ATXB4KLW Series installation guide

Uplift Desk
Uplift Desk KIT-KBT-Multi manual