OpenCores

* Amber ARM-compatible core

Issue List
mem file too big #33
Open cipy opened this issue almost 9 years ago
cipy commented almost 9 years ago

Following the amber-user-guide.pdf, when I try to compile the boot-loader-serial I run into this error:

make -s -C ../mini-libc MIN_SIZE=1 arm-none-linux-gnueabi-gcc -c -Os -march=armv2a -mno-thumb-interwork -ffreestanding -I../include -c -o boot-loader-serial.o boot-loader-serial.c arm-none-linux-gnueabi-gcc -I../include -c -o start.o start.S arm-none-linux-gnueabi-gcc -c -Os -march=armv2a -mno-thumb-interwork -ffreestanding -I../include -c -o crc16.o crc16.c arm-none-linux-gnueabi-gcc -c -Os -march=armv2a -mno-thumb-interwork -ffreestanding -I../include -c -o xmodem.o xmodem.c arm-none-linux-gnueabi-gcc -c -Os -march=armv2a -mno-thumb-interwork -ffreestanding -I../include -c -o elfsplitter.o elfsplitter.c arm-none-linux-gnueabi-ld -Bstatic -Map boot-loader-serial.map --strip-debug --fix-v4bx -o boot-loader-serial.elf -T sections.lds boot-loader-serial.o start.o crc16.o xmodem.o elfsplitter.o ../mini-libc/printf.o ../mini-libc/libc_asm.o ../mini-libc/memcpy.o arm-none-linux-gnueabi-objcopy -R .comment -R .note boot-loader-serial.elf ../tools/amber-elfsplitter boot-loader-serial.elf > boot-loader-serial.mem ../tools/amber-memparams32.sh boot-loader-serial.mem boot-loader-serial_memparams32.v ../tools/amber-memparams128.sh boot-loader-serial.mem boot-loader-serial_memparams128.v arm-none-linux-gnueabi-objdump -C -S -EL boot-loader-serial.elf > boot-loader-serial.dis ../tools/check_mem_size.sh boot-loader-serial.mem "@000020" Mem file boot-loader-serial.mem too big make: *** all Error 1

The size of the generated .mem is 40K.

Thanks, Ciprian

rodrigofrs commented over 8 years ago

Having this same problem managed to resolvce it ?

rodrigofrs commented over 8 years ago

My file has also 40k. I edited the "boot-loader-serial.mem " to fit the 16k limit to try to run the entire test flow, and I was capable of simulating the amber, of course the test failed cause a huge part of program was missing. Just trying to solve this file size now...

cipy commented over 8 years ago

With an older version of cross compiler all works fine.

rodrigofrs commented over 8 years ago

How old was it ? I tried a 2012 and a 2005 version and nothing changed. Could someone please tell me the exacly version should I use ?

rodrigofrs commented over 8 years ago

SOLVED Thanks to Spiridon Ciprian. It's is possible to solve this problem using the arm-2013.11-33-arm-none-linux-gnueabi-i686-pc-linux-gnu version of the cross-compiler.


Assignee
No one
Labels
Request