UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor nemmo0
Visitor
5,416 Views
Registered: ‎08-09-2014

Modifying AXI_Ethernet example

Jump to solution

Hi,

 

I have run the examples

 

xaxiethernet_example_intr_fifo.c

xaxiethernet_example_polled.c

 

of Vivado 2013.4 on KC705. The polling mode tests and the interrupt mode tests are passed successfully. This example puts the PHY on loopback mode. Now what I want is to break the loopbak and send the packets out to the PC.

 

How can I modify these example codes to break the loop?

 

What I did so far is just commented out the line for loopback

 

//Status = AxiEthernetUtilEnterLoopback(&AxiEthernetInstance, LoopbackSpeed);

 

Tests fail as expected but cannot observe any packets on wireshark.

 

 

Thanks

 

 

0 Kudos
1 Solution

Accepted Solutions
Visitor nemmo0
Visitor
9,293 Views
Registered: ‎08-09-2014

Re: Modifying AXI_Ethernet example

Jump to solution

Solved the problem.

 

AxiEthernetUtilEnterLoopback()  also configures the PHY for speed... etc as well as loopback mode. So left this function but only commented  

 

//XAxiEthernet_PhyWrite(AxiEthernetInstancePtr, PhyAddr, PHY_R0_CTRL_REG, PhyReg0 | PHY_R0_LOOPBACK);

 

Thanks

View solution in original post

0 Kudos
2 Replies
Visitor nemmo0
Visitor
9,294 Views
Registered: ‎08-09-2014

Re: Modifying AXI_Ethernet example

Jump to solution

Solved the problem.

 

AxiEthernetUtilEnterLoopback()  also configures the PHY for speed... etc as well as loopback mode. So left this function but only commented  

 

//XAxiEthernet_PhyWrite(AxiEthernetInstancePtr, PhyAddr, PHY_R0_CTRL_REG, PhyReg0 | PHY_R0_LOOPBACK);

 

Thanks

View solution in original post

0 Kudos
1,073 Views
Registered: ‎03-12-2015

Re: Modifying AXI_Ethernet example

Jump to solution

how do you receive packets from pc with application axi_eth_fifo_intr example?

0 Kudos