Altera_Forum
Honored Contributor
12 years agoMake file error in eclipse called from Quartus
1. Make file error
2. after programmed to board using verilog file, all lights are on no matter turn on or off switch, is it due to test bench module in top level file? will it affected c language file result? # define Switches (volatile char *) 0x0003000# define LEDs (char *) 0x0003010 int main() { while (1) { *LEDs = *Switches; } return 0; } **** Build of configuration Nios II for project testsopc1a **** make all Info: Building ../testsopc1/ make --no-print-directory -C ../testsopc1/ [BSP build complete] Info: Compiling light.c to obj/light.o nios2-elf-gcc -xc -MP -MMD -c -I../testsopc1//HAL/inc -I../testsopc1/ -I../testsopc1//drivers/inc -DSYSTEM_BUS_WIDTH=32 -D__hal__ -pipe -DALT_NO_INSTRUCTION_EMULATION -DALT_SINGLE_THREADED -O0 -g -Wall -EL -mno-hw-div -mno-hw-mul -mno-hw-mulx -o obj/light.o light.c Info: Linking testsopc1a.elf nios2-elf-g++ -T'../testsopc1//linker.x' -msys-crt0='../testsopc1//obj/HAL/src/crt0.o' -msys-lib=hal_bsp -L../testsopc1/ -Wl,-Map=testsopc1a.map -O0 -g -Wall -EL -mno-hw-div -mno-hw-mul -mno-hw-mulx -o testsopc1a.elf obj/light.o -lm d:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: region onchip_memory2_0 is full (testsopc1a.elf section .text) d:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: region onchip_memory2_0 is full (testsopc1a.elf section .text) d:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: section .exceptions [00001020 -> 000011b3] overlaps section .rodata [00001020 -> 00001057] d:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: section .rwdata [0000268c -> 00003cbf] overlaps section .text [000011b4 -> 000034cb] d:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: testsopc1a.elf: section .exceptions lma 0x1020 overlaps previous sections d:/altera/10.0/nios2eds/bin/gnu/h-i686-mingw32/bin/../lib/gcc/nios2-elf/4.1.2/../../../../nios2-elf/bin/ld.exe: testsopc1a.elf: section .text lma 0x11b4 overlaps previous sections collect2: ld returned 1 exit status make: *** [testsopc1a.elf] Error 1