I've have troubles with the communication between my ICD2 and my target system.
Sometimes everything is working perfect (programming, verify-ing, debugging, etc), but sometimes i've got an error mostly during verify-ing or debugging.
My communication lines PGC and PGD are made like inchworm ICD like this image
I see that microchip use drivers voor these communication lines. See this image
This because these lines are bidirectional.
Could this maybe cause my troubles ??
Am i the only one who has these troubles ?? What about all the other inchworm users ??
maybe to long cables...
just use less than 30 cm from the connector to the PIC... also try to not use RB7 and RB6 for anything else... also check your MCLR/VPP part... some times it mess... (also check vpp voltages with MPLAB and with multimeter)
just a question (for you) when it has problem at veriying... is the program working? (you programmed the pic, got error, but pic is working anyway)? maybe isn`t just at veryfing but at programming...
The cable is very short (10 cm), the lines aren't uses for anything. So they are clean.
It's not the programming that is fault. I erased my controller and checked if the controller still was working (blinking leds). It wasn't. So I reprogrammed it, got an error during the verify fase, but my leds are blinking. So the programming fase is correct.
The second time i tried it to program, it worked and i could start debug te program.
As you can see in this image
Added after 25 minutes:
Another thing i don't mentioned. I changed the PGD and the PGC now with buffers like microchip's ICD (used 74HCT245 because i don't have 74HC126) , but i've got still tesame troubles