by pmatil » Wed May 30, 2007 12:00 am
The project is the "PIC In-Circuit Debugger/Programmer" from October 2006 issue. I have also built it, but MPLAB says "ICD0021: Unable to connect with MPLAB ICD 2" and "ICD0082: Failed MPLAB ICD 2 operation". What is wrong? MPLAB version 7.52, COM-port settings: 57600, data bits 8, stop bits 1, parity none, flow control hardware, FIFO off.
I discovered that by setting the COM-port speed to 19200 MPLAB says "Connected..." but still "ICD0082: Failed MPLAB ICD 2 operation". This time the ICD2 seems to be enabled though; the run, pause and programming buttons are active. Haven't tried it with a target processor because I'm missing the DG411DJ IC. I suppose it shouldn't cause any problems in connecting to PC? By the way: neither red nor yellow LED is lit in any case. Green is, of course.
Maybe the bootloader is somehow incorrectly programmed? I programmed it with PICSTART PLUS: in MPLAB import -> BL010101.hex. Select device: PIC16F877 -> program. Verify passed.