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.

TDA4AH-Q1: J784S4XG01EVM - Loopback Test Example - no frames on the cable

Part Number: TDA4AH-Q1


Hi,

I'm working on a FreeRTOS Ethernet application.

I made some test with loopback test example and lwip example with the CCS without an HLOS on the ENET_CPSW_2G.

The lwip example works like I expected, I can ping the board.

But for the loopback test example I don't see a configuration where actual frames are send to the cable.

Is there a way to use the loopback test example to send Ethernet frames on the cable.

Best Regards

Daniel

  • Hi,

    But for the loopback test example I don't see a configuration where actual frames are send to the cable.

    In case of loopback test you can't see frames on the cable and the data will be loopback at MAC level when MAC loopback is selected and if we select PHY loopback data will be loopback at PHY and in either of the same data will not come out of PHY to see on cable.

    Ethernet Frames will be prepared in "EnetLpbk_txTask" and send out and will be received using "EnetLpbk_rxTask" and inside Rx task packet will be validated (EnetLpbk_verifyRxFrame).

    Is there a way to use the loopback test example to send Ethernet frames on the cable.

    No, as mentioned above in both MAC and PHY loopback data will not be sent out on the cable.

    Best Regards,
    Sudheer

  • I've turned off the PHY loopback setting and I set link speed and duplexity to auto.

    Then I got frames on the cable.

    ...


    linkCfg->speed = ENET_SPEED_AUTO;
    linkCfg->duplexity = ENET_DUPLEX_AUTO;

    ...

    /* MAC and PHY loopbacks are mutually exclusive *

    phyCfg->loopbackEn = false;// = gEnetLpbk.testPhyLoopback && !gEnetLpbk.testExtLoopback;
    macCfg.loopbackEn = false;//!gEnetLpbk.testPhyLoopback;

    ....