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.

AM2434: Using CPTS to Timestamp ingress packet CPSW

Part Number: AM2434

Hello Ti,

I'm using the SDK : AM243x MCU+ SDK  09.00.00

with the plateform: AM243x ( AM2434)

According to the latest SDK we can use the CPTS module in the CPSW to timestamp packets by using EST schedule (as show in your example) or to timestamp some specific PTP sync packets(as show in your example) . I was wondering if it's possible to use the CPTS module in the CPSW to timestamp all ingress packets when they arrive at the MAC Port of the CPSW without PTP stack or EST schedule and retrieve this timestamp.

Thank you very much,

Sincerely,

Tianyi LIU

  • Hi Tianyi,

    Let me check this and get back by early next week.

  • Hi Tianyi,

    It is possible to get the timestamp for packets coming via mac ports to host port. As a part of DMA packet info: 

    EnetUdma_PktInfo (source\networking\enet\core\include\dma\udma\enet_udma.h)
        /*! Packet time stamp information.
         *
         * For TX, if tsInfo.enableHostTxTs flag is set to true, packet will be timestampped
         * on egress and will trigger host transmit event in CPTS. The timestamp value is then
         * stored in CPTS FIFO with given sequence Id, message type and domain value. This
         * can be used to timestamp any packet (even non-PTP) sent from host.
         *
         * For RX, the received packet's ingress timestamp is captured and is stored in
         * tsInfo.rxPktTs. All ingress packets are timestampped. */
        EnetUdma_PktTsInfo tsInfo;
    Please note, this mechanism is not used for PTP, we have not tested this feature completely. I would recommend you to try it out. I will also try it on my end.

    But for packets going from one mac port to another mac port(switching mode) it is not possible.