User Guide
MPLAB
®
PICkit™ 4 User’s Guide
DS50002751C-page 40 2018 Microchip Technology Inc.
Unable to download program executive
If you receive this error while attempting to program:
1. Deselect the debugger as the programmer.
2. Close your project and then close MPLAB X IDE.
3. Restart MPLAB X IDE and re-open your project.
4. Reselect the debugger as your programmer and attempt to program your target
device again.
If these fail to fix the problem or if there are no instructions, see
Section 6.3.4 “Corrupted Installation Actions”.
6.2.3 Debug Failure Errors
The target device is not ready for debugging. Please check your configuration bit
settings and program the device before proceeding.
You will receive this message when you have not programmed your device for the first
time and try to Run. If you receive this message after this, or immediately after
programming your device, please refer to Section 6.3.6 “Debug Failure Actions”.
The device is code protected.
The device on which you are attempting to operate (read, program, blank check or
verify) is code protected, i.e., the code cannot be read or modified. Configuration bits
setting for code protection (Windows>Target Memory Views>Configuration Bits
).
Disable code protection, set or clear the appropriate Configuration bits in code or in the
Configuration Bits window according to the device data sheet. Then erase and
reprogram the entire device.
If these actions fail to fix the problem, see Section 6.3.2 “Debugger-to-Target Com-
munication Error Actions” and Section 6.3.6 “Debug Failure Actions”.
6.2.4 Miscellaneous Errors
MPLAB PICkit 4 is busy. Please wait for the current operation to finish.
If you receive this error when attempting to deselect the debugger as a debugger or
programmer:
1. Wait - give the debugger time to finish any application tasks. Then try to deselect
the debugger again.
2. Select (Finish Debugger Session) to stop any running applications. Then, try
to deselect the debugger again.
3. Unplug the debugger from the computer. Then try to deselect the debugger
again.
4. Shut down MPLAB X IDE.