Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

Similar documents
Atmel AVR ATxmega384C3 microcontroller OLED display with 128x32 pixels resolution Analog sensors. Ambient light sensor Temperature sensor

Atmel AVR1619: XMEGA-B1 Xplained Demonstration. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

AVR4018: Inertial Two (ATAVRSBIN2) Hardware User's Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Atmel CryptoAuthentication Starter Kit

Atmel AVR473: ATAVRSB202 Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

AVR1518: XMEGA-A1 Xplained Training - XMEGA Clock System. 8-bit Atmel Microcontrollers. Application Note. Prerequisites.

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

AVR1922: Xplain Board Controller Firmware 8-bit Microcontrollers Application Note Features 1 Introduction

APPLICATION NOTE. Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices. Atmel AVR XMEGA. Features.

Atmel AVR1924: XMEGA-A1 Xplained Hardware User's Guide. 8-bit Atmel Microcontrollers. Application Note. Preliminary. Features.

AVR32901: EVKLCD100/EVKLCD101 Hardware User's Guide. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

Atmel QT600 Quick Start Guide Touch Solutions

USER GUIDE. Atmel Segment LCD1 Xplained Pro. Preface

AVR1503: Xplain training - XMEGA Programmable Multi Interrupt Controller 8-bit Microcontrollers Application Note Prerequisites

APPLICATION NOTE. AT03324: Atmel REB212BSMA-EK Quick Start Guide. Atmel MCU Wireless. Introduction

USER GUIDE. Atmel QT1 Xplained Pro. Preface

Atmel AVR32847: Migration from/to the UC3L0 64/32/16 from/to the UC3L0 256/ bit Atmel Microcontrollers. Application Note.

APPLICATION NOTE. Atmel AVR1638: XMEGA RTC Calibration. 8-bit Atmel Microcontrollers. Features. Introduction

STK521. User Guide B AVR 01/12

QT2 Xplained Pro. Preface. Atmel QTouch USER GUIDE

USER GUIDE. Atmel QT6 Xplained Pro. Preface

Hardware Prerequisites Atmel Xplained Pro Evaluation Kit Atmel WINC1500 extension USB Micro Cable (TypeA / MicroB)

USER GUIDE. Atmel OLED1 Xplained Pro. Preface

Atmel ATMXT143E touchscreen controller Capacitive touch ITO 320 x 240 pixel LCD display with SPI interface LED backlight

APPLICATION NOTE. Atmel AVR2131: Lightweight Mesh Getting Started Guide. Atmel MCU Wireless. Features. Description

APPLICATION NOTE. Atmel AT03304: SAM D20 I 2 C Slave Bootloader SAM D20. Description. Features

OLED display with pixels resolution Ambient light sensor CPU load Analog filter Quadrature Encoder with push button Digital I/O

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

AVR32917: picopower Board getting started. 32-bit Microcontrollers. Application Note. Preliminary. Features. 1 Introduction

Atmel LF-RFID Kit Comparison Chart. Application Note. Atmel LF-RFID Kit Comparison Chart. 1. Description

Ethernet1 Xplained Pro

USER GUIDE. ZigBit USB Stick User Guide. Introduction

Atmel AVR ATxmega384C3 microcontroller OLED display with pixels resolution Analog sensors. Ambient light sensor Temperature sensor

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction

AVR1501: Xplain training XMEGA Timer/Counter 8-bit Microcontrollers Application Note Prerequisites 1 Introduction

USER GUIDE. ATWINC1500 Xplained Pro. Preface

ATtiny104 Xplained Nano. Preface. AVR 8-bit Microcontrollers USER GUIDE

AT02667: XMEGA-E5 Xplained Hardware User's Guide. Features. Description. AVR XMEGA Microcontrollers APPLICATION NOTE

AVR1512: XMEGA-A1 Xplained training - XMEGA Basics. 8-bit Atmel Microcontrollers. Application Note. Prerequisites. 1 Introduction

Atmel AVR1912: Atmel XMEGA-B1 Xplained Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features.

AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1. Overview. Fuse Settings: ISP Programming

AVR1508: Xplain training - XMEGA DAC 8-bit Microcontrollers Application Note Features 1 Introduction

USER GUIDE. Atmel PROTO1 Xplained Pro. Preface

APPLICATION NOTE. Atmel QT4 Xplained Pro User Guide ATAN0114. Preface

OLED display Sensors readout. Light sensor Temperature sensor

AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

