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

Unable to program 18F6620

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



Joined: 20 Oct 2003
Posts: 5
Location: Sydney, Australia

View user's profile Send private message

Unable to program 18F6620
PostPosted: Sun Oct 10, 2004 11:42 pm     Reply with quote

Hi,


I have been trying out the PIC18F6620 on a new design but I am having trouble programming the devices!

Two devices have been tested on identical circuits and using Microchip's ICD2 as programmer. ICD2 seems to recognize the devices so I believe the connections are correct but in the end both reporting the same type of error. So far, I haven�t seen this error on other devices. Could this mean defective parts as the program memory cannot be written?

Here is the output from the programmer:



    Connecting to MPLAB ICD 2
    ...Connected
    Setting Vdd source to target
    Target Device PIC18F6620 found, revision = 0x3
    ...Reading ICD Product ID
    Running ICD Self Test
    ...Passed
    MPLAB ICD 2 Ready
    Programming Target...
    ...Erasing Part
    ...Programming Program Memory (0x0 - 0x6DF)
    Verifying...
    ...Program Memory
    ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0xEFB7, Val Read = 0xFFFF)
    Connecting to MPLAB ICD 2
    ...Connected
    Setting Vdd source to target
    Target Device PIC18F6620 found, revision = 0x3
    ...Reading ICD Product ID
    Running ICD Self Test
    ...Passed
    ICD0275: Programming failed.
    MPLAB ICD 2 Ready


Thanks for you help.
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

Re: Unable to program 18F6620
PostPosted: Sun Oct 10, 2004 11:56 pm     Reply with quote

achacko wrote:
ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0xEFB7, Val Read = 0xFFFF)


This shows the FLASH is not programming. Once I had this problem and the reason was an unstable and noisey power supply.

Have you been able to program any PICs successfully on the new board, or those two devices you mentioned are the only ones you have tried so far?
achacko



Joined: 20 Oct 2003
Posts: 5
Location: Sydney, Australia

View user's profile Send private message

Re: Unable to program 18F6620
PostPosted: Mon Oct 11, 2004 12:48 am     Reply with quote

Thanks Haplo for your comments.

It is a bit bizarre. Yes, on a similar board but with 18F258s instead all seem fine. I have checked the icsp connections and they look correct.
The only issue that I am concerned was there was some difficulty in soldering the miniature pins of the 18F6620 in place, so it took a number of passes on a hot smd iron to sort things out. I hope i have not cooked the chip! Anyway i will check the supply to the chip and see if this is in order.

Thanks again!
achacko
achacko



Joined: 20 Oct 2003
Posts: 5
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Mon Oct 11, 2004 4:19 am     Reply with quote

I have checked the supply and looked alright (5V), after all it is the same type that powered other pics without problems. Has anyone else got 18F6620 programmed this way (icsp)?

Thanks.
achacko
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Oct 11, 2004 5:46 am     Reply with quote

Quote:
Has anyone else got 18F6620 programmed this way (icsp)?

Yes


Did you connect all the VDD's and VSS's? What is the circuit on the MCLR pin?
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