EmbDev.net

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


Author: Lkj Lkj (flaviohpo)
Posted on:
Attached files:

Rate this post
0 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.

Author: Out of memory (Guest)
Posted on:

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

Author: Lkj Lkj (flaviohpo)
Posted on:

Rate this post
0 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.

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 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.

Author: Alfredo Cabral (tequilaguru)
Posted on:

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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.