AVR1303: Use and configuration of IR communication module. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AVR116: Wear Leveling on DataFlash. 32-bit Atmel Microcontrollers. Features. Description. Wear leveling

APPLICATION NOTE. Atmel AVR057: Internal RC Oscillator Calibration for ATtiny4/5/9/10/20/40. 8-bit Atmel Microcontrollers. Features.

AT88CK101 HARDWARE USER GUIDE. Atmel CryptoAuthentication Development Kit. Atmel CryptoAuthentication AT88CK101 Daughterboard

USER GUIDE. ATmega168 Xplained Mini User Guide. Introduction

AVR1315: Accessing the XMEGA EEPROM. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

APPLICATION NOTE. Atmel AT02260: Driving AT42QT1085. Atmel QTouch. Features. Description

APPLICATION NOTE. Atmel AVR3009: Driving QTouch Device with I 2 C Interface. Atmel QTouch. Introduction

I/O1 Xplained Pro. Preface. Atmel MCUs USER GUIDE

AT06467: Getting started with SAM D09/D10/D11. Features. Description. SMART ARM-based Microcontrollers APPLICATION NOTE

AVR32 UC3 Software Framework... User Manual

AT89ISP Programmer Cable Introduction AT89ISP Programmer Cable Parallel Port Settings Application Note AT89ISP Software AT89ISP Cable polarized

AVR32752: Using the AVR32 UC3 Static Memory Controller. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

USER GUIDE. Atmel maxtouch Xplained Pro. Preface

APPLICATION NOTE. Atmel AVR536: Migration from ATmega644 to ATmega644A. 8-bit Atmel Microcontrollers. Introduction

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

USER GUIDE EDBG. Description

AVR32401: AVR32 AP7 Linux Interfacing DataFlash. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

a clock signal and a bi-directional data signal (SCL, SDA)

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

AVR469: MC301 Hardware User Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

8-bit Microcontroller with 16K Bytes In-System Programmable Flash. ATtiny87 ATtiny167 Automotive

AVR ONE!... Quick-start Guide. EVK Windows 32103C AVR ONE! 02/10

Getting Started with the SAM4L-EK Demo

APPLICATION NOTE. Atmel AT03782: Using Low Power Modes in SAM4N Microcontroller. Atmel 32-bit Microcontroller. Features.

USER GUIDE. Wireless Production Test Reference Protocol Specification Document. Atmel MCU Wireless. Description

CMSIS DAP Setup. Document Version History Document Version ngxtechnologies.com 2

One-channel Toggle-mode Touch Sensor IC with Power Management Functions AT42QT1012. Summary

AVR532: Migration from ATmega48/88/168 to ATmega48A/88A/168A. 8-bit Microcontrollers. Application Note. 1 Introduction

32Kbytes on-chip SRAM. Viterbi decoding and CRC PRIME compliant 128-bit AES encryption Channel sensing and collision pre-detection

Smart RF Device Family - Getting Started Guide. Features. Description. References ATAN0115 APPLICATION NOTE

AVR32015: AVR32 Studio getting started. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

Section 5 SERCOM. Tasks SPI. In this section you will learn:

SAM4 Reset Controller (RSTC)

AT17F Series. Application Note. Programming Circuits for AT17F Series Configurators with Xilinx FPGAs. 1. Introduction

Atmel AT697F. Rad-Hard 32-bit SPARC v8 Processor ERRATA SHEET. Active Errata List

AT697E. Application Note. Checking AT697E Code for Occurrence of LDF/FPOPd Instructions Sequence with a dependency on an Odd-Numbered Register

8-megabyte, 4-megabyte, and 2-megabyte 2.7-volt Only DataFlash Cards AT45DCB008D AT45DCB004D AT45DCB002D. Not Recommended for New Design

CAN Microcontrollers. Application Note. Migrating from T89C51CC01 to AT89C51CC03. Feature Comparison

Application Note. Microcontrollers. Using Keil FlashMon Emulator with AT89C51CC01/03 AT89C51CC01/ Summary. 2. Background overview

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

ATZB-SAMR21-XPRO. Preface. SmartConnect USER GUIDE

AVR097: Migration between ATmega128 and ATmega1281/ATmega bit Microcontrollers. Application Note. Features. 1 Introduction

ATDH2200E Programming Kit... User Guide

Atmel AVR1923: XMEGA-A3BU Xplained Hardware User Guide. 8-bit Atmel Microcontrollers. Application Note. Features. 1 Introduction

