|
|
View previous topic :: View next topic |
Author |
Message |
Kasper
Joined: 14 Jan 2004 Posts: 88 Location: Aurora, Ontario, Canada
|
Debugging error on PIC16F639 with internal oscillator |
Posted: Fri Jan 06, 2006 1:47 pm |
|
|
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
|
|
|
Kasper
Joined: 14 Jan 2004 Posts: 88 Location: Aurora, Ontario, Canada
|
|
Posted: Fri Jan 06, 2006 2:41 pm |
|
|
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 |
|
|
|
|
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
|