Pickit 3 In-Circuit Debugger/Programmer User's Guide for MPLAB X
Total Page:16
File Type:pdf, Size:1020Kb
PICkit™ 3 In-Circuit Debugger/Programmer User’s Guide For MPLAB® X IDE 2013 Microchip Technology Inc. DS52116A Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. • Microchip is willing to work with the customer who is concerned about the integrity of their code. • Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device Trademarks applications and the like is provided only for your convenience The Microchip name and logo, the Microchip logo, dsPIC, and may be superseded by updates. It is your responsibility to FlashFlex, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, ensure that your application meets with your specifications. PICSTART, PIC32 logo, rfPIC, SST, SST Logo, SuperFlash MICROCHIP MAKES NO REPRESENTATIONS OR and UNI/O are registered trademarks of Microchip Technology WARRANTIES OF ANY KIND WHETHER EXPRESS OR Incorporated in the U.S.A. and other countries. IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor, INCLUDING BUT NOT LIMITED TO ITS CONDITION, MTP, SEEVAL and The Embedded Control Solutions QUALITY, PERFORMANCE, MERCHANTABILITY OR Company are registered trademarks of Microchip Technology FITNESS FOR PURPOSE. Microchip disclaims all liability Incorporated in the U.S.A. arising from this information and its use. Use of Microchip Silicon Storage Technology is a registered trademark of devices in life support and/or safety applications is entirely at Microchip Technology Inc. in other countries. the buyer’s risk, and the buyer agrees to defend, indemnify and Analog-for-the-Digital Age, Application Maestro, BodyCom, hold harmless Microchip from any and all damages, claims, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, suits, or expenses resulting from such use. No licenses are dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, conveyed, implicitly or otherwise, under any Microchip ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial intellectual property rights. Programming, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE, rfLAB, Select Mode, SQI, Serial Quad I/O, Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA and Z-Scale are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. GestIC and ULPP are registered trademarks of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. © 2013, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. ISBN: 978-1-62077-008-5 QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and CERTIFIED BY DNV Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company’s quality system processes and procedures are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping == ISO/TS 16949 == devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. DS52116A-page 2 2013 Microchip Technology Inc. Object of Declaration: PICkit™3 In-Circuit Debugger/Programmer 2013 Microchip Technology Inc. DS52116A-page 3 MPLAB® X PICkit™ 3 User’s Guide NOTES: DS52116A-page 4 2013 Microchip Technology Inc. MPLAB® X PICkit™ 3 USER’S GUIDE Table of Contents Preface ........................................................................................................................... 7 Getting Started Chapter 1. About the In-Circuit Debugger/Programmer 1.1 Introduction ................................................................................................... 13 1.2 PICkit 3 In-Circuit Debugger/Programmer Defined ...................................... 13 1.3 How the PICkit 3 In-Circuit Debugger/Programmer Helps You .................... 16 1.4 PICkit 3 In-Circuit Debugger/Programmer Components .............................. 16 Chapter 2. Operation 2.1 Introduction ................................................................................................... 17 2.2 Tools Comparison ........................................................................................ 18 2.3 PICkit 3 vs. PICkit 2 ...................................................................................... 18 2.4 Debugger to Target Communication ............................................................ 19 2.5 Communication Connections ....................................................................... 21 2.6 Debugging .................................................................................................... 24 2.7 Requirements for Debugging ....................................................................... 25 2.8 Programming ................................................................................................ 27 2.9 Resources Used by the Debugger ............................................................... 27 Chapter 3. Debugger Usage 3.1 Introduction ................................................................................................... 29 3.2 Installation and Setup ................................................................................... 29 3.3 Common Debug Features ............................................................................ 30 3.4 Connecting the Target .................................................................................. 30 3.5 Setting Up the Target Board ......................................................................... 31 3.6 Setting Up MPLAB X IDE ............................................................................. 33 3.7 Starting and Stopping Debugging ................................................................ 33 3.8 Viewing Processor Memory and Files .......................................................... 33 Chapter 4. PICkit 3 Debug Express 4.1 Introduction ................................................................................................... 35 4.2 PICkit 3 Debug Express Kit Contents ........................................................... 35 4.3 Installing the Hardware and Software .......................................................... 35 2013 Microchip Technology Inc. DS52116A-page 5 MPLAB® X PICkit™ 3 User’s Guide Chapter 5. PICkit 3 Programmer-To-Go 5.1 Introduction ................................................................................................... 37 5.2 USB Power for PICkit 3 Programmer-To-Go ................................................ 37 5.3 PICkit 3 Programmer-To-Go Supported Devices ......................................... 38 5.4 Setting up PICkit 3 for Programmer-To-Go Operation ................................. 39 5.5 Using PICkit 3 Programmer-To-Go .............................................................. 42 5.6 Exiting Programmer-To-Go Mode ................................................................ 43 Troubleshooting Chapter 6. Troubleshooting First Steps 6.1 Introduction ................................................................................................... 47 6.2 The 5 Questions to Answer First .................................................................. 47 6.3 Top 10 Reasons Why You Can’t Debug ...................................................... 47 6.4 Other Things to Consider ............................................................................. 48 Chapter 7. Frequently Asked Questions (FAQs) 7.1 Introduction ................................................................................................... 49 7.2 How Does It Work ........................................................................................ 49 7.3 What’s Wrong ............................................................................................... 50 Chapter 8. Error Messages 8.1 Introduction ................................................................................................... 53 8.2 Specific Error Messages .............................................................................