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.
> ram is full
Too much variables, big arrays, long strings...
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.
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.
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
Log in with Google account
No account? Register here.