MPLAB
®
ICD 4 USER’S GUIDE
2017 Microchip Technology Inc. DS50002596A-page 5
Table of Contents
Preface ........................................................................................................................... 7
Part 1 – Getting Started
Chapter 1. About the Debugger
1.1 Introduction ................................................................................................... 13
1.2 MPLAB ICD 4 In-Circuit Debugger Description ............................................ 13
1.3 MPLAB ICD 4 In-Circuit Debugger Advantages ........................................... 14
1.4 MPLAB ICD 4 In-Circuit Debugger Components ......................................... 15
1.5 MPLAB ICD 4 Block Diagram ....................................................................... 16
Chapter 2. Operation
2.1 Introduction ................................................................................................... 17
2.2 Debugger to Target Communication ............................................................ 18
2.3 Target Communication Connections ............................................................ 20
2.4 Debugging .................................................................................................... 22
2.5 Requirements for Debugging ....................................................................... 23
2.6 Programming ................................................................................................ 25
2.7 Resources Used by the Debugger ............................................................... 25
Chapter 3. Debugger Usage
3.1 Introduction ................................................................................................... 27
3.2 Installation and Setup ................................................................................... 27
3.3 Debug Tutorial .............................................................................................. 28
3.4 Quick Debug/Program Reference ................................................................ 28
3.5 Debugger Limitations ................................................................................... 28
3.6 Connecting the Target Board ....................................................................... 29
3.7 Setting Up the Target Board ......................................................................... 30
3.8 Starting and Stopping Debugging ................................................................ 31
3.9 Viewing Processor Memory and Files .......................................................... 31
3.10 Breakpoints and Stopwatch ........................................................................ 32
Part 2 – Troubleshooting
Chapter 4. Troubleshooting First Steps
4.1 Introduction ................................................................................................... 37
4.2 The Five Questions to Answer First ............................................................. 37
4.3 Top Reasons Why You Can’t Debug ........................................................... 38
4.4 Other Things to Consider ............................................................................. 39