|
|
View previous topic :: View next topic |
Author |
Message |
Joe Porthouse Guest
|
Can't #DEVICE *=16 on latest compiler |
Posted: Mon Aug 11, 2003 2:10 pm |
|
|
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 |
Posted: Mon Aug 11, 2003 2:52 pm |
|
|
:=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 |
Posted: Tue Aug 12, 2003 7:09 am |
|
|
:=:=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 |
|
|
|
|
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
|