<?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 Receive only once</title>
    <link>https://community.nxp.com/t5/MPC5xxx/ENET-Receive-only-once/m-p/968656#M14609</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;did the receiving work normally with interrupt mode? Or it also receive data only once? If not check if data cache is disabled or at least buffer descriptors are in non cacheable area.&lt;/P&gt;&lt;P&gt;If it was working, then it should work in polled mode too.&lt;/P&gt;&lt;P&gt;For your code; I think you should not use RDAR for polling if there are more descriptors in the ring. Use just&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;EIR[RXF] flag&lt;SPAN&gt;&amp;nbsp;for checking.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;if (rxBD-&amp;gt;status0 &amp;amp; RX_BD_S0_E == RX_BD_S0_E) return;" is nonsense as it exits main() function.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2019 06:39:16 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2019-09-12T06:39:16Z</dc:date>
    <item>
      <title>ENET Receive only once</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ENET-Receive-only-once/m-p/968655#M14608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all.&lt;/P&gt;&lt;P&gt;I have a problem about ENET receive , I change the receive mode interrupt to polling, take the ENET_RX_HANDLE code ,put it in the while(1),but I can only receive the data only once, I can not understand , do I miss something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; uint16_t net0_id=0,net1_id=0;&lt;BR /&gt; uint8_t *buff;&lt;BR /&gt; uint32_t counter = 0;&lt;BR /&gt; int c;&lt;BR /&gt; char start_message[]="system is running---";&lt;BR /&gt; uint8_t status;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xcptn_xmpl (); /* Configure and Enable Interrupts */&lt;/P&gt;&lt;P&gt;peri_clock_gating();&amp;nbsp; &lt;BR /&gt; system160mhz();&lt;BR /&gt; hw_init();&lt;/P&gt;&lt;P&gt;// Initialise the ENET module&lt;BR /&gt; ENET_UDP_Driver_Init();&lt;/P&gt;&lt;P&gt;//Enable the Receiver Interrupt&lt;BR /&gt; ENET_Driver_Rx_Init();&lt;/P&gt;&lt;P&gt;while(1)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;if(ENET.RDAR.B.RDAR == 0)&lt;BR /&gt; {&lt;BR /&gt; rxBD = getActiveRxBD();&lt;/P&gt;&lt;P&gt;// If the data buffer has not been filled do nothing&lt;BR /&gt; if (rxBD-&amp;gt;status0 &amp;amp; RX_BD_S0_E == RX_BD_S0_E) return;&lt;BR /&gt; if(rxBD-&amp;gt;length != 0)&lt;BR /&gt; {&lt;BR /&gt; // Extract the frame&lt;BR /&gt; rxFrame = (EthernetFrame *) rxBD-&amp;gt;data;&lt;BR /&gt; if(rxFrame-&amp;gt;length == ARP)&lt;BR /&gt; {&lt;BR /&gt; ENET_frame_Tx(ARP_packet, 42, ARP, ARP_packet, 0);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; // Mark the receive buffer empty&lt;BR /&gt; markRxBDEmpty(rxBD);&lt;/P&gt;&lt;P&gt;// Flag that descriptors are available to allow reception&lt;BR /&gt; ENET.RDAR.R = 0x0100000;&lt;/P&gt;&lt;P&gt;ENET.EIR.R = 0x02000000;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;#endif&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2019 07:10:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ENET-Receive-only-once/m-p/968655#M14608</guid>
      <dc:creator>Ada_Lovelace</dc:creator>
      <dc:date>2019-09-10T07:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: ENET Receive only once</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ENET-Receive-only-once/m-p/968656#M14609</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;did the receiving work normally with interrupt mode? Or it also receive data only once? If not check if data cache is disabled or at least buffer descriptors are in non cacheable area.&lt;/P&gt;&lt;P&gt;If it was working, then it should work in polled mode too.&lt;/P&gt;&lt;P&gt;For your code; I think you should not use RDAR for polling if there are more descriptors in the ring. Use just&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;EIR[RXF] flag&lt;SPAN&gt;&amp;nbsp;for checking.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;if (rxBD-&amp;gt;status0 &amp;amp; RX_BD_S0_E == RX_BD_S0_E) return;" is nonsense as it exits main() function.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 06:39:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ENET-Receive-only-once/m-p/968656#M14609</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2019-09-12T06:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: ENET Receive only once</title>
      <link>https://community.nxp.com/t5/MPC5xxx/ENET-Receive-only-once/m-p/2034174#M27212</link>
      <description>&lt;P&gt;This is the same issue as here;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32-SDK/MPC7548G-ENET-BD-Problems/m-p/2034173/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufE02QzBZV0NQTDJBVEl8MjAzNDE3M3xTVUJTQ1JJUFRJT05TfGhL#M4007" target="_blank"&gt;https://community.nxp.com/t5/S32-SDK/MPC7548G-ENET-BD-Problems/m-p/2034173/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufE02QzBZV0NQTDJBVEl8MjAzNDE3M3xTVUJTQ1JJUFRJT05TfGhL#M4007&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 10:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/ENET-Receive-only-once/m-p/2034174#M27212</guid>
      <dc:creator>jamesportman</dc:creator>
      <dc:date>2025-01-25T10:15:20Z</dc:date>
    </item>
  </channel>
</rss>