ATtiny817 QTouch Moisture Demo User Guide. Description. Features. AVR 8-bit Microcontrollers USER GUIDE

AVR42772: Data Logger Demo Application on XMEGA A1U Xplained Pro. Introduction. Features. AVR XMEGA Microcontrollers APPLICATION NOTE

AVR2015: RZRAVEN Quick Start Guide. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

EDBG. Description. Programmers and Debuggers USER GUIDE

ATWINC3400-XPRO. Preface. SmartConnect USER GUIDE

ATAVRAUTO User Guide

Native route discovery algorithm

APPLICATION NOTE. AT6486: Using DIVAS on SAMC Microcontroller. SMART ARM-Based Microcontroller. Introduction. Features

Transcription:

Atmel AVR1926: XMEGA-B1 Xplained Getting Started Guide Features Easy to reprogram with just a USB cable and a preprogrammed boot loader Easy to debug code with PDI-based debugger/emulator Can be used with Atmel AVR STK 600, Atmel AVR JTAGICE 3, ATMEL AVR JTAGICE mkii, and Atmel AVR ONE! 8-bit Atmel Microcontrollers Application Note 1 Introduction The Atmel AVR XMEGA -B1 Xplained evaluation kit is a hardware platform for evaluating the Atmel ATxmega128B1 microcontroller. The kit offers a range of features that enable the Atmel AVR XMEGA user to get started using AVR XMEGA peripherals right away and understand how to integrate the AVR XMEGA device in their own design. This getting started guide will walk you through all the basic steps needed to start using the XMEGA-B1 Xplained evaluation kit. Figure 1-1. XMEGA-B1 Xplained evaluation kit. Rev.

2 What is needed to get started? 2.1 Documentation for XMEGA-B1 Xplained To be able to run the preprogrammed code, you need the Atmel AVR XMEGA-B1 Xplained evaluation kit and a USB cable (Standard-A to Mini-B according to USB.org) to connect the board to a PC. To modify the example code or to write new code and compile it, you need a toolchain for Atmel AVR microcontrollers and an integrated development environment (IDE) to edit and debug code. In Atmel AVR Studio 5, Atmel provides an IDE and the Atmel AVR GNU Toolchain. Other IDEs and toolchains are also available, such as the IAR Embedded Workbench. If you also want to debug the code at runtime, you will need a debugger like the Atmel AVR JTAGICE 3, Atmel AVR JTAGICE mkii, or Atmel AVR ONE!. More information on these tools is available from the Atmel website. See the reference section later in this document for more details. The AVR1912: XMEGA-B1 Xplained Hardware User s Guide package includes all indepth information about the kit, such as schematics, BOM, assembly drawings, 3D plots, and more. The package is available from the Atmel website: www.atmel.com/xplained 2.2 Atmel AVR Software Framework Integrated in AVR Studio 5 is the AVR Software Framework (ASF), a collection of production-ready source code, written and optimized by experts and tested in hundreds of production designs. Using these peripheral drivers, communication stacks and application-specific libraries is a quick and effortless way to complete a project. The ASF uses a set of standard Application Programming Interfaces APIs across all Atmel AVR microcontrollers. They simplify how your application code interfaces with chip peripherals and communication interfaces, ensuring that your application code migrates even easier across the whole range of AVR microcontrollers. 2.3 IDEs for Atmel AVR microcontrollers 2.3.1 AVR Studio 5 AVR Studio 5 is a free IDE for developing applications for all AVR microcontrollers. It offers an advanced editor as well as programming and debugging support. Atmel AVR Studio 5 (free Atmel IDE) www.atmel.com/avrstudio 2.3.2 Embedded Workbench for Atmel AVR IAR Embedded Workbench is an integrated development environment with project management tools and editor. IAR Embedded Workbench for Atmel AVR http://www.iar.com/website1/1.0.1.0/107/1/ 2 Atmel AVR1926

