View previous topic :: View next topic |
Author |
Message |
Sophi
Joined: 14 Jun 2005 Posts: 64
|
Chip is broken? |
Posted: Sun Jan 01, 2006 3:07 pm |
|
|
Hi- Happy New Year!
I'm programming a PICF877A using both ICProg and PonyProg. With both I get a programming error -ICProg 'verify failed at 000h', PonyProg 'write error'.
I've tried programming 2 different PICF877As and get the same result.
I've programmed both of these chips multiple times (guessing not more than 40x) so I suppose it is possible that both are worn out.
I have set the correct COM setting and plugged in the power.
Any thoughts? Is there a way to know is it me or is it the chip?
Thanks-
Sophi |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jan 02, 2006 1:17 pm |
|
|
It's extremely unlikely that both PICs would wear out on exactly the
same day, and after only 40 programmings. Look for some other
problem, such as chip put in backwards, or a bad power supply, etc. |
|
![](templates/subSilver/images/spacer.gif) |
Sophi
Joined: 14 Jun 2005 Posts: 64
|
|
Posted: Mon Jan 09, 2006 10:13 am |
|
|
thanks PCM.
The chip is not in backwards, I have a brand-new chip, the power supply to the Olimex board seems to be working-
But I still get a verification error.
Looking at the schematic for the Olimex board
http://www.sparkfun.com/datasheets/PIC/PIC-P40N-sch.gif
I have J3 on pin 36.
What would I look for when troubleshooting whether or not the program is actually getting into the PIC?
I'm clueless.
Anyone?
Thanks-
Sophi |
|
![](templates/subSilver/images/spacer.gif) |
Sophi
Joined: 14 Jun 2005 Posts: 64
|
|
![](templates/subSilver/images/spacer.gif) |
Sophi
Joined: 14 Jun 2005 Posts: 64
|
|
Posted: Mon Jan 09, 2006 10:40 am |
|
|
Success!
Does this mean I can't use these pins?
Sophi |
|
![](templates/subSilver/images/spacer.gif) |
newguy
Joined: 24 Jun 2004 Posts: 1903
|
|
Posted: Mon Jan 09, 2006 11:20 am |
|
|
Sophi wrote: | Success!
Does this mean I can't use these pins?
Sophi |
That depends what you use them for....
I almost always use B4-B7 (no B3 - I never debug in circuit) for button presses. The internal port B pullups are enabled, and B4 - B7 are wired to momentary contact switches. When they are pressed, they ground the pin they're connected to.
In situations like this, I can program the PIC in circuit with no issues because the switches don't affect the signal integrity in the least.
I have one circuit where a PIC's port B is wired to the output of an external 8 bit A/D converter. I had to put in isolation switches so that I could physically disconnect the A/D from B6 and B7 in order to successfully program it in circuit. If I don't disconnect these lines from the external A/D, I can't program it at all.
Hope this helps. |
|
![](templates/subSilver/images/spacer.gif) |
Sophi
Joined: 14 Jun 2005 Posts: 64
|
|
Posted: Mon Jan 09, 2006 11:40 am |
|
|
Quote: | I almost always use B4-B7 (no B3 - I never debug in circuit) for button presses |
Yes that helps since I had the pins connected to a D/A.
What do u mean B3- never debug?
Sophi |
|
![](templates/subSilver/images/spacer.gif) |
newguy
Joined: 24 Jun 2004 Posts: 1903
|
|
Posted: Mon Jan 09, 2006 11:53 am |
|
|
I mean that I don't perform ANY in-circuit debugging. I only place an in-circuit programming header on my board and use that to program the PIC. I don't debug it in circuit.
If you do, then the same thing I said about B6 and B7 also applies to B3 (or B5 or whatever the debug line is on the PIC.) |
|
![](templates/subSilver/images/spacer.gif) |
|