Altera_Forum
Honored Contributor
10 years agomake: *** [my_hello_world.elf] Error 1
Hello Altera Guys;
I am having problem building my software in NIOS II SBT 15.0 (eclipse) and I really need your great help. I have this message on my console and I do not know how to solve this problem. make all Info: Building ../my_hello_world_bsp/ C:/altera/15.0/nios2eds/bin/gnu/H-x86_64-mingw32/bin/make --no-print-directory -C ../my_hello_world_bsp/ [BSP build complete] Info: Linking my_hello_world.elf nios2-elf-g++ -T'../my_hello_world_bsp//linker.x' -msys-crt0='../my_hello_world_bsp//obj/HAL/src/crt0.o' -msys-lib=hal_bsp -L../my_hello_world_bsp/ -Wl,-Map=my_hello_world.map -O0 -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -o my_hello_world.elf obj/default/hello_world.o -lm -msys-lib=m c:/altera/15.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/4.9.1/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: my_hello_world.elf section `.text' will not fit in region `onchip_memory2_0' c:/altera/15.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/4.9.1/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x6ee8 of my_hello_world.elf section `.rwdata' is not within region `onchip_memory2_0' c:/altera/15.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/4.9.1/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x8aa4 of my_hello_world.elf section `.bss' is not within region `onchip_memory2_0' c:/altera/15.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/4.9.1/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x6ee8 of my_hello_world.elf section `.rwdata' is not within region `onchip_memory2_0' c:/altera/15.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/4.9.1/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x8aa4 of my_hello_world.elf section `.bss' is not within region `onchip_memory2_0' c:/altera/15.0/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/4.9.1/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: region `onchip_memory2_0' overflowed by 31396 bytes collect2.exe: error: ld returned 1 exit status make: *** [my_hello_world.elf] Error 1 09:08:05 Build Finished (took 927ms) I followed what was instructed in building NIOS II software in the Altera documents https://www.altera.com/en_us/pdfs/literature/.../tt_my_first_nios_sw.pdf. Any information you may share is greatly appreciated. Kind regards Ryan