User Guide
MPLAB
®
 PICkit™ 4 User’s Guide
DS50002751C-page 26  2018 Microchip Technology Inc.
Items of note are:
1. Each debugger contains a unique identifier which, when first installed, will be rec-
ognized by the operating system, regardless of which computer USB port is 
used.
2. MPLAB X IDE operation connects to the hardware tool at runtime (Run or Debug 
Run). To always be connected to the hardware tool, see Tools>Options
, Embed-
ded button, Generic Settings tab, “Maintain active connection to hardware tool” 
check box.
3.  Configuration bits can only be viewed in the Configuration Bits window. To set 
them in code, select Window>Target Memory Views
. Then select “Configuration 
Bits” from the Memory drop list and select “Read/Write” from the Format drop list 
to enable access to the settings.
3.3 DEBUG TUTORIAL
Refer to the MPLAB X IDE Help file titled “Getting Started with MPLAB X IDE,” and 
navigate through the “Tutorial” to the “Running and Debugging Code.”
3.4 QUICK DEBUG/PROGRAM REFERENCE
The following table is a quick reference for using the MPLAB ICD 4 In-Circuit Debugger 
as either a debugging or programming tool.
Note: Headers are not supported at this time.
TABLE 3-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, PICkit 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.










