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

RAM problem

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







RAM problem
PostPosted: Mon Oct 11, 2004 3:17 am     Reply with quote

Hi,

I have compiled an application using a PIC16F874a and I'm running close to using all of the ram. When I continue adding code to application I run out of RAM. So I switch to device PIC16F876a with more RAM but I still get same response. I have checked everything and have changed header file for device in code but no luck.

Cheers
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Mon Oct 11, 2004 4:50 am     Reply with quote

There are various post about dealing with this problem. Search the forum...

Remember in PIC16s, RAM is banked. So you might experience problems if you try to fit various arrays into memory. You might need to use the #locate preprocessor to manually place your variables. The .SYM symbol file shows the current location of all the variables.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Oct 11, 2004 5:43 am     Reply with quote

Hint: Pointer size
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Mon Oct 11, 2004 2:06 pm     Reply with quote

Mark,.. do you mean
#device *=16


??
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Oct 11, 2004 5:04 pm     Reply with quote

Yes
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