<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to enable PPS on i.MX8-QXP-C0? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-PPS-on-i-MX8-QXP-C0/m-p/1838311#M221962</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to enable PPS output on my i.MX8-QXP-C0 board, and then I would like to read the output on my oscilloscope. I think I need to enable it on some files of the drivers. Can you please let me know what files and where in the file I should edit?&lt;/P&gt;&lt;P&gt;( I found on file "&lt;SPAN&gt;imx8qxp_mek.c&lt;/SPAN&gt;" from the work dir of Yocto. However, I don't know where I should edit.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 06:45:00 GMT</pubDate>
    <dc:creator>killedByBugs</dc:creator>
    <dc:date>2024-04-17T06:45:00Z</dc:date>
    <item>
      <title>How to enable PPS on i.MX8-QXP-C0?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-PPS-on-i-MX8-QXP-C0/m-p/1838311#M221962</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to enable PPS output on my i.MX8-QXP-C0 board, and then I would like to read the output on my oscilloscope. I think I need to enable it on some files of the drivers. Can you please let me know what files and where in the file I should edit?&lt;/P&gt;&lt;P&gt;( I found on file "&lt;SPAN&gt;imx8qxp_mek.c&lt;/SPAN&gt;" from the work dir of Yocto. However, I don't know where I should edit.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 06:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-PPS-on-i-MX8-QXP-C0/m-p/1838311#M221962</guid>
      <dc:creator>killedByBugs</dc:creator>
      <dc:date>2024-04-17T06:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable PPS on i.MX8-QXP-C0?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-PPS-on-i-MX8-QXP-C0/m-p/1838708#M222000</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220909"&gt;@killedByBugs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This &lt;A href="https://community.st.com/t5/stm32-mpus-products/how-to-configure-ptp-pps-out/td-p/72910" target="_self"&gt;post&lt;/A&gt; can be useful. There is described how you can enable PPS in linux.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this can helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 17:54:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-PPS-on-i-MX8-QXP-C0/m-p/1838708#M222000</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-04-01T17:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable PPS on i.MX8-QXP-C0?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-PPS-on-i-MX8-QXP-C0/m-p/1846848#M222501</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Alejandro,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the method on the page you gave me by following steps:&lt;/P&gt;&lt;P&gt;1. run ptp4l:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ptp4l -l 6 -m -i eth0 -p /dev/ptp0 &amp;amp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;2. enable PPS:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;echo 1 &amp;gt; /sys/class/ptp/ptp0/pps_enable&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;&amp;nbsp;change the duty cycle of the PPS clock for a close to 50% ratio&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;echo "0 0 0 1 1" &amp;gt; /sys/class/ptp/ptp0/period&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;However, in step 3, I have got an error:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;fec 5b040000.ethernet: Start time must larger than current time!&lt;BR /&gt;-sh: echo: write error: Invalid argument&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do you have any solution to solve this problem? Can you also please explain why this problem happended?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 07:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-PPS-on-i-MX8-QXP-C0/m-p/1846848#M222501</guid>
      <dc:creator>killedByBugs</dc:creator>
      <dc:date>2024-04-15T07:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable PPS on i.MX8-QXP-C0?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-PPS-on-i-MX8-QXP-C0/m-p/1849567#M222684</link>
      <description>&lt;P&gt;Hi Alejandro,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have fixed the following error &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;fec 5b040000.ethernet: Start time must larger than current time!&lt;BR /&gt;-sh: echo: write error: Invalid argument&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;by changing the second parameter to a number lager than 'current time'.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;echo "0 999 0 1 1" &amp;gt; /sys/class/ptp/ptp0/period&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Then, I find the output on my oscilloscope(please see the following image). However, the output waveform is not a square wave. Should I edit some code of the driver or device tree file to get a square wave?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PPS_out.png" style="width: 818px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/274391i157242D95EFAC678/image-size/large?v=v2&amp;amp;px=999" role="button" title="PPS_out.png" alt="PPS_out.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I also tried:&lt;/P&gt;&lt;P&gt;In the 'work dir' of Yocto, I edit 'fec_ptp.c' in directory '/armv8a-mx8-poky-linux/linux-imx-headers/6.1-r0/git/drivers/net/ethernet/freescale/'. However, when I 'bitbake' again, it seems Yocto doesn't build anything with that file. This editing neither solves my problem. Any suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 06:33:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-enable-PPS-on-i-MX8-QXP-C0/m-p/1849567#M222684</guid>
      <dc:creator>killedByBugs</dc:creator>
      <dc:date>2024-04-18T06:33:01Z</dc:date>
    </item>
  </channel>
</rss>

