7.1.3 Debug Failure Errors
The target device is not ready for debugging. Please check your Configuration bit settings and program the device before proceeding.
Please refer to 7.2.6 Debug Failure Actions.
The device is code protected.
The device on which you are attempting to operate (read, program, blank check) is code protected; in other words, the code cannot be read or modified. Check your Configuration bits setting for code protection (See the project device data sheet).
Disable code protection, set or clear the appropriate Configuration bits in code according to the device data sheet. Then erase and reprogram the entire device.
If these actions fail to fix the problem, see Debugger to Target Communication Error Actions and 7.2.6 Debug Failure Actions.
