View previous topic :: View next topic |
Author |
Message |
achacko
Joined: 20 Oct 2003 Posts: 5 Location: Sydney, Australia
|
Unable to program 18F6620 |
Posted: Sun Oct 10, 2004 11:42 pm |
|
|
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
|
Re: Unable to program 18F6620 |
Posted: Sun Oct 10, 2004 11:56 pm |
|
|
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
|
Re: Unable to program 18F6620 |
Posted: Mon Oct 11, 2004 12:48 am |
|
|
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
|
|
Posted: Mon Oct 11, 2004 4:19 am |
|
|
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
|
|
Posted: Mon Oct 11, 2004 5:46 am |
|
|
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? |
|
|
|