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, A segment or the program is too large MAIN ??

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



Joined: 06 Jan 2010
Posts: 2
Location: MEDELLIN

View user's profile Send private message MSN Messenger

Out of ROM, A segment or the program is too large MAIN ??
PostPosted: Sat Jan 09, 2010 8:24 am     Reply with quote

Sad Sad Sad
I have a problem

before me program is good:
Memory usage: ROM=54% RAM=15% - 21%
0 Errors, 3 Warnings.

and add intruccion litter while funcion and :

Executing: "C:\Archivos de programa\PICC\Ccsc.exe" +FM "EMPQ.C" +DF +LN +T +A +M -Z +Y=9 +EA
>>> Warning 203 "D:\JGGG\CCS_temp\JEB\EMPQ\EMPQ.C" Line 183(1,1): Condition always TRUE intb
>>> Warning 216 "D:\JGGG\CCS_temp\JEB\EMPQ\EMPQ.C" Line 1002(0,1): Interrupts disabled during call to prevent re-entrancy: (@delay_ms1)
>>> Warning 202 "D:\JGGG\CCS_temp\JEB\EMPQ\EMPQ_def.h" Line 112(4,13): Variable never used: pastillas
*** Error 71 "D:\JGGG\CCS_temp\JEB\EMPQ\EMPQ.C" Line 1002(0,1): Out of ROM, A segment or the program is too large MAIN
Seg 00800-00FFF, 0665 left, need 0948
Seg 01000-017FF, 0800 left, need 0948
Seg 01800-01FFF, 0800 left, need 0948
Seg 00000-00003, 0000 left, need 0948
Seg 00004-00049, 0000 left, need 0948
Seg 0004A-007FF, 0033 left, need 0948

1 Errors, 3 Warnings.
Halting build on first failure as requested.

why??? i do'n know

please help me
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Sat Jan 09, 2010 9:36 am     Reply with quote

Quote:

*** Error 71 "D:\JGGG\CCS_temp\JEB\EMPQ\EMPQ.C" Line 1002(0,1): Out of ROM, A segment or the program is too large MAIN


The compiler spot the right clue.
Suggestions:
1) Go back to your last compilable version.
2) Open and check the generated program .sta

Then read this in order to proceed.

http://www.ccsinfo.com/faq.php?page=out_of_ram

Regards,

Humberto
johnger



Joined: 06 Jan 2010
Posts: 2
Location: MEDELLIN

View user's profile Send private message MSN Messenger

Thank you , but
PostPosted: Sat Jan 09, 2010 10:35 am     Reply with quote

Do you speak spanish?

I am from Colombia.

I test the registers .sta
but I see a lot memory free.
Code:

 Segment     Used  Free
-----------  ----  ----
00000-00003     4  0 
00004-00049    70  0 
0004A-007FF  1917  57 
00800-00FFF   410  1638 
01000-017FF  1778  270 
01800-01FFF     0  2048
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Sun Jan 10, 2010 6:22 am     Reply with quote

The "OUT OF ROM" error message do not refer to the whole memory available in you
MCU, it should be understood like:
"FUNCTION SIZE BIGGER THAN THE ALLOWABLE SEGMENT OF MEMORY"

Yes I speak spanish but we must accept the rules of the board, if you need further
help drop me a line using the private message option.

Saludos,

Humberto
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