Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,305 Views

Marvel PHY 88E1111 and TSE MAC loopback code example

Hi, I am using TSE MAC from Altera and Marvell PHY 88E1111 .The software i am using on nios processor is lwip stack example http://www.alteraforum.com/forum/showthread.php?t=23787 (http://www.alteraforum.com/forum/showthread.php?t=23787

It works perfectly on evaluation board and it worked well on my custom board.Due to hardware failure (short-circuit),it stopped working ( I am receiving corrupt data packets ).I am now struggling to determine the issue and i want to perform loopback on the PHY (various loopback options are documented on marvell phy datasheet,unable to attach it due to NDA).Does anybody have a loopback code example? 

I am asking because i pretty much have an idea how to set the appropriate registers (using altera API) ,but i have no idea how to send and receive data through TSE MAC in loopback,should i or should i not have delays in between ,etc.... 

Thank You, 

Michael
0 Kudos
2 Replies
Altera_Forum
Honored Contributor I
138 Views

Whether you need/want to program delays between the test packets depends more on what you are trying to test, and the speed/buffering available to the test software. 

 

For that level of testing you may want a special MAC driver, rather than one designed for normal operation.
Altera_Forum
Honored Contributor I
138 Views

Well,i suppose i wouldn't need that (at least for now).So,does anyone have an example for the loopback ? 

Thank You, 

Michael
Reply