Error Building Project....... !!!

General discussion on RSC-4x mikroC.
Post Reply
Author
Message
yawarmasood
Posts: 5
Joined: 03 Aug 2006 18:23

Error Building Project....... !!!

#1 Post by yawarmasood » 29 Aug 2006 21:24

Hi,

I get the following message while Building my program

No free room in address space 'CODE' for segment 'FUN_CODE__T2SI'

My project main file name is t2si.c

One way the documentation says to resolve this is use less static variables, which occupy space in memory during the entire program execution time. Instead, use function parameters to pass variables from one function to another. I have been doing my best to reduce static variable usage, but as the program is becoming larger, I am getting into these troubles.

Is there any other way out? Like Increase the CODE space somehow?

Thanks,

Yawar

User avatar
rajkovic
mikroElektronika team
Posts: 694
Joined: 16 Aug 2004 12:40

Re: Error Building Project....... !!!

#2 Post by rajkovic » 30 Aug 2006 06:43

yawarmasood wrote:Hi,
No free room in address space 'CODE' for segment 'FUN_CODE__T2SI'
Yawar

This message means that you lack space for CODE not RAM.
If you have licence you have filled all 128k and there is no room for
all functions and const that you use.

If you do not have licence you have only 64k so your program can not fit
in demo version.

If your project is not confedential you could send it to us so we can
inspect what is happening. rajkovic@mikroe.com

In any case sensory libraries work only with small and compact model
this means that all functions must be in first page <=> 64k
only constant data can be located in first or secod page up to 128k.

yawarmasood
Posts: 5
Joined: 03 Aug 2006 18:23

#3 Post by yawarmasood » 31 Aug 2006 21:06

I am using the entire 128K and for now, I have to suppress some functions so that others work, but as a whole, it runs out of space.

Thanks for your input though. Also, Sensory has come up with RPM which has a 4Mbit Flash for the application code. I hope that one solves the problem.

Thanks for your response though.

Yawar

Post Reply

Return to “RSC-4x mikroC General”