Atmel AVR1926 2.4 Toolchain 2.4.1 AVR Assembler 2 2.4.2 AVR GNU Toolchain 2.4.3 IAR AVR Toolchain In order to build an application from the source code, a toolchain is needed, which includes required tools such as an assembler, compiler, and linker. The code for this kit is compatible with the Atmel AVR GNU and IAR AVR toolchains. Integrated in Atmel AVR Studio 5 is the Atmel AVR assembler. The assembler works on source files containing instruction mnemonics, labels and directives. It generates fixed code allocations, consequently no linking is necessary. Integrated in AVR Studio 5 is the AVR GNU toolchain extension. It includes all the necessary tools, such as C/C++ compiler, assembler and linker, for AVR application development. AVR GNU Toolchain (free C/C++ compiler) http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725 This is a commercial toolchain that includes all the necessary tools, such as C/C++ compiler, assembler, and linker, for AVR application development. A 30-day evaluation version as well as a 4k (code size limited) kick-start version is available from the IAR website. IAR Embedded Workbench for Atmel AVR http://www.iar.com/website1/1.0.1.0/107/1/ 2.5 Programmers and debuggers Programmers and debuggers are needed when either the application is programmed without using the boot loader or when debugging support is needed. Several different tools are available that can be used directly with the Atmel AVR Xplained kit. The most common tools are described in the following chapters. AVR Studio 5 manages all the following programmers/debuggers. 2.5.1 AVR JTAGICE 3 2.5.2 AVR JTAGICE mkii Atmel AVR JTAGICE3 is a mid-range debug/programming tool that can be used for programming and debugging of Atmel 8-bit and 32-bit AVR microcontrollers and kits including the Atmel AVR XMEGA-B1 Xplained kit. AVR JTAGICE 3 (on-chip programming and debugging tool) http://www.atmel.com/dyn/products/tools_card.asp?tool_id=17213 Atmel AVR JTAGICE mkii is a mid-range debug/programming tool that can be used for programming and debugging of Atmel 8-bit and 32-bit AVR microcontrollers and kits including the XMEGA-B1 Xplained kit. AVR JTAGICE mkii (on-chip programming and debugging tool) http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3353 3

2.5.3 AVR ONE! 2.6 FLIP Atmel AVR ONE! is a high-end debug/programming tool that can be used for programming and debugging of Atmel 8-bit and 32-bit AVR microcontrollers and kits including the Atmel AVR XMEGA-B1 Xplained kit. AVR ONE! (on-chip programming and debugging tool) http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4279 Atmel FLIP (FLexible In-system Programmer) is a flexible PC-application which lets the user program and configure Atmel's microcontroller devices in-system. This is a serial-based ISP programming utility that uses a preprogrammed bootloader in the microcontroller. It allows the user to program hexadecimal files into the Application Flash Section or set the security bits. FLIP can be invoked from Atmel AVR Studio 5 as an external tool. FLIP is available for free download from: http://atmel.com/dyn/products/tools_card.asp?tool_id=3886 4 Atmel AVR1926

Atmel AVR1926 3 Board overview Figure 3-1 shows the features available on the board. For more information on the Atmel AVR XMEGA-B1 Xplained hardware, take a look at the Atmel application note AVR1912: XMEGA-B1 Xplained Hardware User s Guide. Figure 3-1. Overview of the XMEGA-B1 Xplained kit. 5

4 Connecting the board 4.1 Power WARNING Connect a USB cable between the board and a PC or a USB power supply to power it up. That is all that is needed. When power is applied, the Power LED will light up green. Do not power the board without having the jumper attached next to the USB connector or an ammeter mounted. Otherwise, the device may be damaged by power sourcing through I/O pins. The power measurement header is located next to the USB connector, as shown in Figure 3-1. 4.2 Connecting AVR JTAGICE 3 The dark blue PDI adaptor (ref. A08-0735) on the Atmel AVR JTAGICE 3 probe has to be used when connecting to the Atmel AVR XMEGA-B1 Xplained board. Take a look at Figure 4-1 to see how the connection should be made. Figure 4-1. Connecting the AVR JTAGICE 3 to the XMEGA-B1 Xplained board. 6 Atmel AVR1926

4.3 Connecting AVR JTAGICE mkii Atmel AVR1926 The grey connector on the Atmel AVR JTAGICE mkii probe has to be used when connecting to the Atmel AVR XMEGA-B1 Xplained board. See Figure 4-2 for reference on how to make this connection. Figure 4-2. Connecting the AVR JTAGICE mkii to the XMEGA-B1 Xplained board. 4.4 Connecting AVR ONE! Standoff Adaptor nr.3 JTAG/ISP ref. A08-0254. The green standoff adaptor nr.3 (ref. A08-0254) on the Atmel AVR ONE! probe has to be used when connecting to the XMEGA-B1 Xplained board as shown in Figure 4-3. 7

Figure 4-3. Connecting the Atmel AVR ONE! debugger to the Atmel AVR XMEGA-B1 Xplained board. 8 Atmel AVR1926

