Region Ram is Full

Discussion to talk about software related topics only.
Post Reply
cme0848
Posts: 5
Joined: Fri Jul 11, 2008 2:19 pm

Region Ram is Full

Post 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
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: Region Ram is Full

Post 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
User avatar
lgitlitz
Posts: 331
Joined: Wed Apr 23, 2008 11:43 am
Location: San Diego, CA
Contact:

Re: Region Ram is Full

Post 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
cme0848
Posts: 5
Joined: Fri Jul 11, 2008 2:19 pm

Re: Region Ram is Full

Post 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.
User avatar
yevgenit
Posts: 84
Joined: Fri Apr 25, 2008 12:47 am
Contact:

Re: Region Ram is Full

Post 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.
Yevgeni Tunik
Embedded/RealTime software engineer
https://www.linkedin.com/in/yevgenitunik/
________________________
Post Reply