In MPLAB X IDE, use the MPLAB PICkit 4 as a programmer to program a non-ICE/-ICD device, i.e., a device not on a header board. Set the MPLAB PICkit 4 debugger as the current tool (click the Debug Tool PICkit 4 in the navigation window, then select
File>Project Properties to open the dialog, then under “Hardware Tool,” click
PICkit 4) to perform these actions:
The MPLAB PICkit 4 In-Circuit Debugger system programs the target using ICSP. Vpp, PGC and PGD lines should be connected as described previously. No clock is required while programming, and all modes of the processor can be programmed, including code protection, Watchdog Timer and table read protection.