- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 1Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the size of your on_chip memory? It seems that you use onchip memory for your application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4096 bytes, datawidth = 32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
meds7 Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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