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

Out of ROM problem

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



Joined: 26 Jan 2011
Posts: 31

View user's profile Send private message

Out of ROM problem
PostPosted: Thu Nov 08, 2012 3:41 am     Reply with quote

Seg 0004-07FF, 0289 left, need 0E0E
Seg 0800-0FFF, 0800 left, need 0E0E
Seg 1000-17FF, 0800 left, need 0E0E
Seg 1800-1FFF, 0800 left, need 0E0E
Seg 0000-0003, 0000 left, need 0E0E

*** Error 71 "D:\Ratheesh\Works\pgms\paneltest.c" Line 930(255,256): Out of ROM, A segment or the program is too large Halting build on first failure as requested.
BUILD FAILED: Thu Nov 08 15:02:59 2012

I am using pic16f877a and CCS compiler version 3.36.
How can I clear this error.
In my code I am declaring a lot of variables.
Ttelmah



Joined: 11 Mar 2010
Posts: 19546

View user's profile Send private message

PostPosted: Thu Nov 08, 2012 4:15 am     Reply with quote

Try searching the forum....

Nothing to do with variables, but the size your individual routines. You need to split the code up.

The ROM on the chip is in pages 0x800 bytes long. You have a routine that is 0xE0E bytes long so it can't be fitted into a page. Everything else in your code is only 0x572 bytes in total, so your are tending to write your code as one big lump, rather than thinking 'routines', and splitting into small pieces that the compiler can then move around.

Best Wishes
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