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

What name is used in "Auto-Add chip name define"

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



Joined: 29 Jul 2015
Posts: 10

View user's profile Send private message

What name is used in "Auto-Add chip name define"
PostPosted: Fri Sep 25, 2015 9:57 pm     Reply with quote

Using CCS 5.049 and I've checked the box in the Project Options:Global Defines dialog to select

https://www.dropbox.com/s/2fhifw7p6dv18dt/Screenshot%202015-09-25%2020.42.08.png?dl=0

Auto-Add chip name define

My chip is PIC18F67J11 but

#if defined(PIC18F67J11) evaluates to false.

I have included the file 18F67J11.h which has the statement

#device PIC18F67J11

Hitting F1 for help on that dialog brings up a help page with an image of the Project Options dialog that is apparently old and does not have the "Auto-Add chip" option on it and thus there is no explanation or description.

https://www.dropbox.com/s/u1sbshswxxefhs9/Screenshot%202015-09-25%2020.55.38.png?dl=0
_________________
I remember the days before OPS (Other Peoples Software) when all the bytes in my computer were written by me.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Sep 26, 2015 12:50 am     Reply with quote

Quote:
My chip is PIC18F67J11 but

#if defined(PIC18F67J11) evaluates to false.

What happens if you do this:
Code:

#if (getenv("DEVICE")=="PIC18F67J1")
.
.
.
#endif
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