Community
cancel
Showing results for 
Search instead for 
Did you mean: 
yamamo2
Beginner
1,037 Views

About MAX10(10M16SAU) and DP83848 communication with MII

Hi,

I develop my FPGA board with 10M16SAU and DP83848.

I want to execute the Simple Socket Server demo on my board. However My board cannot be gotten IP address(not responce ping from my PC. Both of static IP and DHCP are NG).

My Nios II Console's outputs are as follows.

---

InterNiche Portable TCP/IP, v3.1

Copyright 1996-2008 by InterNiche Technologies. All rights reserved.

altera_eth_tse_init 0

prep_tse_mac 0

Can't read the MAC address from your board. We will assign you

a MAC address.

Please enter your 9-digit serial number. This is printed on a

label under your Nios dev. board. The first 3 digits of the

-->Created "Inet main" task (Prio: 2)

Created "clock tick" task (Prio: 3)

123456789

123456789

Your Ethernet MAC address is 00:07:ed:ff:00:01

prepped 1 interface, initializing...

tse_mac_init 0

List of PHY profiles supported (Total profiles = 5)...

Profile No. 0 :

PHY Name    : Marvell 88E1111

PHY OUI    : 0x005043

PHY Model Num. : 0x0c

PHY Rev. Num. : 0x02

Status Register: 0x11

Speed Bit   : 14

Duplex Bit   : 13

Link Bit    : 10

Profile No. 1 :

PHY Name    : Marvell Quad PHY 88E1145

PHY OUI    : 0x005043

PHY Model Num. : 0x0d

PHY Rev. Num. : 0x02

Status Register: 0x11

Speed Bit   : 14

Duplex Bit   : 13

Link Bit    : 10

Profile No. 2 :

PHY Name    : National DP83865

PHY OUI    : 0x080017

PHY Model Num. : 0x07

PHY Rev. Num. : 0x0a

Status Register: 0x11

Speed Bit   : 3

Duplex Bit   : 1

Link Bit    : 2

Profile No. 3 :

PHY Name    : National DP83848C

PHY OUI    : 0x080017

PHY Model Num. : 0x09

PHY Rev. Num. : 0x00

Status Register: 0x00

Speed Bit   : 0

Duplex Bit   : 0

Link Bit    : 0

Profile No. 4 :

PHY Name    : Intel PEF7071

PHY OUI    : 0x355969

PHY Model Num. : 0x00

PHY Rev. Num. : 0x01

Status Register: 0x00

Speed Bit   : 0

Duplex Bit   : 0

Link Bit    : 0

INFO  : TSE MAC 0 found at address 0x01083000

INFO  : Multi Channel      = No

INFO  : MDIO Shared       = No

INFO  : MAC Type         = 10/100 Mbps Small MAC

INFO  : MAC Address       = 0x01083000

INFO  : MAC Device        = tse_mac_device[0]

INFO  : PHY National DP83848C found at PHY address 0x01 of MAC Group[0]

INFO  : PHY OUI       = 0x080017

INFO  : PHY Model Number  = 0x09

INFO  : PHY Revision Number = 0x0

INFO  : PHY[0.0] - Automatically mapped to tse_mac_device[0]

INFO  : PHY[0.0] - Advertisement of 1000 Base-T Full Duplex set to 0

INFO  : PHY[0.0] - Advertisement of 1000 Base-T Half Duplex set to 0

INFO  : PHY[0.0] - Advertisement of 100 Base-T4 set to 0

INFO  : PHY[0.0] - Advertisement of 100 Base-TX Full Duplex set to 1

INFO  : PHY[0.0] - Advertisement of 100 Base-TX Half Duplex set to 1

INFO  : PHY[0.0] - Advertisement of 10 Base-TX Full Duplex set to 1

INFO  : PHY[0.0] - Advertisement of 10 Base-TX Half Duplex set to 1

INFO  : PHY[0.0] - Restart Auto-Negotiation, checking PHY link...

INFO  : PHY[0.0] - Auto-Negotiation PASSED

INFO  : PHY[0.0] - Advertisement of 1000 Base-T Full Duplex set to 0

INFO  : PHY[0.0] - Advertisement 1000 Base-T half Duplex set to 0

INFO  : PHY[0.0] - Restart Auto-Negotiation, checking PHY link...

INFO  : PHY[0.0] - Auto-Negotiation PASSED

INFO  : PHY[0.0] - Checking link...

INFO  : PHY[0.0] - Link established

INFO  : PHY[0.0] - Speed = 100, Duplex = Full

OK, x=0, CMD_CONFIG=0x01000000

MAC post-initialization: CMD_CONFIG=0x5000203

[tse_msgdma_read_init] RX descriptor chain desc (9 depth) created

mctest init called

IP address of et1 : 172.16.1.100

RX ERROR

DHCP timed out, going back to default IP address(es)

Simple Socket Server starting up

[sss_task] Simple Socket Server listening on port 30

Created "simple socket server" task (Prio: 4)

---

I changed the IPADDR0~3(0.0.0.0 -> 172.16.1.100) and

the GWADDR0~3(0.0.0.0 -> 172.16.1.1) in simple_socket_sever.h.

Other headers and sources are not changed form originals.

 

I cannot figure out what's behind it...

Please tell me any advices!​

Thanks,

1 Reply
Fawaz_J_Intel
Employee
58 Views

Hello sir,

We are not able to replicate this issue since we are not using this TI PHY on our dev kits. this would make the debugging a bit complex at our side, however, we can still send you some debugging steps.

 

I would like to know how did you establish the connection?

in case of static, you need to make sure to configure the PC Ethernet port to a static IP. Plus, you need to configure the socket to be static, and give it an IP. This approach might be challenging.

 

The recommended connection would be using a router, with both PC Ethernet and MAX10 Ethernet are connected to it. Make sure that simple_socket_sever.h is configured to to DHCP.

 

 

One observation here:

INFO  : PHY[0.0] - Auto-Negotiation PASSED

INFO  : PHY[0.0] - Advertisement of 1000 Base-T Full Duplex set to 0

INFO  : PHY[0.0] - Advertisement 1000 Base-T half Duplex set to 0

INFO  : PHY[0.0] - Restart Auto-Negotiation, checking PHY link...

INFO  : PHY[0.0] - Auto-Negotiation PASSED

 

from the message you got from Nios II console, I can see that the Auto-Negotiation is passing. This means that the link is valid between the MAX10 PHY (TI), and your external PHY (PC).

 

Thanks