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 support@ccsinfo.com

out of rom error

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







out of rom error
PostPosted: Fri Aug 08, 2003 4:16 am     Reply with quote

Hello. this is my first post here.

I'm using a pic 16f76, and I get the error "out of Rom , a segment is too large" My program use a main function that call
4 funtions, but the last funtion calls several functions. I have
put #SEPARATE in several functions declaration of the program but the error "out of rom" does not desapeare.

the main code is:

void main(void)
{
BYTE i;
init();
// MANDAMOS UN AT AL MODEM
while( 1 )
{
while ( serbuffout != serbuffin )
{
serbuffout ++;
if ( serbuffout > SERBUFFLEN)
serbuffout = 0;
}
while ( estado_llamada != CONECTADO)
{
selectDevice( MODEM_);
dial();
}
eject(); // here are several calls to small funtcions
}
}

Thank's in advanced

bye
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516804
PCM programmer



Joined: 06 Sep 2003
Posts: 21078

View user's profile Send private message

Re: out of rom error
PostPosted: Fri Aug 08, 2003 11:42 am     Reply with quote

<font face="Courier New" size=-1>:=I'm using a pic 16f76, and I get the error "out of Rom , a segment is too large" My program use a main function that call
:=4 funtions, but the last funtion calls several functions. I have
:=put #SEPARATE in several functions declaration of the program but the error "out of rom" does not disappear.
------------------------------------------------------

It's possible that your program actually is too large for
the PIC. You should comment out the internal code in one
or more functions, until the program compiles without errors.
Then check the top of the .LST file (or the pop-up compiler
window) and see what percentage of ROM is used ? Is it 95\% ?
</font>
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516828
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