Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 27th October 2009, 04:03 PM   #1
Question Inchworm+ problem - verify failed Adr = 0x2

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
reflex is offline  
Old 27th October 2009, 05:39 PM   #2
Default

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?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 27th October 2009, 06:01 PM   #3
Default

It's connected in a circuit. Icd2 works with it...
reflex is offline  
Old 27th October 2009, 06:16 PM   #4
Default

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)
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 27th October 2009, 06:42 PM   #5
Default

C12 is the cap in question.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 27th October 2009, 07:57 PM   #6
Default

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

I've also replaced it with a 22µ and more errors was the result
reflex is offline  
Old 27th October 2009, 08:28 PM   #7
Default

Hmm, do you have MPLAB set to automatically download new firmware? Which version of MPLAB are you using? Is the target running at 5V?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/

Last edited by blueroomelectronics; 27th October 2009 at 08:28 PM.
blueroomelectronics is offline  
Old 27th October 2009, 08:34 PM   #8
Default

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.
reflex is offline  
Old 27th October 2009, 08:44 PM   #9
Default

Do you have other PICs with the same problem?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 27th October 2009, 08:50 PM   #10
Default

i have 2 identical prototype boards here - on both the same problem...
the pic's are soldered, so i cannot change them
reflex is offline  
Old 27th October 2009, 09:05 PM   #11
Default

Is there any load on the PGC & PGD pins, how long is the programming cable?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 27th October 2009, 09:41 PM   #12
Default

There is nothing connected on pgc & pgd (please see attachment).
Programming cable is 3" long.
Attached Thumbnails
Inchworm+ problem - verify failed Adr = 0x2-capture3.png  
reflex is offline  
Old 27th October 2009, 10:30 PM   #13
Default

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
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 27th October 2009, 10:40 PM   #14
Default

yes, i modified it
reflex is offline  
Reply

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



All times are GMT. The time now is 06:16 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker