Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- No, I haven't changed anything in the header file. Is there a failure when you include the line
#include "dm9000.h" in "alt_sys_init.c"? If the answer is yes Nios can't find the file. So you have to import it into your syslib folder or adding the include paths in Nios. If the answer to the above question is no, you have the false driver for the Nichestack. I searched the web and probably found that driver you mentioned. The INIT and INSTANCE methods are only include if LWIP (the LWIP Stack) is defined. But you use the Nichestack. --- Quote End --- The drive i have is for lwip, which is the stack i'm using now(not Nichestack, which needs another driver). so I'm wondering what the INIT and INSTANCE methods you've mentioned is. I have checked the arguments of ALTERA_AVALON_DM9K_INIT, it seems the error has been solved, but the "alt_sys_init.c" file can't detect the dm9000 itself.