Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
714 Views

Eclipse can't build example project template

I have the following message from Eclipse, which i don't understand. I guess i did something wrong in the SOPC builder.. can someone tell me what's wrong based on the error message given in Eclipse ? 

 

 

**** Build of configuration Nios II for project lcddisplay **** 

 

make all  

Info: Building ../lcddisplay_bsp 

make --no-print-directory -C ../lcddisplay_bsp 

[BSP build complete] 

Info: Compiling hello_world.c to obj/hello_world.o 

nios2-elf-gcc -xc -MP -MMD -c -I../lcddisplay_bsp/HAL/inc -I../lcddisplay_bsp -I../lcddisplay_bsp/drivers/inc -DSYSTEM_BUS_WIDTH=32 -D__hal__ -pipe -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -O0 -g -Wall -EL -mno-hw-div -mhw-mul -mno-hw-mulx -o obj/hello_world.o hello_world.c 

Info: Linking lcddisplay.elf 

nios2-elf-g++ -T'../lcddisplay_bsp/linker.x' -msys-crt0='../lcddisplay_bsp/obj/HAL/src/crt0.o' -msys-lib=hal_bsp -L../lcddisplay_bsp -Wl,-Map=lcddisplay.map -O0 -g -Wall -EL -mno-hw-div -mhw-mul -mno-hw-mulx -o lcddisplay.elf obj/hello_world.o -lm  

c:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: region onchip_ram is full (lcddisplay.elf section .rwdata) 

c:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: region onchip_ram is full (lcddisplay.elf section .rwdata) 

c:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: section .exceptions [02008020 -> 020081b3] overlaps section .bss [02008020 -> 020082ff] 

c:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: lcddisplay.elf: section .bss lma 0x2008020 overlaps previous sections 

c:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/lib\libc.a(lib_a-mallocr.o): In function `malloc_extend_top': 

/build/arc/execute/dir_32342/ip/sopc/app/gnu/BUILD/gnu/build-0-newlib.nios2-elf.i686-mingw32/nios2-elf/newlib/libc/stdlib/../../../../../src/newlib-1.16/newlib/libc/stdlib/mallocr.c:2150: warning: Unable to reach (null) (at 0x02008020) from the global pointer (at 0x02019624) because the offset (-71172) is out of the allowed range, -32678 to 32767. 

 

collect2: ld returned 1 exit status 

make: *** [lcddisplay.elf] Error 1 

 

 

Thanks! 

 

Michael
0 Kudos
1 Reply
Highlighted
Valued Contributor III
5 Views

I solved the problem.. but i dunno what i did, i tried too many things at once. it was just a matter of settings.

0 Kudos