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.

PROCESSOR-SDK-AM65X: Emac driver interrupt support on SR2.0 hardware w/ PROCESSOR SDK RTOS

Part Number: PROCESSOR-SDK-AM65X
Other Parts Discussed in Thread: AM6548

Dear TI team,

we have a question regarding the interrupt mode of the emac driver on AM6548 SR2.0 hardware.

We have an application which is successfully running on the AM6548 SR1.0 with SDK 07.00, which uses the TI emac driver on TI-RTOS (SYS/BIOS) to send and receive frames. It uses the interrupt mode (EMAC_MODE_INTERRUPT) of the TI emac driver to receive frames.

We're now trying to port the existing application to the SR2.0 hardware. We applied all the necessary changes (different firmware, initialize TX PRU, …), but now sending and receiving frames works only in polling mode. For this application we require interrupt mode.

In the previous version of our application, we used to call emac_poll_pkt to receive frames. If we do the same on SR2.0 we don't get any frames.

If we call emac_poll_ctrl with rxPktRings=0x2, we receive all frames, so basically receiving works, but only in polling mode. We can't use this function, because it works in a non-blocking fashion. The EmacLoopbackTest application in the PDK also uses polling mode for SR2.0 and interrupt mode for SR1.0.

We found this thread on the E2E forum

https://e2e.ti.com/support/processors/f/791/p/938752/3501325

According to the above thread interrupt mode was not supported for SR2.0 with the emac driver, but was supposed to be supported by the ENET-LLD. There is source code for the enet-lld in the AM65x PDK, but it doesn't seem to be finished, at least the release notes, user guide etc. don't mention the ENET-LLD.

Is there any driver available that supports interrupt mode on SR2.0 hardware?

What is the status of the ENET-LLD source code that is included in the AM65x PDK? Is it supposed to be usable? Are there known issues?

Best regards,

Dominic

  • Hi Dominic,

    Sorry for the delay.

    You are right in deducing that EMAC driver for SR 2.0 does not support polling method and since there will be no new feature addition on it, there is no plan to add Interrupt mode support.

    ENET-LLD does support Interrupt mode but it is not fully functional for ICSSG so interrupt mode support is currently a gap. We plan to address it in future release.

    Please reach out over email/DM for more details.

    Regards

    Vineet