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

18F4423 ICD Capability With CCS

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



Joined: 17 Feb 2008
Posts: 1

View user's profile Send private message

18F4423 ICD Capability With CCS
PostPosted: Sun Feb 17, 2008 3:18 pm     Reply with quote

Hi, I need help with this code written for an 18F4423. I have the following in my header file but I keep getting a compiler error.

#include <18F4423.h>
#device adc=16
#device ICD=TRUE
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz)
#use delay(clock=20000000)

And the error I get is:

Executing: "C:\Program Files\PICC\Ccsc.exe" +FH "sensor_processing.c" +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 164 "C:\Lookup Tables\Sensor_Processing\sensor_processing.h" Line 4(9,17): Selected part does not have ICD debug capability
1 Errors, 0 Warnings.
Skipping link step. Not all sources built successfully.
BUILD FAILED: Sun Feb 17 15:09:25 2008

I am using a PicKit2 which states that ICD IS supported on the 18F4423.

Thanks a bunch!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Feb 17, 2008 3:25 pm     Reply with quote

I took your code fragment and made it into the test program shown
below, and compiled it with PCH vs. 4.068 within MPLAB. It worked OK:
Quote:
BUILD SUCCEEDED: Sun Feb 17 13:19:30 2008

Code:
#include <18F4423.h>
#device adc=16
#device ICD=TRUE
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz)
#use delay(clock=20000000)

//===========================
void main()
{


while(1);
}
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