EmbDev.net

Forum: ARM programming with GCC/GNU tools another little problem i think its not big thing


von Lkj L. (flaviohpo)


Attached files:

Rate this post
useful
not useful
after make:

arm-elf-gcc -c -Wall -O2 -mcpu=arm7tdmi-s -D BAUDRATE=19200 -o main.o 
main.c
arm-elf-gcc -c -Wall -O2 -mcpu=arm7tdmi-s -D BAUDRATE=19200 -o EC3550.o 
EC3550.c

arm-elf-gcc -c -Wall -O2 -mcpu=arm7tdmi-s -D BAUDRATE=19200 -o uart.o 
uart.c
arm-elf-as -mapcs-32 -mcpu=arm7tdmi -o crt.o crt.s
arm-elf-ld -Tlpc2378_flash.ld -o main.elf main.o EC3550.o uart.o crt.o
arm-elf-ld: region ram is full (main.elf section .kex)
make: *** [main.elf] Error 1

------------------------------

attached are my makefile and the error pic.

von Out of memory (Guest)


Rate this post
useful
not useful
> ram is full
Too much variables, big arrays, long strings...

von Lkj L. (flaviohpo)


Rate this post
useful
not useful
Out of memory wrote:
>> ram is full
> Too much variables, big arrays, long strings...

Ok thx, my professor told me the same.. :( he told me to download the 
hex in the flash.

von Clifford S. (clifford)


Rate this post
useful
not useful
Get the linker to emit a MAP file to see what is being located in RAM 
and how large it is, also check that the linker script correctly assigns 
RAM to the size of the part that you are using.

von Alfredo C. (tequilaguru)


Rate this post
useful
not useful
You can use "size" and "objdump -h" to get information on how the linker 
is using the memory.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.