Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12435 Discussions

Make file error in eclipse called from Quartus

Altera_Forum
Honored Contributor II
1,499 Views

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
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
134 Views

What is the size of your on_chip memory? It seems that you use onchip memory for your application.

Altera_Forum
Honored Contributor II
134 Views

4096 bytes, datawidth = 32

Altera_Forum
Honored Contributor II
134 Views

 

--- Quote Start ---  

4096 bytes, datawidth = 32 

--- Quote End ---  

 

 

The linker is not able to place your code into this small onchip ram. If you want to run MicroC/OS-II on your Nios then you need must more RAM and therefore you need to find some external memory.
Altera_Forum
Honored Contributor II
134 Views

 

--- Quote Start ---  

The linker is not able to place your code into this small onchip ram. If you want to run MicroC/OS-II on your Nios then you need must more RAM and therefore you need to find some external memory. 

--- Quote End ---  

 

 

 

Work for me! 

 

Thank you ! excellent!:cool:
Altera_Forum
Honored Contributor II
134 Views

meds7 Thank you.

Altera_Forum
Honored Contributor II
134 Views

How did you increase your RAM? I have the same problem using quartus 13.01.  

I used SD ram in my qsys but I still have this problem while building the project in E-clipse.
Reply