Programmers and

JTAGICE3

USER GUIDE

Introduction

The JTAGICE3 is a powerful development tool for debugging and programming ARM® Cortex®-M based Atmel® SAM and Atmel AVR® microcrontrollers with On-Chip Debug capability. • Programming and on-chip debugging of all Atmel AVR 32-bit on both JTAG and aWire interfaces • Programming and on-chip debugging of all Atmel AVR XMEGA® 8-bit Family devices on both JTAG and PDI 2-wire interfaces • Programming (JTAG, SPI, and UPDI) and debugging of all Atmel AVR 8-bit Microcontrollers with OCD support on JTAG, debugWIRE, or UPDI interfaces • Programming and debugging of all Atmel SAM ARM Cortex-M based microcontrollers on both SWD and JTAG interfaces (firmware version 3.0 and later)

Atmel-42634B-JTAGICE3_User Guide-10/2016 Table of Contents

Introduction...... 1

1. Features...... 4 1.1. Atmel JTAGICE3 Features...... 4 1.2. System Requirements...... 4

2. Getting Started with the Atmel JTAGICE3...... 5 2.1. Kit Contents...... 5 2.2. Assembling the Atmel JTAGICE3...... 5 2.3. Opening the Atmel JTAGICE3...... 7 2.4. Powering the Atmel JTAGICE3...... 8 2.5. Connecting to the Host Computer...... 8 2.6. USB Driver Installation...... 9 2.6.1. Windows...... 9

3. Connecting the Atmel JTAGICE3...... 11 3.1. Connecting to a JTAG Target...... 11 3.1.1. Using the JTAG 10-pin Connector...... 11 3.2. Connecting to an aWire Target...... 11 3.3. Connecting to a PDI Target...... 12 3.4. Connecting to a debugWIRE Target...... 13 3.5. Connecting to an SPI Target...... 14 3.6. Connecting to an SWD Target...... 15 3.7. Connecting to a UPDI Target...... 15 3.8. Using the Atmel JTAGICE3 with Atmel STK500...... 16 3.9. Using the Atmel JTAGICE3 with Atmel STK600...... 17

4. On-chip Debugging...... 18 4.1. Introduction to On-chip Debugging (OCD)...... 18 4.2. Physical Interfaces...... 18 4.2.1. JTAG...... 18 4.2.2. aWire...... 20 4.2.3. PDI...... 21 4.2.4. UPDI Physical Interface...... 21 4.2.5. debugWIRE...... 23 4.2.6. SPI...... 23 4.2.7. SWD...... 23 4.3. Atmel OCD Implementations...... 24 4.3.1. Atmel AVR UC3 OCD (JTAG and aWire)...... 24 4.3.2. Atmel AVR XMEGA OCD (JTAG and PDI physical)...... 24 4.3.3. Atmel megaAVR OCD (JTAG)...... 24 4.3.4. Atmel megaAVR/tinyAVR OCD (debugWIRE)...... 25 4.3.5. Atmel tinyX-OCD (UPDI)...... 25 4.3.6. ARM Coresight Components...... 26

Atmel JTAGICE3 [USER GUIDE] 2 Atmel-42634B-JTAGICE3_User Guide-10/2016 5. Hardware Description...... 27 5.1. LEDs...... 27 5.2. Rear Panel...... 27 5.3. Bottom Panel...... 27 5.4. Architecture Description...... 28 5.4.1. Atmel JTAGICE3 Main Board...... 28 5.4.2. Atmel JTAGICE3 Target Connectors...... 28 5.4.3. Atmel JTAGICE3 Target Connectors Part Numbers...... 29

6. Integration...... 30 6.1. Atmel Studio...... 30 6.1.1. Software Integration in Atmel Studio...... 30 6.1.2. Programming Options...... 30 6.1.3. Debug Options...... 30

7. Command Line Utility...... 32

8. Advanced Debugging Techniques...... 33 8.1. Atmel AVR UC3 Targets...... 33 8.1.1. EVTI/EVTO Usage...... 33 8.2. debugWIRE Targets...... 33 8.2.1. Software Breakpoints...... 33

9. Firmware Upgrade...... 35

10. Release History and Known Issues...... 36 10.1. What's New in Major Version 3...... 36 10.2. Firmware Release History...... 36 10.3. Known Issues Concerning the Atmel JTAGICE3...... 37 10.3.1. Atmel AVR XMEGA OCD Specific Issues...... 37 10.3.2. Atmel megaAVR OCD and Atmel tinyAVR OCD Specific Issues...... 37

11. Product Compliance...... 38 11.1. RoHS and WEEE...... 38 11.2. CE and FCC...... 38

12. Revision History...... 39

Atmel JTAGICE3 [USER GUIDE] 3 Atmel-42634B-JTAGICE3_User Guide-10/2016 1. Features

1.1. Atmel JTAGICE3 Features • Fully compatible with Atmel Studio • Support