View previous topic :: View next topic |
Author |
Message |
prayami
Joined: 22 Dec 2004 Posts: 78
|
ICD0161: Verify failed |
Posted: Tue Jan 18, 2005 6:18 pm |
|
|
Hi..
I got CCS USB Development Kit for the PICmicro MCU.
I was using Promate 2 previously for programming the PICs.
But I think for this kit, I can't use Promate 2 so I have
configured MPLAB ICD2.
When I was trying the simple code(Turning LED On and Off) to program the 16F877A which
is in this kit. Following happen.
MPLAB ICD2 self test is passed.
MPLAB ICD2 is connected successfully.
Blank check is working.
Erase device is working.
Varify and Program is not working.
But while try to program, in the varification time it is giving following error.
Quote: |
MPLAB ICD 2 Ready
Programming Target...
...Erasing Part
...Programming Program Memory (0x0 - 0x3F)
Verifying...
...Program Memory
ICD0161: Verify failed (MemType = Program, Address = 0x11, Expected Val = 0xF7, Val Read = 0xFF)
ICD0275: Programming failed.
|
I have powered up the USB Kit circuit externally.
I am using MPLAB ICD2 first time. But as other operations of connect, Blank check and
Erase Part is working. We can say this is different problem...
What can be the reason?
Is it possible to have some problem in the Circuit Board?
Here is the program which I am trying to load.
Quote: |
#include <16F877a.h>
#fuses HS, NOLVP, NOWDT, PUT, BROWNOUT
#use delay(clock=20000000)
#define GREEN_LED PIN_B5
main()
{
while(TRUE)
{
output_low(GREEN_LED);
delay_ms(1000);
output_high(GREEN_LED);
delay_ms(1000);
}
}
|
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jan 18, 2005 6:30 pm |
|
|
Try doing the "Connect" command in the MPLAB Programmer menu.
Does it work ? What messages does it give ? |
|
|
prayami
Joined: 22 Dec 2004 Posts: 78
|
|
Posted: Tue Jan 18, 2005 6:40 pm |
|
|
It is connected successfully. There is no problem for connection, Erase
Part or Blank Check.
It is giving following message while try to "connect" from MPLAM
Program menu.
Quote: |
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device PIC16F877A found, revision = b4
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
|
It is creating problem while try to program. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
|