I have just finished a ICD2 USB. I use PIC18LF4550 and PIC16LF877A for ICD2.My circuit use PIC16LF877A . When I erase 16LF877A by another programmer and then I connect ICD2 to my circuit, it work very good , when I program to 16LF877A again , there are error :
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x71, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
I removed resistor 10k from MCLR , ICD still that error
But I remove crystal , ICD2 can found target device.
Please help me !