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.

K2L Ethernet Port 2 does not forward packets to host port 0

We have developed our own MISRA compliant driver for the K2L NETCP.  I can send and receive Ethernet packets on the EVM board via Ethernet port 1 but I can only send packets from Port 2.  When I look at the Port 2 MAC statistics they count up if I send a packet to the port but the host port does not receive the packet.  Can you help ?

  • Sorry, forgot to add: the gige switch is configured in BYPASS mode. So all packets from all ports should go to the host port.

  • Sorry, forgot to add: the gige switch is configured in BYPASS mode. So all packets from all ports should go to the host port.


    You mean that the issue is resolved. Are you still looking for help?
  • I am still looking for help. I just added the BYPASS ALE as extra information. Some more information: I have port 3 in MAC loopback and do not receive packets from this port either.
  • John,

    We have PA/EMAC example in Processor RTOS SDK for K2L, you can download it http://software-dl.ti.com/processor-sdk-rtos/esd/K2L/latest/index_FDS.html and try on the K2L EVM you have.

    The PA example can be created with command like "pdkprojectcreate K2L all little pa dsp", then you can try the PA_emacExample_K2LC66BiosExampleProject. By default this is

    int cpswLpbkMode = CPSW_LOOPBACK_INTERNAL;

    I think you are trying to resolve the problem that packets received from SGMII port 2 (1-based) but didn't forward to host port, this example should be sufficient (you don't care packets came from external world or loopback). NUM_PORTS is defined to "3", so this should include both SGMII 1 and 2.

    ALE bypass is also enabled: if(cpswLpbkMode != CPSW_LOOPBACK_NONE)
            CSL_CPSW_enableAleBypass();

    Can you try this example to see if loopback worked on both SGMII 1 and 2? Then compare with your own driver?

    Regards, Eric

  • Hi Eric,

    We have discovered our problem (rx flow not setup).  All our ports now work correctly.