![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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 Reading... 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 ...Read Succeeded MPLAB ICD 2 Ready 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 | |
| |
| | #2 |
|
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?
| |
| |
| | #3 |
|
It's connected in a circuit. Icd2 works with it...
| |
| |
| | #4 |
|
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)
| |
| |
| | #5 |
|
C12 is the cap in question.
| |
| |
| | #6 |
|
i only have 15µ, but the error is the same. I've also replaced it with a 22µ and more errors was the result | |
| |
| | #7 |
|
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 by blueroomelectronics; 27th October 2009 at 08:28 PM. | |
| |
| | #8 |
|
i've tried it with Mplab 8.36 and 7.6 Firmware download happens, when i switch to a different Mplab. 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. | |
| |
| | #9 |
|
Do you have other PICs with the same problem?
| |
| |
| | #10 |
|
i have 2 identical prototype boards here - on both the same problem... the pic's are soldered, so i cannot change them | |
| |
| | #11 |
|
Is there any load on the PGC & PGD pins, how long is the programming cable?
| |
| |
| | #12 |
|
There is nothing connected on pgc & pgd (please see attachment). Programming cable is 3" long. | |
| |
| | #13 |
|
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 | |
| |
| | #14 |
|
yes, i modified it
| |
| |
|
| Tags |
| 0x2, adr, failed, inchworm, problem, verify |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| PK2Error0027: Failed verify (Address = 0x1 - Expected Value 0x1E80 - Value Read 0x1E | crazylegsmurphy | Micro Controllers | 1 | 18th June 2008 03:37 AM |
| PIC12F675 Verify Failed | Suraj143 | Micro Controllers | 18 | 5th December 2007 08:34 AM |
| IC-Prog 1.06 - Verify failed at address 0000h - bug | pdfruth | Micro Controllers | 9 | 2nd November 2007 07:24 PM |
| verify failed at address 0000h with IC-Prog | cucamunga | Micro Controllers | 41 | 7th January 2007 11:37 AM |
| 12C508 problems: Verify failed at code address 0000h ! | faz666 | Micro Controllers | 4 | 29th July 2003 01:13 PM |