<?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>LPC Microcontrollers中的主题 Re: lpc54s018 enet PTP timestamp</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1712886#M53946</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have not seen the IEEE 1588 example code in SDK package, can you post the project so that we can have a review?&lt;/P&gt;
&lt;P&gt;Anyway, I think the application note AN12149.pdf is helpful, pls refer to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com.cn/docs/en/nxp/application-notes/AN12149.pdf" target="_blank"&gt;https://www.nxp.com.cn/docs/en/nxp/application-notes/AN12149.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2023 07:22:15 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2023-08-29T07:22:15Z</dc:date>
    <item>
      <title>lpc54s018 enet PTP timestamp</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1712476#M53938</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configure my device as a PTP master, and I expect to receive PTP timestamps when I send a Sync.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL is configured like this:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL |= ENET_MAC_TIMESTAMP_CTRL_TSENA_MASK; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL |= ENET_MAC_TIMESTAMP_CTRL_TSCFUPDT_MASK; &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL |= ENET_MAC_TIMESTAMP_CTRL_TSIPV4ENA_MASK;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL |= ENET_MAC_TIMESTAMP_CTRL_TSVER2ENA_MASK;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL &amp;amp;= ~ENET_MAC_TIMESTAMP_CTRL_SNAPTYPSEL_MASK; // 00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL &amp;amp;= ~ENET_MAC_TIMESTAMP_CTRL_TSENALL_MASK;// not all timestamps, i want only sync&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL |= ENET_MAC_TIMESTAMP_CTRL_TSMSTRENA_MASK;// ptp master&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After digging a lot, I see that I need to add&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;txFrame.txConfig.tsEnable=1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;in err_t ethernetif_linkoutput(struct netif *netif, struct pbuf *p)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, when I add this tsenable, all the packets are timestamped !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i can receive the timestamp in static void ethernet_callback(...)&lt;/P&gt;&lt;P&gt;when ther's a &lt;FONT face="courier new,courier"&gt;kENET_TxIntEvent,.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here're my questions:&lt;/P&gt;&lt;P&gt;* why is there many settings in &lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL&lt;/FONT&gt;, but it seems that there's just the .tsEnable that's is used to activate timestamp for a packet.&lt;/P&gt;&lt;P&gt;* if there's no other better way to do the job, how can I discriminate sent packets in ethernet_callback(...) to reclaim (or not) the timestamps.&lt;/P&gt;&lt;P&gt;Is there somewhere an updated documentation about this &lt;FONT face="courier new,courier"&gt;lpc554s018 (and family)&lt;/FONT&gt; ?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 14:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1712476#M53938</guid>
      <dc:creator>ppardo</dc:creator>
      <dc:date>2023-08-28T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54s018 enet PTP timestamp</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1712886#M53946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have not seen the IEEE 1588 example code in SDK package, can you post the project so that we can have a review?&lt;/P&gt;
&lt;P&gt;Anyway, I think the application note AN12149.pdf is helpful, pls refer to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com.cn/docs/en/nxp/application-notes/AN12149.pdf" target="_blank"&gt;https://www.nxp.com.cn/docs/en/nxp/application-notes/AN12149.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 07:22:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1712886#M53946</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-08-29T07:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54s018 enet PTP timestamp</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1712959#M53947</link>
      <description>&lt;P&gt;Hi,thanks for documentation,&lt;/P&gt;&lt;P&gt;the base example is lpcxpresso54s018m_enet_txrx_ptp1588_transfer in lpc54s018 SDK.&lt;/P&gt;&lt;P&gt;I'll look at the AN you've send, bt I'm not sure it's directly related to the lpc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 08:03:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1712959#M53947</guid>
      <dc:creator>ppardo</dc:creator>
      <dc:date>2023-08-29T08:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54s018 enet PTP timestamp</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1716422#M53990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for the response, I have got the example lpcxpresso54s018m_enet_txrx_ptp1588_transfer in lpc54s018 SDK.&lt;/P&gt;
&lt;P&gt;But the example does not use LWIP, it creates a packet and send it without UDP.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1693821063158.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239394i8F32D3F72F73D965/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1693821063158.png" alt="xiangjun_rong_0-1693821063158.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, do you use LWIP UDP to transfer PTP packet?&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 09:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1716422#M53990</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-09-04T09:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54s018 enet PTP timestamp</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1716431#M53991</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, I use lwip.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, what's the use of &lt;FONT face="courier new,courier"&gt;ENET-&amp;gt;MAC_TIMESTAMP_CTRL&lt;/FONT&gt; settings, if I have to change myself &lt;FONT face="courier new,courier"&gt;txFrame.txConfig.tsEnable=1;&lt;/FONT&gt; in order to have a tx timestamp ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there another way ?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 10:06:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1716431#M53991</guid>
      <dc:creator>ppardo</dc:creator>
      <dc:date>2023-09-04T10:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54s018 enet PTP timestamp</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1717024#M54002</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have you seen the following section which give the procedure for the system time generation in UM11155.pdf?&lt;/P&gt;
&lt;P&gt;37.7.11.8 Programming guidelines for IEEE 1588 timestamping&lt;BR /&gt;37.7.11.8.1 Initialization guideline for system time generation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJu8n Rong&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 09:04:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1717024#M54002</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-09-05T09:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: lpc54s018 enet PTP timestamp</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1717045#M54003</link>
      <description>&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;I think I've read all these chapters,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But find no way to:&lt;/P&gt;&lt;P&gt;* generates a PPS synchronized with ptp time (the only way I've found to simulate this, is to use some hidden registers, and use the TSIS of MAC_INTR_STAT)&lt;/P&gt;&lt;P&gt;* use MAC_TIMESTAMP_CTRL to select which TX packet must be timestamped (the only way I've found is to add txFrame.txConfig.tsEnable = true;), but it's not a reliable way if I've many packets to timestamps.&lt;/P&gt;&lt;P&gt;and what's is the use of MAC_TIMESTAMP_CTRL if I've have to manually select TX packets that I want to timestamp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;* and so on...&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 09:19:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc54s018-enet-PTP-timestamp/m-p/1717045#M54003</guid>
      <dc:creator>ppardo</dc:creator>
      <dc:date>2023-09-05T09:19:32Z</dc:date>
    </item>
  </channel>
</rss>

