User Guide
© 2023 Microchip Technology Inc. and its subsidiaries
DS-50003529A - 2
Table of Contents
Notice to Development Tools Customers.......................................................................................................................... 1
1. Preface............................................................................................................................................................................ 4
1.1. Conventions Used in This Guide...................................................................................................................... 4
1.2. Recommended Reading.................................................................................................................................... 4
2. About the Debugger......................................................................................................................................................6
2.1. Advantages......................................................................................................................................................... 6
2.2. Components....................................................................................................................................................... 7
2.3. Block Diagram.................................................................................................................................................... 8
2.4. Using MPLAB® ICD 5 with MPLAB X IDE and MPLAB IPE............................................................................... 8
3. Connections................................................................................................................................................................. 10
3.1. Power and Self Test......................................................................................................................................... 10
3.2. PC Connections................................................................................................................................................ 11
3.3. Target Connections..........................................................................................................................................13
4. Operation..................................................................................................................................................................... 29
4.1. MPLAB X IDE Debugging................................................................................................................................. 29
4.2. SAM and PIC32C Arm Devices - On-Chip Debugging...................................................................................29
4.3. AVR Devices - On-Chip Debugging (OCD)......................................................................................................29
4.4. PIC MCU/dsPIC DSC - On-Chip Debugging....................................................................................................38
5. Debugger Features......................................................................................................................................................46
5.1. USB CDC Virtual COM Port..............................................................................................................................46
5.2. Data Gateway Interface...................................................................................................................................46
5.3. CI/CD Support...................................................................................................................................................48
5.4. SAM ITM/SWO Trace........................................................................................................................................ 49
5.5. SAM (ARM) - Trace and Proling.....................................................................................................................55
5.6. Debugger Polling..............................................................................................................................................56
5.7. Power Monitor..................................................................................................................................................57
6. Troubleshooting First Steps....................................................................................................................................... 60
6.1. Some Questions to Answer First....................................................................................................................60
6.2. Top Reasons Why You Can't Debug............................................................................................................... 60
6.3. General Considerations...................................................................................................................................61
6.4. How to Use the Hardware Tool Emergency Boot Firmware Recovery Utility........................................... 62
7. Frequently Asked Questions (FAQ)............................................................................................................................63
7.1. How Does It Work?...........................................................................................................................................63
7.2. What's Wrong?..................................................................................................................................................63
8. Error Messages............................................................................................................................................................65
8.1. Types of Error Messages................................................................................................................................. 65
8.2. General Corrective Actions............................................................................................................................. 71
9. Debugger Function Summary....................................................................................................................................73
9.1. Debugger Selection and Switching................................................................................................................ 73