PPS output imx6ul

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

PPS output imx6ul

1,210 次查看
Kensou
Contributor III

I have got a Variscite VAR-DART-6UL, which is provided with NXP imx6ul.

My goal is to let the pps ptp signal out and in order to see it via oscilloscope.

I followed the Variscite wiki:

https://variwiki.com/index.php?title=DART-6UL_Eth_IEEE.1588

but output is stuck at 0.

I also tried the solution proposed here: https://community.nxp.com/t5/i-MX-Processors/imx6ul-pps-signal-output/m-p/1793376#M219046

But when I echo the period I receive the error: start time must be greater then current time! Variscite support told me that, since my device tree mods are correct and since PTP/PPS functions are directly in NXP imx6ul device, I have to ask to NXP support.

Could you help me to solve the problem?

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

1,190 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

There is also this guide from our side that you could review.

Could you share the process told in the guide from your side? With the logs included.

Also, do you enable the pps? Does it exist?

You are using VSC EVK? What ETH port are you using? Could you share the schematics?

Regards

0 项奖励
回复

1,185 次查看
Kensou
Contributor III

I solved the problem: pps was configured to generate very small pulse every second and my oscilloscope was not able to detect it.

I modified the file drivers/net/ethernet/freescale/fec_ptp.c replacing FEC_HIGH_PULSE with FEC_TMODE_TOGGLE in fec_ptp_enable_pps function in order to generate a square wave.

However, I have got a last question: is there a mannere, also by modifying fec_ptp.c file, to reduce the pps periodicity, generating a square wave of a lower period (i.e. 1ms period)?

0 项奖励
回复

1,175 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

You should change the period setting found here,

In this way, you use the same pulses configuration for the FRC and just count less nano seconds. As said by the description, the MAX value is 4,000,000,000 ns.

Regards,

0 项奖励
回复

1,149 次查看
Kensou
Contributor III

Thank you for your reply, I saw this line but I would like to have a period on the order of 1ms, is it possible or 1second is the minimum period value?

0 项奖励
回复