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

Debugging error on PIC16F639 with internal oscillator

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



Joined: 14 Jan 2004
Posts: 88
Location: Aurora, Ontario, Canada

View user's profile Send private message Visit poster's website

Debugging error on PIC16F639 with internal oscillator
PostPosted: Fri Jan 06, 2006 1:47 pm     Reply with quote

Hi.

This is my first time using a PIC with the internal oscillator. I have configured the PIC 16F639 to run with an internal 1MHz clock, which, just to test it, I made flash a LED. I can compile and program this to the chip using my ICD2 as a programmer. The chip behaves as I would expect it.
Selecting the ICD2 as a debugger, I get the
"ICD0083: Target not in debug mode, unable to perform operation"
error. I remember getting this back in the days with a faulty external crystal, but now I am using the internal oscillator. Is there anything special I have to do to make the ICD2 work ?
the programming cable is no longer than the one that came with the ICD ( ca. 20 cm)

I have the fuses set as follows:
Code:

#device ICD=TRUE
#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT,  RA5 and RA4 are IO's no external Clock.



the program is just toggeling a pin for a LED, I can post it aswell, but it works fine when programmed and run without the debugger.

Thanks in advance

Kasper
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jan 06, 2006 2:02 pm     Reply with quote

The 16F639 requires a special header, p/n AC162066, to do debugging
with the ICD2. See page 2 of this Microchip document:
http://ww1.microchip.com/downloads/en/DeviceDoc/ICD2_Header_51292L.pdf
Are you using this header ?
Kasper



Joined: 14 Jan 2004
Posts: 88
Location: Aurora, Ontario, Canada

View user's profile Send private message Visit poster's website

PostPosted: Fri Jan 06, 2006 2:41 pm     Reply with quote

They have got to be kidding.. how in the world would they imagine anyone developing or the 16F639 if there is no way to debug it in circuit, with the low frequency front end enabled :(
From this, no, I am not using a special header, I am using the 20 pin 16F639 on a prototype board of our own design, and really, being a small surfacemount chip, this header would never work on my board.

I guess I will have to somehow make a serial output to windows terminal to see what is going on internally... man this sucks :(

Thanks for your reply PCM Programmer, as usual you were right on the money Smile
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