View previous topic :: View next topic |
Author |
Message |
Bill24
Joined: 30 Jun 2012 Posts: 45
|
Out of ROM - Segment or program is too large |
Posted: Wed Dec 12, 2012 9:39 am |
|
|
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
|
|
Posted: Wed Dec 12, 2012 10:00 am |
|
|
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
|
|
Posted: Fri Dec 14, 2012 2:46 am |
|
|
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
|
|
Posted: Fri Dec 14, 2012 3:20 am |
|
|
Search for your error.
"Segment or program is too large" |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9225 Location: Greensville,Ontario
|
|
Posted: Fri Dec 14, 2012 8:03 am |
|
|
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
|
|
Posted: Fri Dec 14, 2012 8:16 am |
|
|
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: 9225 Location: Greensville,Ontario
|
|
Posted: Fri Dec 14, 2012 8:24 am |
|
|
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
|
|
Posted: Fri Dec 14, 2012 8:59 am |
|
|
alan wrote: | Search for your error.
"Segment or program is too large" |
Found it
Thanks |
|
|
|