Board logo

标题: 急救![求助] [打印本页]

作者: orinoco_2004    时间: 2006-8-28 18:59     标题: 急救![求助]

不知道错在哪里,好像缺一个 .elf文件,不知道原因,恳请高手帮忙!


**** Incremental build of configuration Debug for project test ****


make -s all
Compiling hello_world.c...
../hello_world.c: In function `main':
../hello_world.c:31: warning: int format, long unsigned int arg (arg 2)
../hello_world.c:33: warning: int format, long unsigned int arg (arg 2)
../hello_world.c: In function `sprungmessung':
../hello_world.c:52: warning: unused variable `k'
../hello_world.c:64:3: warning: no newline at end of file
Linking test.elf...
/cygdrive/e/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: region onchip_memory_0 is full (test.elf section .text). Region needs to be 30076 bytes larger.
/cygdrive/e/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .rodata [00004020 -> 0000453f] overlaps section .exceptions [00004020 -> 000041c7]
/cygdrive/e/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .rwdata [00004540 -> 00005f83] overlaps section .text [000041c8 -> 0000f57b]
/cygdrive/e/altera/kits/nios2_60/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: section .bss [00005f84 -> 00006197] overlaps section .text [000041c8 -> 0000f57b]
collect2: ld returned 1 exit status
make: *** [test.elf] Error 1
Build completed


作者: huangyou    时间: 2006-8-29 15:18

Region needs to be 30076 bytes larger.
你把.text放在了onchipmemory,现在告诉你onchipmemory太小了
作者: orinoco_2004    时间: 2006-8-29 17:28

没错,我调整了设置就OK了,非常感谢!




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0