Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17267 Discussions

error in nios building

Altera_Forum
Honored Contributor II
3,384 Views

i m doing the "introduction to altera sopc builder" tutorial for LED and switches 

after generating the system,while running nios ii ide i m getting a error 

 

collect2: ld returned 1 exit status 

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

Build completed in 26.083 seconds 

so what to do
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
1,755 Views

That's not enough information to help, but try a clean/rebuild of your project...and report _more_ of the error message that you're seeing. 

 

Cheers, 

 

-slacker
0 Kudos
Altera_Forum
Honored Contributor II
1,755 Views

thanks 

can please tell the step to follow after system generation to run in to kit with nios ii ide,what location i should mention before *.ptf file.
0 Kudos
Altera_Forum
Honored Contributor II
1,755 Views

make -s all includes  

Compiling hello_world.c... 

../hello_world.c:30:2: warning: no newline at end of file 

Linking hello_world_0.elf... 

/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: region onchip_memory2_0 is full (hello_world_0.elf section .text). Region needs to be 42204 bytes larger. 

/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: region onchip_memory2_0 is full (hello_world_0.elf section .rwdata). Region needs to be 3880 bytes larger. 

/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .rodata [00001020 -> 000014fb] overlaps section .exceptions [00001020 -> 000011c7] 

/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .rwdata [000014fc -> 00002f27] overlaps section .text [000011c8 -> 0000c4db] 

/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .bss [00001020 -> 00001233] overlaps section .exceptions [00001020 -> 000011c7] 

/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/lib/mno-hw-mul/libc.a(sbrkr.o)(.text+0x14): In function `_sbrk_r': 

/build/nios2eds-gnutools-win32-9.0/bin/nios2-gnutools/src/newlib/newlib/libc/reent/sbrkr.c:59: Unable to reach errno (at 0x00001020) from the global pointer (at 0x0000aebc) because the offset (-40604) is out of the allowed range, -32678 to 32767. 

 

collect2: ld returned 1 exit status 

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

Build completed in 31.606 seconds
0 Kudos
Altera_Forum
Honored Contributor II
1,755 Views

Your onchip memory is too small, it needs to be 42204+3880 bytes larger, check initial error messages. So, either enlarge your onchip memory, or use external SRAM/SDRAM.

0 Kudos
Reply