Forum Discussion
Altera_Forum
Honored Contributor
12 years agoEthernet on Bemicro SDK
I'm trying to port the standard net example onto the BeMicroSDK which uses the DP83848C PHY. To keep it simple, I've disabled DHCP and hard-coded a Static IP for now. Everything seems to synth...
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- the problem could also be something like your host PC ethernet adapter had been configured to not auto-negotiate --- Quote End --- Not sure why, as all the settings match, but I changed computers and the auto-negotation now passes:
-->Your Ethernet MAC address is 00:07:ed:ff:cd:15
Static IP Address is 10.10.1.150
prepped 1 interface, initializing...
INFO : TSE MAC 0 found at address 0x04000000
INFO : PHY National DP83848C found at PHY address 0x17 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 = 100, Duplex = Full
OK, x=3, CMD_CONFIG=0x00000000
MAC post-initialization: CMD_CONFIG=0x04000203
RX descriptor chain desc (1 depth) created
mctest init called
IP address of et1 : 10.10.1.150
Created "Inet main" task (Prio: 2)
Created "clock tick" task (Prio: 3)
Created "web server" task (Prio: 4)
Web Server starting up
However, the same computer that's connected to the BeMicro, time's out when I enter its (static) ip address in the browser. I was thinking the problem has to do with the file system , since the NEEK boards store the webpage zip in flash, and on the BeMicro I'm just linking it as an object into ddr. However, putting a breakpoint in WSTask() where it waits a incomming connection on the listening socket, but it never gets there. Without any error message on the console, I'm not sure if it's on the logic/nios side or if the pc request isn't getting to it. Only the single wired NIC is connected to the BeMicro, with the PC TCP/IP setting set for a static IP 10.10.1.2, subnet 255.255.255.0, gateway of 10.10.1.1... the BeMicro set for a static IP of 10.10.1.150. Maybe WireShark can see for sure if there's traffic, but any obvious reason why there would be the webserver wouldn't work despite the mac/phy reporting auto-negotation and link established?