Hello,
We have our own design based on imx8mp and kernel 6.6.23 from NXP.
We are using both flexcan interfaces and we would like to read hardware timestamp from driver. We are using candump but always read 0
candump -H -L
(0000000000.000000) canfd1 776#94CD03004FC7E1
Do you know how we can enable this feature?
Best regards and thank you
Angel
Hello,
CRTL1[TSYN]
to '1' to automatically reset the timer upon receiving a frame, which is useful for maintaining message order but still subject to the 16-bit limit.HR_TIME_STAMP
register to get the high-resolution timestampRegards
And has a nasty feature that every time CAN clock synchronization takes place, this 16-bit timer clock period is affected a bit. Not all of this 16-bit timer periods are equal to bit time. So if you try to use some other on-SoC timer (with clock derived from the same clock parent as CAN clock) to count 16-bit timer overflows to extend the width of timestamp clock, you will need to somehow track the drift of timestamp clock due to CAN receive traffic.
Hello,
Thank you for your response.
We are aware that the HW Flexcan controller in the imx8mp supports this hardware timestamp feature.
Could you please confirm whether the Linux driver provided by NXP in kernel 6.6.23 also supports this feature?
Best regards and thank you
Angel