Forum Discussion
Altera_Forum
Honored Contributor
14 years agoEthernet Example Design on Cyclone III Dev Board (3C120F780)
Hi,
I'm not able to get the Altera's Ethernet Example Design to work on the Cyclone III Dev. Board. I used the "Using the NicheStack TCP/IP Stack - Nios II Edition Tutorial".
PHY INFO: 0x12 141 cc2
PHY INFO: Issuing PHY Reset
PHY INFO: waiting on PHY link...
PHY INFO: PHY link detected, allowing network to start.
SSS INFO: Connecting...
InterNiche Portable TCP/IP, v3.1
Copyright 1996-2008 by InterNiche Technologies. All rights reserved.
prep_tse_mac 0
Your Ethernet MAC address is 00:07:ed:08:xx:xx
prepped 1 interface, initializing...
INFO : TSE MAC 0 found at address 0x0800a000
INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group
INFO : PHY - Automatically mapped to tse_mac_device
INFO : PHY - Restart Auto-Negotiation, checking PHY link...
INFO : PHY - Auto-Negotiation PASSED
INFO : PHY - Checking link...
INFO : PHY - Link established
INFO : PHY - Speed = 1000, Duplex = Full
OK, x=48, CMD_CONFIG=0x00000000
MAC post-initialization: CMD_CONFIG=0x0400020b
RX descriptor chain desc (1 depth) created
mctest init called
IP address of et1 : 134.130.xxx.xxx
Created "Inet main" task (Prio: 2)
Created "clock tick" task (Prio: 3)
DHCP timed out, going back to default IP address(es)
Nios II Simple Socket Server starting up.
Created "monitor_phy" task (Prio: 9)
Created "Nios II Simple Socket Server" task (Prio: 10)
Nios II Simple Socket Server listening on port 30
The DHCP isn't working, I cannot ping the board and telnet isn't working. In a next step I set the IP to a static one -> the same effect. I got the same effect for the example templates in Nios2-Eclipse. I checked the same design with the NEEK board and it runs well (naturally the .sof for the NEEK) with the original flash-file (the application selector) and the niosii_ethernet_standard_3c25.sof overloading. Using another flash-content, it also doesn't work like the 3C120. Any idea? Best Regards Mark19 Replies
- Altera_Forum
Honored Contributor
Is the static IP in the same subnet as the computer you use to ping?
- Altera_Forum
Honored Contributor
yes, it is.
- Altera_Forum
Honored Contributor
--- Quote Start --- Hi, I'm not able to get the Altera's Ethernet Example Design to work on the Cyclone III Dev. Board. I used the "Using the NicheStack TCP/IP Stack - Nios II Edition Tutorial".
The DHCP isn't working, I cannot ping the board and telnet isn't working. In a next step I set the IP to a static one -> the same effect. I got the same effect for the example templates in Nios2-Eclipse. I checked the same design with the NEEK board and it runs well (naturally the .sof for the NEEK) with the original flash-file (the application selector) and the niosii_ethernet_standard_3c25.sof overloading. Using another flash-content, it also doesn't work like the 3C120. Any idea? Best Regards Mark --- Quote End --- seeing your output it seems that u r hardware is not taking ip address. go to the simple_socket_server.h file and give your IP address + if you don't have DHCP server, through network_utilities.c file disable it (*use_dhcp = 0)PHY INFO: 0x12 141 cc2 PHY INFO: Issuing PHY Reset PHY INFO: waiting on PHY link... PHY INFO: PHY link detected, allowing network to start. SSS INFO: Connecting... InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prep_tse_mac 0 Your Ethernet MAC address is 00:07:ed:08:xx:xx prepped 1 interface, initializing... INFO : TSE MAC 0 found at address 0x0800a000 INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group INFO : PHY - Automatically mapped to tse_mac_device INFO : PHY - Restart Auto-Negotiation, checking PHY link... INFO : PHY - Auto-Negotiation PASSED INFO : PHY - Checking link... INFO : PHY - Link established INFO : PHY - Speed = 1000, Duplex = Full OK, x=48, CMD_CONFIG=0x00000000 MAC post-initialization: CMD_CONFIG=0x0400020b RX descriptor chain desc (1 depth) created mctest init called IP address of et1 : 134.130.xxx.xxx Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) DHCP timed out, going back to default IP address(es) Nios II Simple Socket Server starting up. Created "monitor_phy" task (Prio: 9) Created "Nios II Simple Socket Server" task (Prio: 10) Nios II Simple Socket Server listening on port 30 - Altera_Forum
Honored Contributor
I marked the last two bytes of the IP and the MAC with "x", because the IP is in a public subnet.
I disabled DHCP and also tested the design in a private subnet (192.168.123.001 255.255.255.000) with no change. - Altera_Forum
Honored Contributor
The hardware doesn't work. I believe timing constrains are wrong or there are none.
- Altera_Forum
Honored Contributor
@Socrates:
It's the original .sof-file from Altera. So it should work, or not? @all is there anyone who has an ethernet design running for the 3c120f780 Cyclone III dev board and can send it to me? Best Regards - Altera_Forum
Honored Contributor
Did you disable DHCP in the NicheStack properties?
Please post again the console log with DHCP disabled. - Altera_Forum
Honored Contributor
I set "dhcp=0" in iniche_init.c (line line 341)
again no ping.PHY INFO: 0x12 141 cc2 PHY INFO: Issuing PHY Reset PHY INFO: waiting on PHY link... PHY INFO: PHY link detected, allowing network to start. SSS INFO: Connecting... InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prep_tse_mac 0 Your Ethernet MAC address is 00:07:ed:08:1a:2a prepped 1 interface, initializing... INFO : TSE MAC 0 found at address 0x0800a000 INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group INFO : PHY - Automatically mapped to tse_mac_device INFO : PHY - Restart Auto-Negotiation, checking PHY link... INFO : PHY - Auto-Negotiation PASSED INFO : PHY - Checking link... INFO : PHY - Link established INFO : PHY - Speed = 1000, Duplex = Full OK, x=4, CMD_CONFIG=0x00000000 MAC post-initialization: CMD_CONFIG=0x0400020b RX descriptor chain desc (1 depth) created mctest init called IP address of et1 : 192.168.123.2 Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) Nios II Simple Socket Server starting up. Created "monitor_phy" task (Prio: 9) Created "Nios II Simple Socket Server" task (Prio: 10) Nios II Simple Socket Server listening on port 30 - Altera_Forum
Honored Contributor
--- Quote Start --- I set "dhcp=0" in iniche_init.c (line line 341) --- Quote End --- I'm not sure this assignment will really disable dhcp. You should disable it in bsp iNiche properties or remove the DHCP_CLIENT define inside ipport.h - Altera_Forum
Honored Contributor
Disabling DHCP-Server in BSP-Editor->Software packages results in 3 errors:
Description Resource Path Location Type make: *** [niosII_Simple_Socket_Server_ohne_DHCP.elf] Error 1 niosII_Simple_Socket_Server_ohne_DHCP C/C++ Problem Description Resource Path Location Type undefined reference to `dhc_set_callback' iniche_init.c /niosII_Simple_Socket_Server_ohne_DHCP line 509 C/C++ Problem Description Resource Path Location Type undefined reference to `dhc_set_state' iniche_init.c /niosII_Simple_Socket_Server_ohne_DHCP line 483 C/C++ Problem