User manual

MPLAB
®
ICD 4 User’s Guide
DS50002596A-page 46 2017 Microchip Technology Inc.
6.2.2 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 if you try to Run before programming your device. If you
receive this message after trying to Run, or immediately after programming your
device:
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. Check your
Configuration bits setting for code protection.
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 Commu-
nication Error Actions” and Section 6.3.6 “Debug Failure Actions”.
6.2.3 Miscellaneous Errors
ICD 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 dese-
lect the debugger again.
2. Select Halt 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 IDE X.