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

compile problem

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







compile problem
PostPosted: Thu May 10, 2007 2:14 pm     Reply with quote

I'm new to using the CCS compiler but in version 3.242 the following code works. But in version 4.033 I get the following errors:

Can not change device type this far into the code
Selected part does not have ICD debug capability

Anyone have any ideas? I want to run the code on an ICE 2000.

Code:

#include <16C926.h>
//////// Standard Header file for the PIC16C926 device ////////////////
#device PIC16C926
#list
 
#device  *=16 ADC=10 ICD=TRUE
#use     delay( clock=4000000, RESTART_WDT )
kevcon



Joined: 21 Feb 2007
Posts: 142
Location: Michigan, USA

View user's profile Send private message

PostPosted: Thu May 10, 2007 2:17 pm     Reply with quote

I don't know about the ICD problem, but the #device error is because you have a #device declaration in your code when one is already included in the header file.
ENG.IMK



Joined: 29 Mar 2007
Posts: 3

View user's profile Send private message Yahoo Messenger

PostPosted: Sun May 13, 2007 4:25 pm     Reply with quote

u could remove the line (#device PIC16C926 )
because it already exist in header file

and you type ICD=TRUE (#device *=16 ADC=10 ICD=TRUE ) and this pic PIC16C926 cannot run in in-circuit debugging mode (ICD)
i think u must remove ICD=TRUE
_________________
IMK
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