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 support@ccsinfo.com

PICKit3 and CCS 4.122

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



Joined: 26 Apr 2010
Posts: 56

View user's profile Send private message

PICKit3 and CCS 4.122
PostPosted: Wed Jun 29, 2011 1:04 pm     Reply with quote

Using PICkit3, MPLab 8.66 and CCS 4.122 with PIC16F687, it always reports error during the debug (program, erase and check blank all worked fine):

PK3Err0040: The target device is not ready for debugging.
Please check your configuration bit settings and program
the device before proceeding.


And Configuration bits seems OK:
Code:

#fuses NOWDT, BROWNOUT, NOPUT, MCLR,NOCPD,INTRC,IESO,FCMEN
#use delay(clock=2M)

Please help. Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 29, 2011 1:11 pm     Reply with quote

Are you using the required ICD header ? The 16F687 can't do debug
mode by itself. It requires a special header board. Go to the Pickit3
page here:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en538340&redirects=pickit3
Download and read the Header Specification from the links at the bottom
of the page.

My advice is to get a PIC that doesn't require a header and use it for
your debugging. Then move the project to the 16F687 later, when you
are done debugging it.
kongfu1



Joined: 26 Apr 2010
Posts: 56

View user's profile Send private message

PostPosted: Wed Jun 29, 2011 4:11 pm     Reply with quote

Thanks PCM.
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