Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Hey, try clicking on auto assign base address in Qsys tool before generating the component. The .rwdata and .bss might not be within the memory space. Auto assign option is available in the system tab in Qsys tool. --- Quote End --- Hi expert, I have the same problem. Can any boby help me. How can i fix it. I tried to make auto assign but still the same thing. i got this error. i need your help !!! [BSP build complete] Info: Compiling hello_world.c to obj/default/hello_world.o nios2-elf-gcc -xc -MP -MMD -c -I../SDC_Top_Test_bsp//HAL/inc -I../SDC_Top_Test_bsp/ -I../SDC_Top_Test_bsp//drivers/inc -pipe -D__hal__ -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -O0 -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -mgpopt=global -o obj/default/hello_world.o hello_world.c Info: Linking SDC_Top_Test.elf nios2-elf-g++ -T'../SDC_Top_Test_bsp//linker.x' -msys-crt0='../SDC_Top_Test_bsp//obj/HAL/src/crt0.o' -msys-lib=hal_bsp -L../SDC_Top_Test_bsp/ -Wl,-Map=SDC_Top_Test.map -O0 -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -mgpopt=global -o SDC_Top_Test.elf obj/default/hello_world.o -lm -msys-lib=m c:/intelfpga/17.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: SDC_Top_Test.elf section `.text' will not fit in region `onchip_memory2_0' c:/intelfpga/17.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x16e84 of SDC_Top_Test.elf section `.rwdata' is not within region `onchip_memory2_0' c:/intelfpga/17.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x1929c of SDC_Top_Test.elf section `.bss' is not within region `onchip_memory2_0' c:/intelfpga/17.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x16e84 of SDC_Top_Test.elf section `.rwdata' is not within region `onchip_memory2_0' c:/intelfpga/17.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: address 0x1929c of SDC_Top_Test.elf section `.bss' is not within region `onchip_memory2_0' c:/intelfpga/17.1/nios2eds/bin/gnu/h-x86_64-mingw32/bin/../lib/gcc/nios2-elf/5.3.0/../../../../../H-x86_64-mingw32/nios2-elf/bin/ld.exe: region `onchip_memory2_0' overflowed by 94876 bytes collect2.exe: error: ld returned 1 exit status make: *** [SDC_Top_Test.elf] Error 1 13:00:31 Build Finished (took 6s.580ms)