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.

DP83640: Phy is not capturing timestamps for layer 2 PTP event messages

Part Number: DP83640

Hi,

I'm trying to send Layer 2 ptp pdelay request or sync messages (any event message) to DP83640. I can see content of received message is correct. But when I control RXTS_RDY bit of PTP_STS register, I see that it is not set.

You can find my register configuration for PTP below:

PTP_CTL:

                PTP_ENABLE

PTP_RXCFG0:

                RX_L2_EN,

                RX_TS_EN

PTP_TXCFG0: 

               TX_TS_EN, 

               TX_L2_EN

PTP_TXCFG1:

               BYTE0_MASK = 0xf8

               BYTE0_DATA = 0x00

PTP_RXCFG1:

               BYTE0_MASK = 0xf8

               BYTE0_DATA = 0x00

  • Hi Ram,

    You mentioned that you were able to read the content of the received message and it is correct, were you able to check if any other events got triggered in the PTP_STS registers?

    For register configuration, I would recommend referring to a more detailed 1588 files available in DP83640SW-LIB:
    https://www.ti.com/tool/DP83640SW-LIB

    You can download this folder and the PTP files are available in this path snlu049\EPL_v193_20091023\protocol\PTP, please refer to the epl_1588.c file it has detailed register write functions for TransmitConfig, ReceiveConfig and CheckforEvents. 

    You can also refer to the Software Development Guide available in the same download folder.

    Hope this helps, please let me know if you have further queries.

    Thanks,
    Rahul