CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Chip is broken?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Sophi



Joined: 14 Jun 2005
Posts: 64

View user's profile Send private message

Chip is broken?
PostPosted: Sun Jan 01, 2006 3:07 pm     Reply with quote

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
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jan 02, 2006 1:17 pm     Reply with quote

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.
Sophi



Joined: 14 Jun 2005
Posts: 64

View user's profile Send private message

PostPosted: Mon Jan 09, 2006 10:13 am     Reply with quote

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. Embarassed
Anyone?
Thanks-
Sophi
Sophi



Joined: 14 Jun 2005
Posts: 64

View user's profile Send private message

PostPosted: Mon Jan 09, 2006 10:29 am     Reply with quote

After reading
http://www.ccsinfo.com/forum/viewtopic.php?t=265&highlight=icsp
I'm disconnecting pins B6 and B7 and B3 which I had been previously using.
However, ICSP programming used to work with these 3 pins being used for something else....
Sophi
Sophi



Joined: 14 Jun 2005
Posts: 64

View user's profile Send private message

PostPosted: Mon Jan 09, 2006 10:40 am     Reply with quote

Success!
Laughing
Does this mean I can't use these pins?
Sophi
newguy



Joined: 24 Jun 2004
Posts: 1908

View user's profile Send private message

PostPosted: Mon Jan 09, 2006 11:20 am     Reply with quote

Sophi wrote:
Success!
Laughing
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.
Sophi



Joined: 14 Jun 2005
Posts: 64

View user's profile Send private message

PostPosted: Mon Jan 09, 2006 11:40 am     Reply with quote

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
newguy



Joined: 24 Jun 2004
Posts: 1908

View user's profile Send private message

PostPosted: Mon Jan 09, 2006 11:53 am     Reply with quote

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.)
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group