Notice:
For header support, see the Release Notes for MPLAB PICkit 4 in MPLAB X IDE v5.25 or
greater.
Table 4-1. Debug vs. Program Operation
Item
Debug
Program
Needed Hardware
A computer and target application (Microchip demo board or your own design).
Debugger, USB cable, and power supply (if needed).
Device with on-board debug circuitry or
debug header with special -ICE device.
Device (with or without on-board debug
circuitry).
MPLAB X IDE
selection
Project Properties, ICD 4 as Hardware Tool.
Debug Main Project icon
.
Make and Program Device icon
.
Program Operation
Programs application code into the device.
Depending on the selections on the Project
Properties dialog, this can be any range of
program memory. In addition, a small debug
executive is placed in program memory and
other debug resources are reserved.
Programs application code into the device.
Depending on the selections on the Project
Properties dialog, this can be any range of
program memory.
Debug Features
Available
All for device – breakpoints, etc.
N/A
Serial Quick-Time
Programming
(SQTP)
N/A
Use the MPLAB IPE to generate the SQTP
file.
Command-line
Operation
Use MDB command line utility, found by
default in:
C:\Program Files
(x86)\Microchip\
MPLABX\vx.xx\mplab_platform\bin
\mdb.bat
Use IPECMD, found by default in:
C:
\Program Files (x86)\Microchip\
MPLABX\<vx.xx\mplab_platform
\mplab_ipe\ipecmd.exe
.
Programmer-To-Go
N/A
Programs application code stored on a
microSDHC card inserted in the MPLAB
PICkit 4 into the device.
4.4
Debugger Limitations
For a complete list of debugger limitations for your device, see the online Help file in MPLAB X IDE (
Help > Tool Help
Contents > Hardware Tool Reference Help > Limitations - Emulators and Debuggers
).
4.5
Common Debug Features
Refer to the online Help file “Getting Started with MPLAB X IDE,” Running an Debugging Code section, for details on
debug features. This sections includes:
1.
Debug Running the project (build, program and run) from
Debug > Debug Main Project
.
2.
Using breakpoints.
3.
Stepping through code.
4.
Using the Watches window.
5.
Viewing Memory, Variables and the Call Stack.
Debugger Usage
©
2020 Microchip Technology Inc.
User Guide
DS50002751D-page 19