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: 21708
Re: out of rom error
Posted: Fri Aug 08, 2003 11:42 am
<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
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