Forum Discussion
53 Replies
- Altera_Forum
Honored Contributor
I'm sorry I don't understand what you are saying... further up you said you were using dhcp, but new you are back at defining the ip yourself...
The IP 192.168.1.234 is inside a comment, it will never be read or used by the compiler. You must define the IPADDR0-3 constants to force an IP address. And remember to turn off the DHCP_CLIENT define too. What does it say in the nios terminal when you run the application? It will tell you what IP address it is using (as I've already said). - Altera_Forum
Honored Contributor
Okey! Thanks Daixiwen so much. Many talks to me really useful. You are genius who I admire.
If i don't understand I will ask you again. - Altera_Forum
Honored Contributor
Dear Daixiwen! Under the derection of you. I have done here. I do like this is true?
I defined the IP as below. :) * If DHCP will not be used, select valid static IP addresses here, for example: * IP: 192.168.1.234 * Gateway: 192.168.1.1 * Subnet Mask: 255.255.255.0 # define IPADDR0 192 # define IPADDR1 168 # define IPADDR2 1 # define IPADDR3 234 # define GWADDR0 192 # define GWADDR1 168 # define GWADDR2 1 # define GWADDR3 1 # define MSKADDR0 255 # define MSKADDR1 255 # define MSKADDR2 255 # define MSKADDR3 0 - Altera_Forum
Honored Contributor
Daixiwen! please help me! I'm really necessary!
I'm confuse! - Altera_Forum
Honored Contributor
What is your problem? It looks like you put it right. Check also the DHCP_CLIENT.
What does it say in the Nios console when you run it? - Altera_Forum
Honored Contributor
As I was compiling the program when A error encountered "Dowloading ELF project failed"
I used NIOS II to compile for my code. help me? - Altera_Forum
Honored Contributor
We would need the complete error message, there can be a lot of different reasons.
Are you using a custom FPGA configuration? In that case it can be timing problems, lack of clock, stuck reset... - Altera_Forum
Honored Contributor
I'm using kit here (http://www.altera.com/products/devkits/altera/kit-cyc3.html)
I checked what you said but can't find any the reason! I really am confused, I am having this problem too many difficulties. - Altera_Forum
Honored Contributor
I use dynamic IP or static IP? easier method?
- Altera_Forum
Honored Contributor
--- Quote Start --- I really am confused, I am having this problem too many difficulties. --- Quote End --- Yes, because you still can't understand that you don't have enough knowledge to do the task right. READ AND LEARN, since nobody will help you. --- Quote Start --- I use dynamic IP or static IP? easier method? --- Quote End --- Static if You don't have DHCP server and auto if you have. Oh wait, I bet you don't know what is DHCP... :D