Other Parts Discussed in Thread: AM6548
Hello,
I need support regarding PPS signal. The PPS signal is necessary for calibration of latencies. And at the end for obtaining clock synchronization accuracy. I tried first simple steps to verify ability to use PPS.
HW: TMDX654IDKEVM PROC062A
SW: PROCESSOR-SDK-LINUX-RT-AM65X 08.02.00.01
Check the PPS signal for synchronized clock of PTP device on one IDK board.
1. Start clock synchronization of interfaces on extension board
# phc2sys -c eth1 -s eth3 -O 0
2. Get interface related PTP device
root@am65xx-evm:~# ethtool -T eth3 Time stamping parameters for eth3: Capabilities: hardware-transmit software-transmit hardware-receive software-receive software-system-clock hardware-raw-clock PTP Hardware Clock: 3 Hardware Transmit Timestamp Modes: off on Hardware Receive Filter Modes: none all $root@am65xx-evm:~# ethtool -T eth1 Time stamping parameters for eth1: Capabilities: hardware-transmit software-transmit hardware-receive software-receive software-system-clock hardware-raw-clock PTP Hardware Clock: 4 Hardware Transmit Timestamp Modes: off on Hardware Receive Filter Modes: none all
3. Enable PPS signal output (LD3 and LD5 on extension board)
# echo 1 > /sys/class/ptp/ptp3/pps_enable # echo 1 > /sys/class/ptp/ptp4/pps_enable
Observed behavior
The PPS signals have shifted start of period, it is visible by eyes on blinking LEDs.
Questions
Is the PPS signal in based on the correct PTP device?
Is the PPS signal starting each 1s absolute time of PTP clock?
Check the PPS signal for synchronized clock of PTP device between two IDK board.
1. Connect two IDK boards via interface on extension board.
2. Get interface related PTP device, both boards eth3 - ptp3
root@am65xx-evm:~# ethtool -T eth3 Time stamping parameters for eth3: Capabilities: hardware-transmit software-transmit hardware-receive software-receive software-system-clock hardware-raw-clock PTP Hardware Clock: 3 Hardware Transmit Timestamp Modes: off on Hardware Receive Filter Modes: none all
3. Start clock master
# ptp4l -f oc.cfg -i eth3 &
4. Start slave synchronization
# ptp4l -f oc.cfg -i eth3 -s &
5. Check the status of synchronization
root@am65xx-evm:~# pmc -u -b 0 'GET TIME_STATUS_NP' sending: GET TIME_STATUS_NP 70ff76.fffe.1d6230-0 seq 0 RESPONSE MANAGEMENT TIME_STATUS_NP master_offset -2 ingress_time 1648099864499217328 cumulativeScaledRateOffset +0.000000000 scaledLastGmPhaseChange 0 gmTimeBaseIndicator 0 lastGmPhaseChange 0x0000'0000000000000000.0000 gmPresent true gmIdentity 70ff76.fffe.1d60c8
6. Enable PPS signal output on both boards
# echo 1 > /sys/class/ptp/ptp3/pps_enable
Observed behavior
Despite the synchronized state obtained from manager the LEDs signalize PPS signal with some eye visible delay between first and second board.
Event without calibrated ingress and egress latencies, I expect synchronization accuracy less then ability to se it by eye.
Questions
Why are not the PPS signals synchronized?
Can you support us with the clarification of observed behavior?
Lukas Libal
3113.oc.cfg