96
Programmers and Debuggers Power Debugger USER GUIDE Atmel-42696D-Power-Debugger_User Guide-10/2016

USER GUIDE · PDF file · 2016-11-22For data polling functionality we need to enable the Code Profiling interface. Atmel Power Debugger [USER GUIDE] Atmel-42696D-Power-Debugger_User

Embed Size (px)

Citation preview

  • Programmers and Debuggers

    Power Debugger

    USER GUIDE

    Atmel-42696D-Power-Debugger_User Guide-10/2016

  • Table of Contents

    1. The Atmel Power Debugger...................................................................................... 41.1. Kit Contents..................................................................................................................................5

    2. Getting Started with the Power Debugger................................................................. 6

    3. Connecting the Power Debugger...............................................................................83.1. Connecting to AVR and SAM Target Devices...............................................................................8

    4. Detailed Use Cases.................................................................................................104.1. Low-power Application............................................................................................................... 10

    4.1.1. Requirements.............................................................................................................. 104.1.2. Initial Hardware Setup................................................................................................. 104.1.3. Connections.................................................................................................................124.1.4. Disabling the debugWIRE Interface.............................................................................134.1.5. Disabling On-board Power Supply on the Xplained Mini............................................. 144.1.6. Starting with Simple Current Measurements............................................................... 144.1.7. Launching Atmel Data Visualizer.................................................................................164.1.8. Basic Current Measurement........................................................................................ 174.1.9. LED Blinking................................................................................................................ 184.1.10. Reducing the Clock Frequency....................................................................................194.1.11. Using Sleep Mode....................................................................................................... 214.1.12. Using Power Down Mode............................................................................................ 234.1.13. Using Code Instrumentation........................................................................................ 27

    4.2. USB-powered Application...........................................................................................................314.2.1. Requirements.............................................................................................................. 314.2.2. Initial Hardware Setup................................................................................................. 314.2.3. Connections.................................................................................................................324.2.4. VOUT Target Supply....................................................................................................344.2.5. Using Both Measurement Channels............................................................................ 364.2.6. Launching Atmel Data Visualizer.................................................................................374.2.7. Two Channel Measurement.........................................................................................374.2.8. Scaling and Scrolling a Graph..................................................................................... 384.2.9. Mass Storage Example................................................................................................384.2.10. GPIO Instrumentation.................................................................................................. 404.2.11. Code Correlation..........................................................................................................424.2.12. Data Polling................................................................................................................. 454.2.13. Application Interaction Using Dashboard Controls...................................................... 51

    5. On-chip Debugging..................................................................................................575.1. Introduction.................................................................................................................................575.2. SAM Devices with JTAG/SWD................................................................................................... 57

    5.2.1. ARM CoreSight Components...................................................................................... 575.2.2. JTAG Physical Interface...............................................................................................585.2.3. Connecting to a JTAG Target.......................................................................................605.2.4. SWD Physical Interface............................................................................................... 61

    Atmel Power Debugger [USER GUIDE]Atmel-42696D-Power-Debugger_User Guide-10/2016

    2

  • 5.2.5. Connecting to an SWD Target..................................................................................... 615.2.6. Special Considerations................................................................................................ 62

    5.3. AVR UC3 Devices with JTAG/aWire...........................................................................................635.3.1. Atmel AVR UC3 On-chip Debug System..................................................................... 635.3.2. JTAG Physical Interface...............................................................................................635.3.3. Connecting to a JTAG Target.......................................................................................665.3.4. aWire Physical Interface.............................................................................................. 675.3.5. Connecting to an aWire Target.................................................................................... 675.3.6. Special Considerations................................................................................................ 685.3.7. EVTI / EVTO Usage.....................................................................................................69

    5.4. tinyAVR, megaAVR, and XMEGA Devices.................................................................................695.4.1. JTAG Physical Interface...............................................................................................705.4.2. Connecting to a JTAG Target.......................................................................................705.4.3. SPI Physical Interface..................................................................................................715.4.4. Connecting to an SPI Target........................................................................................725.4.5. PDI...............................................................................................................................735.4.6. Connecting to a PDI Target..........................................................................................735.4.7. UPDI Physical Interface...............................................................................................745.4.8. Connecting to a UPDI Target....................................................................................... 755.4.9. TPI Physical Interface..................................................................................................755.4.10. Connecting to a TPI Target.......................................................................................... 765.4.11. Advanced Debugging (AVR JTAG /debugWIRE devices)........................................... 765.4.12. megaAVR Special Considerations...............................................................................775.4.13. AVR XMEGA Special Considerations..........................................................................785.4.14. debugWIRE Special Considerations............................................................................795.4.15. debugWIRE Software Breakpoints.............................................................................. 805.4.16. Understanding debugWIRE and the DWEN Fuse....................................................... 815.4.17. TinyX-OCD (UPDI) Special Considerations.................................................................82

    6. Hardware Description.............................................................................................. 846.1. Overview.....................................................................................................................................846.2. Programming and Debugging.................................................................................................... 856.3. Analog Hardware........................................................................................................................85

    6.3.1. Analog Hardware Calibration.......................................................................................866.4. Target Voltage Supply (VOUT)................................................................................................... 866.5. Data Gateway Interface..............................................................................................................876.6. CDC Interface..........................................................................................