cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
n5ac
Participant
Participant
6,520 Views
Registered: ‎10-29-2008

TEMAC / LwIP failure to connect

Jump to solution

I have an Ethernet port on my board using  Marvell 88E1111 PHY.  I have wired the PHY to the FPGA MGT just as is done in the ML50x boards.  I have MDC and MDIO going into the FPGA also and connected to the hard TEMAC.  Here's my MHS file for xps_ll_temac:

 

BEGIN xps_ll_temac

 PARAMETER INSTANCE = temac

 PARAMETER HW_VER = 1.01.b

 PARAMETER C_TEMAC_TYPE = 0

 PARAMETER C_PHY_TYPE = 4

 PARAMETER C_SPLB_CLK_PERIOD_PS = 8000

 PARAMETER C_BUS2CORE_CLK_RATIO = 1

 PARAMETER C_TEMAC0_PHYADDR = 0b00000

 PARAMETER C_TEMAC0_TXCSUM = 1

 PARAMETER C_TEMAC0_RXCSUM = 1

 PARAMETER C_TEMAC0_TXFIFO = 2048

 PARAMETER C_TEMAC0_RXFIFO = 2048

 PARAMETER C_BASEADDR = 0x81c00000

 PARAMETER C_HIGHADDR = 0x81c0ffff

 BUS_INTERFACE SPLB = mb_plb

 BUS_INTERFACE LLINK0 = temac_LLINK0

 PORT RXN_0 = temac_RXN_0

 PORT RXP_0 = temac_RXP_0

 PORT TXN_0 = temac_TXN_0

 PORT TXP_0 = temac_TXP_0

 PORT MDC_0 = temac_MDC_0

 PORT MDIO_0 = temac_MDIO_0

 PORT TemacIntc0_Irpt = temac_TemacIntc0_Irpt

 PORT TemacPhy_RST_n = temac_TemacPhy_RST_n

 PORT MGTCLK_N = temac_MGTCLK_0_N

 PORT MGTCLK_P = temac_MGTCLK_0_P

END

 

My issue is that using the sample applications in XAPP1026, I receive the following message when I run the app in microblaze:

 


              Server   Port Connect With..

-------------------- ------ --------------------

         echo server      7 $ telnet <board_ip> 7


XLlTemac detect_phy: No PHY detected.  Assuming a PHY at address 0

auto-negotiated link speed: 100

network is up...

Launching echo server...

In echo server...

 

I have the PHY wired to the LEDs on the connector and the PHY is indicating that it is plugged into a 1Gb Ethernet port (which is it), yet the software is reporting that it is 100 speed.  I am unable to connect to the echo server that I have running.  I placed messages in the server code to see where it is, and it clearly is waiting for a connect, but never gets one when I connect.  
 
Also, when I look on wire shark, I can see my PC attempting to get the MAC address of my board with an ARP request (when I try to connect).  It never gets a response.  I can see the RX LED on the connector blink so I know the ARP requests are hitting my board.
 
Do I have a failure to recognize the negotiated speed?  Is this some kind of MDC/MDIO problem?  Any other ideas?
 
Steve 
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
n5ac
Participant
Participant
7,903 Views
Registered: ‎10-29-2008

OK I found my problem.  In setting up the MHS file, I had neglected to connect the Local Link clock on the TEMAC.  So without that, there was no data being moved around.  The drivers found the PHY because that connection is through the MDC/MDIO lines.  Anyway, adding this to my MHS file in the xps_ll_temac peripheral and it solved the problem (the mb_clk is my 200MHz clock for the Microblaze):

 

 PORT LlinkTemac0_CLK = mb_clk

 

 

Steve 

View solution in original post

0 Kudos
4 Replies
n5ac
Participant
Participant
6,502 Views
Registered: ‎10-29-2008

I discovered a footnote in the MAC documentation that indicated that I cannot use a PHY address of b00000 because:

 

The value "00000" is a broadcast PHY address and should not be used to avoid contention between the internal

HARD_TEMAC PHYs and the external PHY(s). 

 

I blue-wired this on my PHY to give it the address b00001 and then updated my settings in the MHS file and I no longer get the PHY not detected error.  I still cannot, however, get an ARP response or anything else out of the Ethernet port.  I've turned on the debug in LwIP, but there is no obvious error.  ARP appears to be running because a timer times out periodically and then a message is shown on the console from the debug statements.  

 

Any ideas?

 

Thanks,

Steve 

0 Kudos
n5ac
Participant
Participant
7,904 Views
Registered: ‎10-29-2008

OK I found my problem.  In setting up the MHS file, I had neglected to connect the Local Link clock on the TEMAC.  So without that, there was no data being moved around.  The drivers found the PHY because that connection is through the MDC/MDIO lines.  Anyway, adding this to my MHS file in the xps_ll_temac peripheral and it solved the problem (the mb_clk is my 200MHz clock for the Microblaze):

 

 PORT LlinkTemac0_CLK = mb_clk

 

 

Steve 

View solution in original post

0 Kudos
ady_hbad
Observer
Observer
4,562 Views
Registered: ‎05-03-2011

dear Sir,

 

i am having  a similar problem...

 

I have designed spartan6 based custom board where i am interfacing microblaze with axiethernetlite core. The design is conceptually based on AvnetLX9 microboard.

 

I have used DDR_SDRAM (MT46V32M16CV-5B) and 10/100 PHY (DP83848jSQNOPB) in the design.

 

I am working with xilinx 14.4....

 

My processor runs at 83.3333MHz and ram at 166.66666Mhz..

 

I am able to successfully communicate using uart interface and some GPIO leds...

 

pheripheral test is getting passed for all...

 

The problem is while running echo server example i am unable to ping....

 

then after searching all the xilinx forums, i have incorporated all changes as per AR# 39489...

 

then after this i followed each and every step as per attached AvtS6LX9MicroBoard_SW201_lwIP_Apps_14_4_01.pdf ,for running a webserver example..

 

but then also i was not even able to ping the board...

 

then i finally doubted the hardware....after probing the phy using MSO while the echo server program was running i found the following problems:

 

1. PHY_TX_CLK   no activity

2. PHY_RX_CLK   no activity

3. PHY_RX_DV    was consistently low

4. PHY_RX_ER    was consistently high

 

kindly guide me what could be the issue....

 

i was also attached my schematic design..

 

Thanks & Regards,

Aditya

 

0 Kudos
adityag
Visitor
Visitor
4,550 Views
Registered: ‎09-05-2013

this problem got solved by pulling up rxd lines...

 

this is reqd only for my phy

0 Kudos