PTP using RTD GMAC Driver

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PTP using RTD GMAC Driver

758 次查看
yanis-waabi
Contributor II

Hi,
I'm trying to setup the S32G GMAC0 as a ptp master on the M7 cores.
I'm using RTD driver for GMAC. I could find the function to enable timestamping and correcting the clock but I couldn't find any function related to enabling PTP offloading.

Is there an RTD driver that allows that, or do I have to manually setup the various registers.
If so can you give me the list of register to set to make it act as a ptp master ?

Best regards

标记 (3)
0 项奖励
回复
3 回复数

729 次查看
yanis-waabi
Contributor II

Thank you for your quick response.
It seems the doc you shared is for using the PFE with PTP. But I want to use instead the GMAC which provide functions to offload the PTP messaging, controlled by GMAC_MAC_PTO_CONTROL register for instance.
Is there somewhere a high level API that I could use for that ?

0 项奖励
回复

699 次查看
carlos_o
NXP TechSupport
NXP TechSupport

Hi @yanis-waabi 

You could use the PTP functionality with the linux BSP distributions to run it with GMAC

please refer to the Linux BSP 42.0 User Manual for S32G3 platforms (or the BSP Version you use) at chapter 8

carlos_o_0-1745527441967.png

 

Otherwise, you need to do your own implementation if you want to do it with the RTDs. 

0 项奖励
回复

734 次查看
carlos_o
NXP TechSupport
NXP TechSupport

Hi @yanis-waabi,

Thanks for your question.

You could find a Reference Software of the Automotive SW - S32G - gPTP Stack at Flexera, the package you have an example that has a function to initialize the PTP Stack

carlos_o_0-1745449144476.png

Also refers to the gPTP S32G User Manual that is included when you download the package, there you could see the prerequisites to run the example. 

Let me know if you have more questions about this topic. 

 

0 项奖励
回复