5 Programming the kit 5.1 Programming via AVR Studio tools Atmel AVR1926 Both preprogrammed DFU boot loader and application software are provided in the Atmel AVR XMEGA-B1 Xplained kit. To program your own application, two ways are proposed: 1. Programming via Atmel AVR Studio 5 and Atmel AVR tools. 2. Programming via the DFU boot loader. Invoke AVR Studio 5. Select AVR Programming in Tools menu. Select your tool (ex: Atmel AVR JTAGICE mkii), Atmel ATxmega128B1 as device and PDI as interface then press Apply. Enter your file and then press Program. WARNING If a boot loader is flashed in the device (default configuration), this method of programming your application erases it. Before programming your application, the fuses configuration must be checked and changed if necessary, particularly the BOOTRST fuse that must be set to APPLICATION. 9

5.2 Programming via the DFU boot loader This method of programming allows the application and the boot loader to coexist. The preprogrammed DFU boot loader is located in the Boot Loader Flash Section of the on-chip flash memory; it manages the USB communication protocol and mainly performs read/write operations to the on-chip memories (flash/eeprom). Two ways are available to evoke the boot loader on the Atmel AVR XMEGA-B1 Xplained board: Automatic if the Application Flash Section of the Atmel ATxmega128B1 is blank when power is applied Forced if pin 6 on J1 is shorted to GND when power is applied Figure 5-1. USB DFU boot process. 5.2.1 Prerequisite 5.2.2 Step-by-step guide To program the device, you need the DFU programming application Flip, which can be found under the FLIP installation directory. You need to install the most recent version (ver. 3.4.3). Start Flip. This can be also done through the desktop start menu: All Programs ->... -> Flip 3.4.3 Select ATxmega128B1 from the device selection list available with the chip icon Select USB as communication media (available with the USB cable icon ) 10 Atmel AVR1926

Atmel AVR1926 Open the USB port to connect to the target Select the hexadecimal file to load NOTE The Atmel AVR XMEGA-B1 Xplained Demonstration hexadecimal file is available in the application note: AVR1619: XMEGA-B1 Xplained Demonstration. Select the Erase, Blank Check, Program and Verify operation check boxes. Then press the Run button. You should get confirmation in the bottom section of the window that the flash was successfully programmed and verified. Press Start Application button. 11

5.2.3 Restoring the boot loader Check that the application works (ex: a welcome message on the LCD) When the boot loader has been erased, it can be restored with any of the previously mentioned AVR programming tools. The Atmel ATxmega128B1 DFU boot loader hexadecimal file is available in the application note: AVR1916 - AVR ATxmega USB DFU Bootloader. Figure 5-2. ATxmega128B1 fuses configuration. NOTE 12 Atmel AVR1926 The boot loader section is protected, and can only be erased with an external programmer.

Figure 5-3. Atmel ATxmega128B1 boot loader programming. Atmel AVR1926 NOTE You should get confirmation in the bottom section of the window that the flash was successfully programmed and verified. 13

6 Example applications 6.1 Preprogrammed application firmware 6.2 More example projects and tutorials Several examples are available in ASF included in the Atmel AVR Studio 5: http://www.atmel.com/microsite/avr_studio_5/default.asp?category_id=163&family_id =607. Each example has full source code with documentation to get started quickly. The examples can be compiled by using either GCC (included in AVR Studio 5) or IAR compilers. The Atmel ATxmega128B1 microcontroller on the Atmel AVR XMEGA-B1 Xplained kit is preprogrammed with a USB bootloader and demonstration firmware. The demonstration firmware offers a USB HID demonstration application that performs communication between a USB host application and XMEGA-B1 Xplained demonstration kit based on USB generic HID class implementation. It also performs ADC conversions and runs the LCD display. AVR1916: XMEGA-B1 Xplained Demonstration application note. For further exploration of the Atmel ATxmega128B1, please see the application notes that are applicable for the device. There are also several example projects and drivers available in the ASF modules for the Atmel AVR XMEGA A & B series. For basic training to get familiar with the ATxmega128B1 device, Atmel application notes AVR1500 to AVR1510 are a good starting point. These application notes are available from the Atmel website: http://www.atmel.com/dyn/products/documents.asp?category_id=163&family_id=607 &subfamily_id=1965 14 Atmel AVR1926

