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

ICD0161: Verify failed

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



Joined: 22 Dec 2004
Posts: 78

View user's profile Send private message

ICD0161: Verify failed
PostPosted: Tue Jan 18, 2005 6:18 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Jan 18, 2005 6:30 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Jan 18, 2005 6:40 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Jan 18, 2005 7:06 pm     Reply with quote

See these threads on the Microchip forum. They aren't necessarily
helpful, but they might give you some ideas of things to check.
http://forum.microchip.com/tm.asp?m=62299
http://forum.microchip.com/tm.asp?m=42728
http://forum.microchip.com/tm.asp?m=42116

Also, do you have any pull-up or pull-down resistors on pins RB6 and RB7 ?
You should not have any.

Do you have a pull-up resistor on MCLR ? I use 10K ohms.
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