Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12453 Discussions

Eclipse can't build example project template

Altera_Forum
Honored Contributor II
821 Views

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
Altera_Forum
Honored Contributor II
112 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.

Reply