Inchworm+ problem - verify failed Adr = 0x2

Status
Not open for further replies.

reflex

New Member
Hi, can somebody help me?

I'm getting the following error, when i try to program a pic18f2580:
ICD0161: Verify failed (MemType = Program, Address = 0x2, Expected Val = 0x0, Val Read = 0xD0)

I've tried 2 different devices and the error occurs on both. The eeprom is written ok. When i try to write only the config bits, it also fails on the second write...

Thanks for any hints!

Here is the output from mplab:
Code:
MPLAB ICD 2 Ready
ICDWarn0038:  When using auto-calculate write range, reads cover the entire memory range. Do you wish to continue?
...EEPROM
...Program Memory (0x0 - 0x7FFF)
.. Config Memory
...User ID Memory
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming EEPROM Memory
...Programming Program Memory (0x0 - 0x23F)
Verifying...
...Program Memory
ICD0161: Verify failed (MemType = Program, Address = 0x2, Expected Val = 0x0, Val Read = 0xD0)
ICD0275:  Programming failed.
MPLAB ICD 2 Ready

blueroomelectronics

Well-Known Member
Hmm sounds like it's not connected to the target properly. How do you have it connected to the 18F2580? Is it in circuit or on a breadboard?

reflex

New Member
It's connected in a circuit. Icd2 works with it...

blueroomelectronics

Well-Known Member
Hmm, I changed the final VPP cap on some kits to 4.7uF. It may be too small and I'll have to use 22uF like on the older kits. Do you have a spare 10uF 16V cap (just parallel it across)

blueroomelectronics

Well-Known Member
C12 is the cap in question.

reflex

New Member
i only have 15µ, but the error is the same.

I've also replaced it with a 22µ and more errors was the result

blueroomelectronics

Well-Known Member
Hmm, do you have MPLAB set to automatically download new firmware? Which version of MPLAB are you using? Is the target running at 5V?

Last edited:

reflex

New Member
i've tried it with Mplab 8.36 and 7.6
Target is running on 5V.

When programming it only writes 3 commands: first is correct, second is wrong and fails during verify, and the third is also wrong.
It's also the same, if i try to program only the configuration area.

blueroomelectronics

Well-Known Member
Do you have other PICs with the same problem?

reflex

New Member
i have 2 identical prototype boards here - on both the same problem...
the pic's are soldered, so i cannot change them

blueroomelectronics

Well-Known Member
Is there any load on the PGC & PGD pins, how long is the programming cable?

reflex

New Member
There is nothing connected on pgc & pgd (please see attachment).
Programming cable is 3" long.

Attachments

• Capture3.png
49 KB · Views: 88

blueroomelectronics

Well-Known Member
The 1x6 ICD pinout is somewhat different than the Inchworms. Did you modify your Inchworm cable?
Yours is
VPP,GND,+5,NC,PGC,PGD
Inchworm is
VPP,+5,GND,PGD,PGC

reflex

New Member
yes, i modified it

Status
Not open for further replies.

Replies
18
Views
3K
Replies
4
Views
6K
Replies
0
Views
874
Replies
9
Views
3K
Replies
11
Views
3K