Atmel AVR ONE! User Manual
Atmel AVR ONE! User Manual

Atmel AVR ONE! User Manual

Programmers and debuggers
Hide thumbs Also See for AVR ONE!:
Table of Contents

Advertisement

Quick Links

Programmers and Debuggers
AVR ONE!
USER GUIDE

The Atmel AVR ONE! Debugger

®
The Atmel
AVR ONE! is a powerful development tool for on-chip debugging
®
and programming of all Atmel AVR
8- and 32-bit MCU devices. It supports:
Atmel-32222A-AVR-ONE!_User Guide-06/2016

Advertisement

Table of Contents

Troubleshooting

loading
Need help?

Need help?

Do you have a question about the AVR ONE! and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Atmel AVR ONE!

  • Page 1: The Atmel Avr One! Debugger

    Programmers and Debuggers AVR ONE! USER GUIDE The Atmel AVR ONE! Debugger ® The Atmel AVR ONE! is a powerful development tool for on-chip debugging ® and programming of all Atmel AVR 8- and 32-bit MCU devices. It supports: Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 2 JTAG and PDI 2- wire interfaces ® ® • Programming (JTAG and SPI) and debugging of all Atmel megaAVR and Atmel tinyAVR microcontrollers with OCD support on both JTAG or debugWIRE interfaces Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 3: Table Of Contents

    Firmware Release History......................8 3. Known Issues......................14 3.1. General............................14 3.2. Atmel AVR XMEGA OCD Specific Issues.................. 14 3.3. Atmel megaAVR OCD and Atmel tinyAVR OCD Specific Issues..........14 3.4. Atmel AVR 32-bit Microcontroller Specific Issues...............14 4. Getting Started......................15 4.1. Kit Contents..........................15 4.2.
  • Page 4 6.3. Atmel AVR OCD Implementations....................36 6.3.1. Atmel AVR UC3 OCD (JTAG and aWire Physical)............36 6.3.2. Atmel AVR XMEGA OCD (JTAG and PDI Physical)............37 6.3.3. Atmel megaAVR OCD (JTAG)..................37 6.3.4. Atmel megaAVR / tinyAVR OCD (debugWIRE)............37 7. Atmel AVR ONE! Hardware Description..............38 7.1.
  • Page 5: Introduction

    Introduction 1.1. Introduction to the Atmel AVR ONE! The Atmel AVR ONE! is a powerful development tool for on-chip debugging and programming of all Atmel AVR 8- and 32-bit microcontrollers. It supports: • Programming and on-chip debugging of all AVR UC3 microcontrollers and processors on both JTAG and aWire interfaces •...
  • Page 6: Atmel Avr One! Features

    Fully compatible with Atmel Studio, AVR32 Studio, AVR Studio 4, and AVR Studio 5 • Supports programming and debugging of all Atmel AVR UC3 and AVR XMEGA devices, and all Atmel megaAVR and Atmel tinyAVR devices with OCD • Supports AUX trace on all UC3 devices with AUX port •...
  • Page 7: System Requirements

    1.3. System Requirements The Atmel AVR ONE! unit requires that a front-end debugging environment (AVR32 Studio or AVR Studio 4.15 or later, or Atmel Studio) and associated utilities are installed on your computer. For system requirements of these packages, consult www.atmel.com.
  • Page 8: Release History, New Features

    AVR32 image: 4.1 (0x0401) XMEGA image: 3.2 (0x0302) TMEGA image: 2.1 (0x0201) New features • Support for high SUT values on Atmel AVR XMEGA devices Fixes • aWire auto-baud calculation improvements • Fixed Atmel AVR XMEGA flash page programming error (seen at low voltages) •...
  • Page 9 None None Fixes Added support for special HVE MUL • Added support for shutdown instructions mode (Atmel AVR UC3 L) • Fixed device disconnecting when no FPGA image is loaded ® (on certain Linux versions) Atmel AVR ONE! [USER GUIDE]...
  • Page 10 None None Fixes None Fixed EVTO sensing on 10-pin JTAG connector. Release platform AVR Studio 4.18 SP1 AVR32 Studio 2.4.0 Firmware versions MCU: 0x040B AVR32 image: 0x0400 XMEGA image: 0x0300 TMEGA image: 0x0200 Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 11 MCU: 0x040B AVR32 image: 0x0400 XMEGA image: 0x0300 TMEGA image: 0x0200 New features None None Fixes Fixed Atmel AVR XMEGA EEPROM Fixed EVTO sensing on 10-pin JTAG read/write when EEPROM is memory connector. mapped. Release platform AVR32 Studio 2.3.1 Firmware versions...
  • Page 12 New features Support for Atmel tinyAVR and Atmel megaAVR devices Fixes Fixed reset line loading problem. Atmel AVR ONE! will not load the target reset line anymore as long as its power is switched on. Release platform AVR32 Studio 2.2...
  • Page 13 Fixed JTAG programming problem with JTAG clock set to 8MHz • Fixed software breakpoint bug resulting in ghost breakpoints • Fixed single stepping bug for Atmel AVR XMEGA (step out) Release platform AVR Studio 4.15 AVR32 Studio 2.1.0 Firmware versions MCU: 2.07...
  • Page 14: Known Issues

    • When the Atmel AVR ONE! is connected to the target, but is not powered, it will passively load the RESET line. This may cause the target device to be held in reset unintentionally. Always power up the emulator when it is connected to a target device.
  • Page 15: Getting Started

    Getting Started 4.1. Kit Contents The Atmel AVR ONE! kit contains these items: • AVR ONE! unit with probe • USB cable (1.8m, high-speed) • EU and US mains power cables • Power supply • AVR ONE! test adapter with 10-pin cable attached •...
  • Page 16: Powering The Atmel Avr One

    Connecting to the Host Computer Before connecting up the Atmel AVR ONE! for the first time, be sure to install the USB driver on the host computer. This is done automatically when installing the front-end software provided free by Atmel. See www.atmel.com...
  • Page 17 Figure 4-2. Installing the AVR ONE! USB Driver Figure 4-3. Installing the AVR ONE! USB Driver If not automatically detected, point the wizard to the device driver (provided by Jungo) called avrone.inf, which is stored in the <windows_root>\inf folder. Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 18: Programming And Debugging

    Your AVR ONE! is now ready to use. 4.5. Programming and Debugging The simplest way to get started with your Atmel AVR ONE! using Atmel Studio is to build one of the many example projects included with Atmel Studio. Atmel AVR ONE! [USER GUIDE]...
  • Page 19: Connecting The Atmel Avr One

    Figure 6-2 JTAG Header Pinout. Be sure to use the correct orientation of the 10-pin header when connecting the Atmel AVR ONE! to the target application PCB. The stand-off adapters (provided) can be used to connect the AVR ONE! probe to both 100-mil and 50-mil target application connectors.
  • Page 20: Connecting To An Awire Target

    5.2. Connecting to an aWire Target The Atmel AVR ONE! can interface with the Atmel AVR UC3 L family of devices using the single-wire 'aWire' interface. The recommended pinout for the aWire interface is shown in Figure 6-5 aWire Header Pinout.
  • Page 21 Pin 3 (TDO) DATA Grey Pin 4 (VTref) VTref Purple Pin 5 (TMS) Blue Pin 6 (nSRST) Green Pin 7 (Not connected) Yellow Pin 8 (nTRST) Orange Pin 9 (TDI) Pin 10 (GND) Brown Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 22: Connecting To A Pdi Target

    Figure 6-6 PDI Header Pinout. Be sure to use the correct orientation of the 6-pin header when connecting the Atmel AVR ONE! to the target application PCB. The stand-off adapters (provided) can be used to connect the AVR ONE! probe to both 100-mil and 50-mil target application connectors.
  • Page 23: Connecting To A Debugwire Target

    Figure 6-7 debugWIRE (SPI) Header Pinout. Be sure to use the correct orientation of the 6-pin header when connecting the Atmel AVR ONE! to the target application PCB. The stand-off adapters (provided) can be used to connect the AVR ONE! probe to both 100-mil and 50-mil target application connectors.
  • Page 24: Connecting To An Spi Target

    Figure 6-8 SPI Header Pinout. Be sure to use the correct orientation of the 6-pin header when connecting the Atmel AVR ONE! to the target application PCB. The stand-off adapters (provided) can be used to connect the AVR ONE! probe to both 100-mil and 50-mil target application connectors.
  • Page 25: Using The Atmel Avr One! With Atmel Stk500

    ® The Atmel STK 500 starter kit can be used to house Atmel AVR devices to which the AVR ONE! can connect through JTAG, debugWIRE, and SPI interfaces. When connecting to a JTAG target, simply use the ATSTK500_JTAG_ADAPTER. If you do not have an STK500 JTAG adapter available, the 10-pin multicolored "squid"...
  • Page 26 Connecting to debugWIRE and SPI targets is done using the same stand-off adapter. When using the debugWIRE interface, be sure to remove the STK500's RESET jumper to allow the reset line to be driven as required. Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 27 Alternatively, the AVR ONE! can be connected to any target interface using the 10-pin "squid" cable (provided). Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 28: Using The Atmel Avr One! With Atmel Stk600

    5.7. Using the Atmel AVR ONE! with Atmel STK600 The Atmel STK600 starter kit can be used to house Atmel AVR devices to which the AVR ONE! can connect through the JTAG interface. Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 29 When connecting to a JTAG target, simply use the 10-pin 100mil stand-off adapter (provided) to connect to the JTAG connector on the STK600. Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 30 When connecting to a PDI, debugWIRE, or SPI target, simply use the 6-pin 100mil stand-off adapter (provided) to connect to the SPI/PDI connector. Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 31: On-Chip Debugging

    The Atmel AVR ONE! is not a traditional Emulator. Instead, the AVR ONE! interfaces with the internal On- chip Debug system inside the target Atmel AVR device, providing a mechanism for monitoring and controlling its execution.
  • Page 32: Jtag

    The JTAG interface consists of a 4-wire Test Access Port (TAP) controller that is compliant with the IEEE 1149.1 standard. The IEEE standard was developed to provide an industry-standard way to efficiently test circuit board connectivity (Boundary Scan). Atmel AVR devices have extended this functionality to include full Programming and On-Chip Debugging support.
  • Page 33: Auxiliary (Aux) Physical (Including Jtag)

    • The total IR length (instruction bits before + Atmel AVR IR length + instruction bits after) is limited to a maximum of 240 bits Daisy chaining example: TDI -> ATmega1280 -> ATxmega128A1 -> ATUC3A0512 -> TDO.
  • Page 34 Source Reset EVTI Event In EVTO Event Out MCKO Message Clock Out MSEO0 Message Start/End Out [0] MSEO1 Message Start/End Out [1] MDO0 Message Data Out [0] MDO1 Message Data Out [1] Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 35: Awire

    6.2.3. aWire The aWire interface makes use the /RESET wire of the Atmel AVR device to allow programming and debugging functions. A special enable sequence is transmitted by the Atmel AVR ONE!, which disables the default /RESET functionality of the pin.
  • Page 36: Debugwire

    6.2.5. debugWIRE The debugWIRE interface was developed by Atmel for use on low pin-count devices. Unlike the JTAG interface which uses four pins, debugWIRE makes use of just a single pin (RESET) for bi-directional half- duplex asynchronous communication with the debugger tool.
  • Page 37: Atmel Avr Xmega Ocd (Jtag And Pdi Physical)

    Atmel AVR XMEGA OCD (JTAG and PDI Physical) The Atmel AVR XMEGA OCD is otherwise known as PDI (Program and Debug Interface). Two physical interfaces (JTAG and PDI Physical) provide access to the same OCD implementation within the device. It supports the following features: •...
  • Page 38: Atmel Avr One! Hardware Description

    Atmel AVR ONE! Hardware Description 7.1. LEDs The Atmel AVR ONE! front panel has four LEDs which indicate the status of current debug or programming sessions. Figure 7-1. AVR ONE! LED Location Table 7-1. LEDs Icon Description Main power RED when main-board power is OK Target power GREEN when target power is OK.
  • Page 39: Rear Panel

    7.2. Rear Panel The rear panel of the Atmel AVR ONE! houses the DC jack, power switch, and USB connector. A sticker on the upper section shows the serial number and date of manufacture. When seeking technical support, include these details.
  • Page 40: Architecture Description

    Power is supplied via the 12V DC connector. The USB port is used for host communications only, and does not draw current from the host. At the heart of the Atmel AVR ONE! main-board is the ATmega1280 AVR microcontroller, which is coupled to an FPGA for target interface signal processing. The target interface is clocked by an external clock generator capable of providing a frequency in the range of approximately 1kHz to 64MHz.
  • Page 41 For best results it is recommended to correctly terminate the high-speed AUX signals on the target application PCB. For further information on how to connect the probe to the target application, see section Connecting the ONE!. Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 42: Software Integration

    Software Integration 8.1. Atmel Studio The Atmel AVR ONE! can be used in conjunction with Atmel Studio for programming and debugging of all Atmel AVR 8- and 32-bit microcontrollers. For more information, consult the Atmel Studio user guide. Atmel AVR ONE! [USER GUIDE]...
  • Page 43: Command Line Utility

    AVR ONE!. During the Atmel Studio installation a shortcut called "Atmel Studio 7.0. Command Prompt" were created in the Atmel folder on the Start menu. By double clicking this shortcut a command prompt will be opened and programming commands can be entered. The command line utility is installed in the Atmel Studio installation path in the folder Atmel/Atmel Studio 7.0/atbackend/.
  • Page 44: Advanced Debugging Techniques

    The OCD debugger makes use of the memory mapped OCDR register to access the internals of the Atmel AVR target device while it is in stopped mode. When in run mode, the application running on the target can write a value to this register. The OCD system will then signal this to the debugger, which then fetches the data and passes it to the GUI front-end, where it is displayed.
  • Page 45: Debugwire Targets

    Instead, the debugger must make use of the Atmel AVR BREAK instruction. This instruction can be placed in FLASH, and when it is loaded for execution it will cause the AVR CPU to enter stopped mode.
  • Page 46: Special Considerations

    • One data breakpoint with address range, value range or both Atmel Studio will tell you if the breakpoint can't be set, and why. Data breakpoints have priority over program breakpoints, if software breakpoints are available. External reset and PDI physical The PDI physical interface uses the reset line as clock.
  • Page 47: Atmel Megaavr Ocd And Debugwire Ocd

    Accessing 16-bit Registers The Atmel AVR peripherals typically contain several 16-bit registers that can be accessed via the 8-bit data bus (e.g.: TCNTn of a 16-bit timer). The 16-bit register must be byte accessed using two read or write operations.
  • Page 48: Atmel Megaavr Ocd (Jtag)

    JTD bit. This will render code un-debuggable, and should not be done when attempting a debug session. If such code is already executing on the Atmel AVR device when starting a debug session, the Atmel AVR ONE! will assert the /RESET line while connecting. If this line is wired correctly, it will force the target AVR device into reset, thereby allowing a JTAG connection.
  • Page 49: Debugwire Ocd

    Alternately, use the debugWIRE interface itself to temporarily disable itself, which will allow SPI programming to take place, provided that the SPIEN fuse is set. Note:  If the SPIEN fuse was NOT left programmed, Atmel Studio will not be able to complete this operation, and high-voltage programming must be used.
  • Page 50: Atmel Avr Uc3 Ocd

    Atmel AVR UC3 OCD On some Atmel AVR UC3 devices the JTAG port is not enabled by default. When using these devices it is essential to connect the RESET line so that the Atmel AVR ONE! can enable the JTAG interface.
  • Page 51: Troubleshooting

    12.1. Self-test The Atmel AVR ONE! is shipped with a self-test adapter with an IDC cable. If it for any reason is suspected that the AVR ONE! cable and probe are not functioning correctly, a self-test can be run. The self-test adapter is a loopback adapter that enables the on-board MCU to perform diagnostics on the target communication circuitry.
  • Page 52: Launching

    The self-test is started from Atmel Studio by opening the Available Tools View (View > Available Atmel AVR Tools) and then right click the Atmel AVR ONE! that needs to be tested and select Self Test on the drop down menu.
  • Page 53 Target type/ Problem Possible causes Solution family Atmel Atmel AVR ONE! is detected JTAG: JTAG ENABLE Fuse JTAG: Use an other megaAVR, by Atmel Studio or other is not programmed programming interface to Atmel AVR software front-end, but it will...
  • Page 54 Maximum frequency vs. Operation Area as tinyAVR, described in the chapter Atmel AVR "Electrical Characteristics" in XMEGA, and the datasheet for the actual Atmel AVR part. Lower the frequency and/or increase the voltage. Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 55: Product Compliance

    The frequency and magnitude of the emissions will be determined by several factors, including layout and routing of the target application with which the product is used. Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 56: Revision History

    Revision History Doc Rev. Date Comments 32222A 06/2016 Initial document release. Atmel AVR ONE! [USER GUIDE] Atmel-32222A-AVR-ONE!_User Guide-06/2016...
  • Page 57 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...
  • Page 58 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Microchip ATAVRONEKIT...

Table of Contents