Table of Contents
Notice to Development Tools Customers....................................................................................................... 1
1. Preface....................................................................................................................................................4
1.1. Conventions Used in This Guide..................................................................................................4
1.2. Recommended Reading...............................................................................................................5
2. About the Emulator................................................................................................................................. 6
2.1. Advantages.................................................................................................................................. 6
2.2. Components.................................................................................................................................7
2.3. Block Diagram.............................................................................................................................. 7
2.4. MPLAB ICE 4 and MPLAB X IDE.................................................................................................8
3. Connections............................................................................................................................................ 9
3.1. Power and Self Test..................................................................................................................... 9
3.2. PC Connections......................................................................................................................... 10
3.3. Target Connections.................................................................................................................... 15
4. Operation.............................................................................................................................................. 37
4.1. MPLAB X IDE Debugging.......................................................................................................... 37
4.2. AT Devices - On-Chip Debugging (OCD)...................................................................................37
4.3. PIC MCU/dsPIC DSC - On-Chip Debugging..............................................................................45
5. Emulator Features.................................................................................................................................53
5.1. USB CDC Virtual COM Port....................................................................................................... 53
5.2. Data Gateway Interface..............................................................................................................53
5.3. Data Capture and Runtime Watches - PIC MCUs and dsPIC DSCs......................................... 57
5.4. CI/CD Support............................................................................................................................ 58
5.5. Instrumented Trace for PIC MCUs and dsPIC DSCs.................................................................59
5.6. Instruction Trace for PIC32M MCUs...........................................................................................64
5.7. SAM ITM/SWO Trace.................................................................................................................67
5.8. PC Sampling – 16-Bit PIC MCUs Only.......................................................................................72
5.9. PC Profiling – 32-Bit MCUs Only................................................................................................73
5.10. Debugger Polling........................................................................................................................75
5.11. Power Monitor............................................................................................................................ 76
6. Troubleshooting First Steps.................................................................................................................. 84
6.1. Some Questions to Answer First................................................................................................84
6.2. Top Reasons Why You Can't Debug.......................................................................................... 84
6.3. General Considerations..............................................................................................................85
6.4. How to Use the Hardware Tool Emergency Boot Firmware Recovery Utility............................. 85
7. Frequently Asked Questions (FAQ)...................................................................................................... 87
7.1. How Does It Work?.................................................................................................................... 87
7.2. What's Wrong?...........................................................................................................................88
8. Error Messages.....................................................................................................................................89
8.1. Types of Error Messages........................................................................................................... 89
MPLAB ICE 4 In-Circuit Emulator Use...
© 2022 Microchip Technology Inc.
and its subsidiaries
User Guide DS-50003242A-page 2