同样的程序在7.0版本上没问题
但在6.1的版本上出现下列问题
**** Build of configuration Debug for project softwarezs ****
make -s all
Compiling hello_led.c...
Linking softwarezs.elf...
/cygdrive/c/altera/61/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/lib/libc.a(closer.o)(.text+0x18): In function `_close_r':
/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libc/reent/closer.c:53: warning: warning: close is not implemented and will always fail
/cygdrive/c/altera/61/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/lib/libc.a(lseekr.o)(.text+0x20): In function `_lseek_r':
/build/nios2/bin/nios2-gnutools/src/newlib/newlib/libc/reent/lseekr.c:58: warning: warning: lseek is not implemented and will always fail
Info: (softwarezs.elf) 44 KBytes program size (code + initialized data).
Info: 8189 KBytes free for stack + heap.
Post-processing to create epcs_controller_boot_rom.flash
Post-processing to create cfi_flash.flash
Hardware simulation is not enabled for the target SOPC Builder system. Skipping creation of hardware simulation model contents and simulation symbol files. (Note: This does not affect the instruction set simulator.)
Build completed in 7.907 seconds
出现问题后把6.1的repare了一次,还是这样
请问高手怎么解决?
你的7.0要卸载干净再装6.1,高版本的程序低版本用本来就有可能有问题。
你按照提示warning: close is not implemented and will always fail
lseek is not implemented and will always fail
把这两个函数修改一下,再试试。
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |