首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

急救![求助]

急救![求助]

不知道错在哪里,好像缺一个 .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

Region needs to be 30076 bytes larger.
你把.text放在了onchipmemory,现在告诉你onchipmemory太小了
没错,我调整了设置就OK了,非常感谢!
返回列表