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

Can't #DEVICE *=16 on latest compiler

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







Can't #DEVICE *=16 on latest compiler
PostPosted: Mon Aug 11, 2003 2:10 pm     Reply with quote

This is very frustrating. Every time I upgrade my compiler I spend a day chasing down incompatabilities between my previously working code and the new compiler.

#include <16F877.h>
#DEVICE PIC16F877 *=16
#fuses hs,wdt,noprotect,put,brownout,nolvp

Generates an “Error 23 - Can not change device type this far into the code” on the #device line.

Removing the line I get “Not enough RAM for all variables”.

How do I get the *=16 onto this device?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516899
Steve H.
Guest







Re: Can't #DEVICE *=16 on latest compiler
PostPosted: Mon Aug 11, 2003 2:52 pm     Reply with quote

:=This is very frustrating. Every time I upgrade my compiler I spend a day chasing down incompatabilities between my previously working code and the new compiler.
:=
:=#include <16F877.h>
:=#DEVICE PIC16F877 *=16
:=#fuses hs,wdt,noprotect,put,brownout,nolvp
:=
:=Generates an “Error 23 - Can not change device type this far into the code” on the #device line.
:=
:=Removing the line I get “Not enough RAM for all variables”.
:=
:=How do I get the *=16 onto this device?

I think this is bacause the device name is also in the header file. Change your line to remove the part type like,

#DEVICE *=16

and make sure that the header also does not have a *=16 in it.

Steve H.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516900
Joe Porthouse
Guest







Re: Can't #DEVICE *=16 on latest compiler
PostPosted: Tue Aug 12, 2003 7:09 am     Reply with quote

:=:=This is very frustrating. Every time I upgrade my compiler I spend a day chasing down incompatabilities between my previously working code and the new compiler.
:=:=
:=:=#include <16F877.h>
:=:=#DEVICE PIC16F877 *=16
:=:=#fuses hs,wdt,noprotect,put,brownout,nolvp
:=:=
:=:=Generates an “Error 23 - Can not change device type this far into the code” on the #device line.
:=:=
:=:=Removing the line I get “Not enough RAM for all variables”.
:=:=
:=:=How do I get the *=16 onto this device?
:=
:=I think this is bacause the device name is also in the header file. Change your line to remove the part type like,
:=
:=#DEVICE *=16
:=
:=and make sure that the header also does not have a *=16 in it.
:=
:=Steve H.

That did it, thanks.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516921
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