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 - Segment or program is too large

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



Joined: 30 Jun 2012
Posts: 45

View user's profile Send private message

Out of ROM - Segment or program is too large
PostPosted: Wed Dec 12, 2012 9:39 am     Reply with quote

Compiler 4.135 porting code from a PIC18F87K22 to a PIC18F66K22.

Everything went well and the code worked.
Code ROM used shown as 34% and RAM 12%-14%

But adding just a few lines of simple code that called no new functions produces the following

*** Error 71 "main.c" Line 1169(0,1): Out of ROM, A segment or the program is too large
Seg 08002-0B9AE, 0114 left, need 00128
Seg 00000-00006, 0004 left, need 00128
Seg 00008-000E8, 0000 left, need 00128
Seg 000EA-001FE, 0006 left, need 00128
Seg 00200-08000, 7E02 left, need 00128

USing the CCS tools indicates :

ROM Used: 16182 (34%)
47528 (100%) including unused fragments.


What have I done wrong and what can I do about it ?
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Wed Dec 12, 2012 10:00 am     Reply with quote

Hi,

This issue has been covered many, many times here. Learn to use the forum
Search function before posting your questions, as in many cases the solution
Is already at hand.....

Good Luck!

John
Bill24



Joined: 30 Jun 2012
Posts: 45

View user's profile Send private message

PostPosted: Fri Dec 14, 2012 2:46 am     Reply with quote

ezflyr wrote:
Hi,

This issue has been covered many, many times here. Learn to use the forum
Search function before posting your questions, as in many cases the solution
Is already at hand.....

Good Luck!

John


Well I have searched for e.g 'ROM', ''memory' and so on.

Maybe you could give me a hint to what thread has covered this.
alan



Joined: 12 Nov 2012
Posts: 357
Location: South Africa

View user's profile Send private message

PostPosted: Fri Dec 14, 2012 3:20 am     Reply with quote

Search for your error.

"Segment or program is too large"
temtronic



Joined: 01 Jul 2010
Posts: 9164
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Dec 14, 2012 8:03 am     Reply with quote

also....
I believe it is covered in the FAQ of the CCS C Help files. Pressing F11 will open them while in your project...
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Dec 14, 2012 8:16 am     Reply with quote

I don't like the forum's search function as it comes with too many false search results, but try Google instead and type:
Quote:
site:ccsinfo.com/forum "segment or the program is too large"
temtronic



Joined: 01 Jul 2010
Posts: 9164
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Dec 14, 2012 8:24 am     Reply with quote

hmm..nice thing about the google search , is I don't get the dreaded 'timeout' error or whatever and have to hit refresh, yes to get the results again.
Bill24



Joined: 30 Jun 2012
Posts: 45

View user's profile Send private message

PostPosted: Fri Dec 14, 2012 8:59 am     Reply with quote

alan wrote:
Search for your error.

"Segment or program is too large"



Found it

Thanks
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