Conditions: two 83640, connect by the cable. I make one of them sync ethernet mode by setting the SYNC_ENET_EN bit of the PHYCR2.
the two clock output(GPIO 12) locked, but the phase is random when power up. I didn't run the PTP stack.
I notice that file AN-1729 3.2, about Phase Alignment.
I checked EPL\protocol\PTP\ptpControl.c line 272 to 312, which Rob told me: The function starts with the comment // Phase align CLKOUT if requested
That function appears to implement the phase alignment procedure detailed in AN-1729.
The question is :before one step adjustment to the 1588 clock time, everything goes right. I get the event timestamps, checked PTP_ESTS, Calculate the phase error.
But the one step adjustment is not working(I compare the delay between the two clock output by oscilloscope)……
I'm wondering whether I can use phase alignment in sync ethernet mode. I think 83640 should support.
So the reason is I didn't run the 1588 stack? But I think I have already got the event timestamps , and just add phase error to the clock it should work. I don;t think it need the stack running, is it right?
Or as long as the 1588 clock running, it needs the stack. I'm a little confused……