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

PICKIT3 with PICF882 does NOT working

 
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 with PICF882 does NOT working
PostPosted: Thu Jul 14, 2011 11:35 am     Reply with quote

Hi,

PIC16F882
MPLAB: 8.66
PICKIT3:
Firmware Suite Version...... 01.26.52
Firmware type......................Midrange
CCS: 4.122

PICKIT3 always reports an error message when using resetting and running from the debug:
Running...
PK3Err0040: The target device is not ready for debugging.
Please check your configuration bit settings and program
the device before proceeding.

Configuration bits are set as:
Code:

#fuses HS,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NOCPD,DEBUG



And understanding B3 must be connected to low before using the debug function for this chip, even with B3 connects to GND, there is same problem.

Have same post with Microchip too.
Please help. Thanks.
Ttelmah



Joined: 11 Mar 2010
Posts: 19505

View user's profile Send private message

PostPosted: Thu Jul 14, 2011 2:38 pm     Reply with quote

#device ICD=TRUE

Enabling the fuse, just puts the chip into debug 'mode'. Enabling debug in the code, puts the extra code into the chip to support debugging.

Best Wishes
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Jul 14, 2011 2:51 pm     Reply with quote

Another possibility:
In MPLAB open the list file for your project (*.lst).
Sroll down all the way to the end, here you see the fuses as will be sent to your target.

MPLAB sometimes overrules the DEBUG Fuse setting from your program. This happens for example when you have selected to use the PicKit as a Programmer (see MPLAB Programmer menu).

If the above is true for your situation, then fix it by going to the menu MPLAB Debugger/Select Tool, and here select your Pickit.
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