Page 1 of 1

Region Ram is Full

Posted: Fri Aug 29, 2008 7:08 am
by cme0848
I receive the following message when compiling:

C:\Nburn\workspace\Rev2.14>make
m68k-elf-g++ -c -m5206e -gdwarf-2 -DMOD5282 -Wall -fno-rtti -fno-exceptions -O2
-IC:\Nburn\include -IC:\Nburn\MOD5282\include main.cpp -o main.o
m68k-elf-g++ -m5206e -Wl -Wl,-n -TC:\Nburn\MOD5282\lib\MOD5282.ld -Wl,-RC:\Nburn
\MOD5282\lib\sys.ld -Wl,-Map=MINDDS_2p5G_V1p00.map -o MINDDS_2p5G_V1p00.elf ./
main.o -Wl,--start-group,C:\Nburn\lib\MOD5282.a C:\Nburn\lib\NetBurner.a C:\Nbu
rn\lib\FatFile.a -Wl,--end-group
C:/Nburn/gcc-m68k/bin/../lib/gcc/m68k-elf/3.4.2/../../../../m68k-elf/bin/ld.exe:
region ram is full (MINDDS_2p5G_V1p00.elf section .bss)
C:/Nburn/gcc-m68k/bin/../lib/gcc/m68k-elf/3.4.2/../../../../m68k-elf/bin/ld.exe:
region ram is full (MINDDS_2p5G_V1p00.elf section .bss)
collect2: ld returned 1 exit status
make: *** [C:\Nburn\bin\MINDDS_2p5G_V1p00.s19] Error 1



Only thing I can figure out is that there possibly a problem with memory "region ram is full"

Any suggestions? Thank you.

Craig

Re: Region Ram is Full

Posted: Fri Aug 29, 2008 7:53 am
by Ridgeglider
Craig: Could RAM memory actually be full?

For the Rel22_rc2 build, the console dumps the following info out. Were you getting close in previous builds?

A snap shot from a really simple project's compile window:
S records output with a base address of ffc08000
S records output with a final address of ffc1cc1f
About to write S7...
******************************Build summary ******************************
Used 85023 bytes of 491520 available flash (17.30%)
Used 634352 bytes of 8388608 available ram (7.56%)
NNDK release tag version:Rel22_rc2
Build complete for project 5282-SimpleGPIO

Re: Region Ram is Full

Posted: Fri Aug 29, 2008 12:07 pm
by lgitlitz
Do you have very large buffers or arrays in your project? There is enough SDRAM on the NetBurner that you would have to allocate multiple megabytes of objects to run out of space here.
One place it would be easy to run out of space is SRAM. Are you using allocating space in SRAM with the FAST_USER_VAR attribute? It would only take about 30K of added variables in SRAM to get an overflow error message.

-Larry

Re: Region Ram is Full

Posted: Thu Dec 11, 2008 2:04 pm
by cme0848
Yea one of my static arrays was apparently too large. I just decreased the size of my array, built the project, and everything was fine.


It should be stated that the application compiled without error using an older runtime (1.82-RC2) but compiling it with my current runtime (2.1-RC3a )resulted in this memory error.

Re: Region Ram is Full

Posted: Tue Jan 06, 2009 11:41 pm
by yevgenit
A few last releases of NNDK use SRAM for stack of various system tasks.
Thus, the free SRAM space is shrinked.

> It should be stated that the application compiled without error using an older runtime
> (1.82-RC2), but compiling it with my current runtime (2.1-RC3a ) resulted in this memory
> error.