peteHVAC wrote: > Hello, I'm back at it. I tried the capacitor and all Vss Vdd pins are hooked > up. > > ------Here is what I have now--------- > > Mplab 7.41 on XP pro machine no other USB stuff plugged in. > select 18f452 under configure/select device then select programmer = ICD2 > 18F452 on breadboard nothing else. > PGD and PGC wires are not close together > ICD2 wires connected to PIC and powering it. It did work correctly once > 10k resistor from MCLR to VDD > 10k resistor from PGM to VSS > .01uf ceramic cap between VSS and VDD > > ------What I read------------------- > > 4.61v at VDD and MCLR using DMM > data at PGD and PGC using scope > VDD increases 1v when scope ground is connected > > ------What I've done---------------- > > removed all traces of Mplab including ICD2 stuff according to their > preinstaller/updater program > reinstalled and retried. The preinstaller/updater utility indicates all ok. > tried swapping PGD PGC wires > moved everything to Windows 200 machine, all fresh, correctly installed ICD > drivers. > this is where it programmed and found the chip correctly before it shat the > bed again. > > And what do I get for all of this..... ICDWarn0020: Invalid target device id > (expected=0x21, read=0x0) > > First, be aware that ALL of us have had this SAME problem before. Let's start all over, take our time: 1. Forget about the debugger, just try using the ICD2 as a programmer. Under those circumstances, will it program? Or is the message above what you get when you try to PROGRAM the device? 2. The note above worries me, the "VDD increases 1V when scope ground is connected." That is worrying, in that there might be a ground problem 3. Check the wiring one more time. Then try the ICD2 as a programmer. Tell me what error message occurs. --Bob -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist