PTP using RTD GMAC Driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PTP using RTD GMAC Driver

756件の閲覧回数
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 返答(返信)

727件の閲覧回数
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 件の賞賛
返信

697件の閲覧回数
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 件の賞賛
返信

732件の閲覧回数
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 件の賞賛
返信