<?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>MPC5xxx中的主题 Re: ENET_UDP_Tx problem in on S32R274</title>
    <link>https://community.nxp.com/t5/MPC5xxx/ENET-UDP-Tx-problem-in-on-S32R274/m-p/637718#M6192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENET uses internal DMA transfers, so the memory which is used for storing frames should not be cached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please attach here your project? I do not know what is &lt;SPAN&gt;S32R274_MR3003_GHS sample. If you post here your project I will be able to help you more precisely. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Dec 2016 11:34:48 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2016-12-27T11:34:48Z</dc:date>
    <item>
      <title>ENET_UDP_Tx problem in on S32R274</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ENET-UDP-Tx-problem-in-on-S32R274/m-p/637715#M6189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to send UDP packet using&amp;nbsp;ENET_UDP_Tx() in ENET_RADAR.c.&lt;/P&gt;&lt;P&gt;It is okay send one by one packet in Debug.&lt;/P&gt;&lt;P&gt;But I write a for loop to send 1024 byte UDP packets with serial number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But&amp;nbsp;packet loss.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I add &amp;nbsp;"&lt;SPAN&gt;while(ENET.TDAR.B.TDAR) ;" in &amp;nbsp;ENET_UDP_Tx to make &amp;nbsp;sure transmit done.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void ENET_UDP_Tx(uint8_t *buffer, uint32_t size)&lt;BR /&gt;{&lt;BR /&gt; while(ENET.TDAR.B.TDAR) ; //yilin test wait TDAR&lt;/P&gt;&lt;P&gt;// Modify the UDP header to populate the IPv4 length field&lt;BR /&gt; UDP_header[16] = ((IPv4_HEADER_LEN + UDP_HEADER_LEN + size) &amp;gt;&amp;gt; 8) &amp;amp; 0xFF;&lt;BR /&gt; UDP_header[17] = (IPv4_HEADER_LEN + UDP_HEADER_LEN + size) &amp;amp; 0xFF;&lt;BR /&gt; // Modify the UDP header to populate the UDP length field&lt;BR /&gt; UDP_header[38] = ((UDP_HEADER_LEN + size) &amp;gt;&amp;gt; 8) &amp;amp; 0xFF;&lt;BR /&gt; UDP_header[39] = (UDP_HEADER_LEN + size) &amp;amp; 0xFF;&lt;BR /&gt; // Clear the checksums&lt;BR /&gt; UDP_header[24] = 0x00;&lt;BR /&gt; UDP_header[25] = 0x00;&lt;BR /&gt; UDP_header[40] = 0x00;&lt;BR /&gt; UDP_header[41] = 0x00;&lt;BR /&gt; txbd[0].status0 |= TX_BD_S0_R;&lt;BR /&gt; &lt;BR /&gt; txbd[1].data = buffer;&lt;BR /&gt; txbd[1].length = (uint16_t)size;&lt;BR /&gt; &lt;BR /&gt; /* Mark all buffer descriptors as ready */&lt;BR /&gt; txbd[1].status0 |= TX_BD_S0_R;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ENET.TDAR.B.TDAR = 1; // Start transmission&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I had tried to check "&lt;/SPAN&gt;&lt;SPAN&gt;txbd[0].status0 &amp;amp; TX_BD_S0_R == 0", but not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;SPAN&gt;s there any way to make this more efficiency?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Updated: I'm testing on S32R EVB and&amp;nbsp; ENET_RADAR.c is part of&amp;nbsp;S32R274_MR3003_GHS sample&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="42666" data-objecttype="3" href="https://community.nxp.com/people/kentlin"&gt;Kuan Hung Lin&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 04:04:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ENET-UDP-Tx-problem-in-on-S32R274/m-p/637715#M6189</guid>
      <dc:creator>yi-linhsieh</dc:creator>
      <dc:date>2016-12-23T04:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: ENET_UDP_Tx problem in on S32R274</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ENET-UDP-Tx-problem-in-on-S32R274/m-p/637716#M6190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you use NXP EVB or you have your own design board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share the whole project? I need to check it on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 07:50:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ENET-UDP-Tx-problem-in-on-S32R274/m-p/637716#M6190</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-12-23T07:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: ENET_UDP_Tx problem in on S32R274</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ENET-UDP-Tx-problem-in-on-S32R274/m-p/637717#M6191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I'm testing on S32R EVB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Using&amp;nbsp;ENET_RADAR.c which is part of&amp;nbsp;S32R274_MR3003_GHS sample.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;In S32R274_RM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Enhanced transmit buffer descriptor field definitions&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;txbd[0].status0&amp;nbsp;Description&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;The data buffer associated with this BD is not ready for transmission. You&lt;BR /&gt;are free to manipulate this BD or its associated data buffer. The MAC&lt;BR /&gt;clears this field after the buffer has been transmitted or after an error&lt;BR /&gt;condition is encountered.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;When MAC 0 Transmit Buffer Done inturrupt&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;I checked&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;txbd[0].status0 but it didn't be clear.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Cloud it be a cache problem?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 03:01:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ENET-UDP-Tx-problem-in-on-S32R274/m-p/637717#M6191</guid>
      <dc:creator>yi-linhsieh</dc:creator>
      <dc:date>2016-12-27T03:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: ENET_UDP_Tx problem in on S32R274</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ENET-UDP-Tx-problem-in-on-S32R274/m-p/637718#M6192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENET uses internal DMA transfers, so the memory which is used for storing frames should not be cached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please attach here your project? I do not know what is &lt;SPAN&gt;S32R274_MR3003_GHS sample. If you post here your project I will be able to help you more precisely. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 11:34:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ENET-UDP-Tx-problem-in-on-S32R274/m-p/637718#M6192</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2016-12-27T11:34:48Z</dc:date>
    </item>
  </channel>
</rss>

