Hello,
I am facing an interesting issue with CPTS on Jacinto 6:
I am sending gPTP frames, CPTS works fine, TX events are reported by CPTS in the interrupt. After I reset CPTS (without power cycle), the first TX event I get from CPTS is: message id = 0, sequence id = 0, port = 1, timestamp (EVENT_LOW) = 0. The next TX event I get is valid and matches the gPTP frame I am actually sending. Even if I am not sending any gPTP frames after resetting CPTS I still get the unexpected TX event.
I am resetting CPTS in the following way:
1. Reset the CPTS module as - Clear the CPTS_EN bit in the CPTS_CONTROL register.
2. Write the CLKSEL_RFT value in the CM_GMAC_GMAC_CLKCTRL register in the PRCM with the
desired reference clock selection.
3. Set the CPTS_EN bit in the CPTS_CONTROL register.
Where is this unexpected TX event coming from? Any help would be appreciated.
Thank you,
Jakub