This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c6657 POST EMAC loopback test reports success but nothing received

Other Parts Discussed in Thread: TMS320C6657

Just a head's up, the EMAC test for the TMS320C6657 power-on self test reports success using this check:

mcsdk_2_01_02_05\tools\post\src\post.c line 805:

if(EMAC_Recv(test_buf) < 0)     {

         return POST_TEST_RESULT_FAILED;    

}    

return POST_TEST_RESULT_PASSED;  

It turns out the return value for EMAC_Recv is zero - it's receiving nothing.  I assume there is some problem with the loopback setup.

Any recommendations for an alternative way to test the loopback?

 

 

 

  • Mike,

    Can you try the 6657 EMAC loopback under ti\pdk_C6657_1_1_2_6\packages\ti\drv\exampleProjects?

    Regards, Eric

  • Thanks, Eric!  This was much more useful.  Using that as a base, I have a number of different loopback tests working on the EVM.

    The same tests aren't working on our board, using a slightly different Marvell PHY (88E1512).  I think I have all the tweaks needed on the PHY side to get things to work, but I'm not getting SGMII link.  The eye diagrams for the signal in both directions look good.  I've combed through the SGMII posts on the e2e and the Keystone EMAC doc - are there any other resources that might shed light on using SGMII with TI DSPs?  Up to this point, we've always used RGMII (without problems) but this interface isn't available on the part we're using...

  • Hi Mike,

    i am using C6657 DSP we have also "Marvell Alaska 88E1512" on our custom board not like "Marvell 88E1111"   on TI EVM boards. i want to test my Gbit Ethernet and i am using the "client" project from TI, and it went to the point SGMII Config successful and goes further not. i see that SGMII link is not up. have you already done some testing in this direction?Have you changed any code from TI to work it out for your EMAC stuff?if you already successful in this direction, please tell me what you done.

     

    Thanks,

    Ram.

  • Hi Ram

    Have you made any progress on the 88E1512 PHY?
    Last we were in touch in another thread I said that the address of the Phy should be 0 and that the loopback example then worked. Unfortunately I was wrong, because when I turn off the loopback then I am also stuck at the point where SGMII waits for link to come up.

    If you have made any progress please share it, and I will be very greatfull.

    Best
    Jens
  • Hi,
    i made progress and the loop back test was successful.i used the POST(power on self test) project from TI which configures also the EMAC stuff.please first try with POST project.

    Thanks,
    Ram.
  • Thanks Ram

    I am not sure what to do with the POST project, it seems that it set up the sgmii to use loopback, but I do not want loopback, I wish to actually transmit some data throug my ethernet cable.
    I also seems that if I change post.c to not use loopback then the test reports TEST_PASS eventhough nothing is recieved (just as the initial post in this thread suggests)

    Have you managed to transmit any data from one device to another or to a PC?

    Jens
  • Hi,

    i done only the loopback test.i have not send any packets from ethernet . i do the testing in the next month.

    thanks,
    Ram.
  • Oh, good luck with that :-)

    I would advice you to set aside plenty of time for this task.

    I have created a new thread that you might find interesting http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/386402

    Best
    Jens