- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 doLink Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page