
- UID
- 76832
- 性别
- 男
|

我用nios2的时候,想试用一下,硬件上我用的是nios2安装目录下例子/verilog/niosII_cyclone_1c20/standard/s
tandard.sof,直接下载到nios cyclone开发板上,然后在nios 2 ide下建立一个c/c++ application 用模板生成一
个hello_led_0的项目,但是我在build的时候,出现两个错误,如下:
Error *** [obj/altera_avalon_sysid.o] Error 1 hello_led_0
Error *** [system_project] Error 2 hello_led_0
Error altera_avalon_sysid.h: No such file or
directory[/cygdrive/d/altera/kits/nios2/components/altera_avalon_sysid/HAL/src/altera_avalon_sysid.c]
hello_led_0 line 33
Error altera_avalon_sysid_regs.h: No such file or
directory[/cygdrive/d/altera/kits/nios2/components/altera_avalon_sysid/HAL/src/altera_avalon_sysid.c]
hello_led_0 line 34
Warning implicit declaration of function
`IORD_ALTERA_AVALON_SYSID_ID'[/cygdrive/d/altera/kits/nios2/components/altera_avalon_sysid/HAL/src/al
tera_avalon_sysid.c] hello_led_0 line 60
Warning implicit declaration of function
`IORD_ALTERA_AVALON_SYSID_TIMESTAMP'[/cygdrive/d/altera/kits/nios2/components/altera_avalon_sysid/HAL
/src/altera_avalon_sysid.c] hello_led_0 line 63
好像是说找不到altera_avalon_sysid.h and altera_avalon_sysid_regs.h,但是在
cygdrive/d/altera/kits/nios2/components/altera_avalon_sysid/HAL/src这个目录下有altera_avalon_sysid.c
。后来有人告诉我说在run的时候,构掉Vailidate NIOS II System ID before download这个选项,我按这个做了
,但是仍然有上面的错误,通不过。
请问这是什么原因,应该怎么解决啊,谢谢! |
|