Atmel AVR1926 7 References 7.1 IAR Compiler Atmel AVR Xplained http://www.atmel.com/products/avr/xplain.asp?category_id=163&family_id=607 Atmel AVR Studio 5 http://www.atmel.com/microsite/avr_studio_5/default.asp?category_id=163&family_id =607 This is a commercial C/C++ compiler available for Atmel AVR 8-bit MCUs. A 30-day evaluation version as well as a 4k (code size limited) kick-start version is available from the IAR website: IAR Embedded Workbench for Atmel AVR http://www.iar.com/website1/1.0.1.0/107/1/ 7.2 Atmel AVR Software Framework This is a large library of drivers and code that is available for download and free use from the Atmel website: AVR Software Framework (ASF) http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4192&source=redirect 15

EVALUATION BOARD/KIT IMPORTANT NOTICE This evaluation board/kit is intended for use for FURTHER ENGINEERING, DEVELOPMENT, DEMONSTRATION, OR EVALUATION PURPOSES ONLY. It is not a finished product, and may not (yet) comply with some or any technical or legal requirements that are applicable to finished products, including, without limitation, directives regarding electromagnetic compatibility, recycling (WEEE), FCC, CE, or UL (except as may be otherwise noted on the board/kit). Atmel supplied this board/kit AS IS, without any warranties, with all faults, at the buyer s and further users sole risk. The user assumes all responsibility and liability for proper and safe handling of the goods. Further, the user indemnifies Atmel from all claims arising from the handling or use of the goods. Due to the open construction of the product, it is the user s responsibility to take any and all appropriate precautions with regard to electrostatic discharge and any other technical or legal concerns. EXCEPT TO THE EXTENT OF THE INDEMNITY SET FORTH ABOVE, NEITHER USER NOR ATMEL SHALL BE LIABLE TO EACH OTHER FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES. No license is granted under any patent right or other intellectual property right of Atmel covering or relating to any machine, process, or combination in which such Atmel products or services might be or are used. Mailing Address: Atmel Corporation, 2325 Orchard Parkway, San Jose, CA 95131. Copyright 2011, Atmel Corporation. 16 Atmel AVR1926

Atmel AVR1926 8 Table of contents Features... 1 1 Introduction... 1 2 What is needed to get started?... 2 2.1 Documentation for XMEGA-B1 Xplained... 2 2.2 Atmel AVR Software Framework... 2 2.3 IDEs for Atmel AVR microcontrollers... 2 2.3.1 AVR Studio 5... 2 2.3.2 Embedded Workbench for Atmel AVR... 2 2.4 Toolchain... 3 2.4.1 AVR Assembler 2... 3 2.4.2 AVR GNU Toolchain... 3 2.4.3 IAR AVR Toolchain... 3 2.5 Programmers and debuggers... 3 2.5.1 AVR JTAGICE 3... 3 2.5.2 AVR JTAGICE mkii... 3 2.5.3 AVR ONE!... 4 2.6 FLIP... 4 3 Board overview... 5 4 Connecting the board... 6 4.1 Power... 6 4.2 Connecting AVR JTAGICE 3... 6 4.3 Connecting AVR JTAGICE mkii... 7 4.4 Connecting AVR ONE!... 7 5 Programming the kit... 9 5.1 Programming via AVR Studio tools... 9 5.2 Programming via the DFU boot loader... 10 5.2.1 Prerequisite... 10 5.2.2 Step-by-step guide... 10 5.2.3 Restoring the boot loader... 12 6 Example applications... 14 6.1 Preprogrammed application firmware... 14 6.2 More example projects and tutorials... 14 7 References... 15 7.1 IAR Compiler... 15 7.2 Atmel AVR Software Framework... 15 8 Table of contents... 17 17

Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: (+1)(408) 441-0311 Fax: (+1)(408) 487-2600 www.atmel.com Atmel Asia Limited Unit 01-5 & 16, 19F BEA Tower, Milennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon HONG KONG Tel: (+852) 2245-6100 Fax: (+852) 2722-1369 Atmel Munich GmbH Business Campus Parkring 4 D-85748 Garching b. Munich GERMANY Tel: (+49) 89-31970-0 Fax: (+49) 89-3194621 Atmel Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chou-ku, Tokyo 104-0033 JAPAN Tel: (+81) 3523-3551 Fax: (+81) 3523-7581 2011 Atmel Corporation. All rights reserved. Atmel, Atmel logo and combinations thereof, AVR, AVR Studio, STK, XMEGA, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY 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 DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.

Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Atmel: ATXMEGAB1-XPLD