<?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 Re: ENET Rx Buffer Descriptors are not setup properly in SDK 2.11.0 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1472419#M63293</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13582"&gt;@lh_dan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your information but can you please help me with some extra information?&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;This is an SDK example, and the example is not working properly? Please let me know what example of the SDK you are testing.&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Fri, 10 Jun 2022 21:18:48 GMT</pubDate>
    <dc:creator>nxf77486</dc:creator>
    <dc:date>2022-06-10T21:18:48Z</dc:date>
    <item>
      <title>ENET Rx Buffer Descriptors are not setup properly in SDK 2.11.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1470844#M63279</link>
      <description>&lt;P&gt;Porting a K65 project to SDK 2.11.0, I was having issues with receiving packets over ethernet and discovered that the&amp;nbsp;Rx Buffer Descriptors are not setup properly. In fsl_enet.c ENET_SetRxBufferDescriptors(), the control register is never initialized when using the new zero-copy buffer allocation method in enet_ethernetif_kinetis.c.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;                &lt;SPAN&gt;if&lt;/SPAN&gt; (config-&amp;gt;rxBuffAlloc == &lt;SPAN&gt;NULL&lt;/SPAN&gt;)
                &lt;SPAN&gt;{&lt;/SPAN&gt;
                    curBuffDescrip-&amp;gt;buffer = (uint8_t *)((uint32_t)&amp;amp;rxBuffer&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt; * rxBuffSizeAlign&lt;SPAN&gt;]&lt;/SPAN&gt;);
                    &lt;SPAN&gt;/* Initializes the buffer descriptors with empty bit. */&lt;/SPAN&gt;
                    curBuffDescrip-&amp;gt;control = ENET_BUFFDESCRIPTOR_RX_EMPTY_MASK;
                &lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Because rxBuffAlloc is defined, moving the initialization outside of this conditional solves the issue.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;               &lt;SPAN&gt;if&lt;/SPAN&gt; (config-&amp;gt;rxBuffAlloc == &lt;SPAN&gt;NULL&lt;/SPAN&gt;)
                &lt;SPAN&gt;{&lt;/SPAN&gt;
                    curBuffDescrip-&amp;gt;buffer = (uint8_t *)((uint32_t)&amp;amp;rxBuffer&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt; * rxBuffSizeAlign&lt;SPAN&gt;]&lt;/SPAN&gt;);
                &lt;SPAN&gt;}&lt;/SPAN&gt;

                &lt;SPAN&gt;/* Initializes the buffer descriptors with empty bit. */&lt;/SPAN&gt;
                curBuffDescrip-&amp;gt;control = ENET_BUFFDESCRIPTOR_RX_EMPTY_MASK;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Jun 2022 17:01:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1470844#M63279</guid>
      <dc:creator>lh_dan</dc:creator>
      <dc:date>2022-06-08T17:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: ENET Rx Buffer Descriptors are not setup properly in SDK 2.11.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1472419#M63293</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13582"&gt;@lh_dan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your information but can you please help me with some extra information?&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;This is an SDK example, and the example is not working properly? Please let me know what example of the SDK you are testing.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 10 Jun 2022 21:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1472419#M63293</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2022-06-10T21:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: ENET Rx Buffer Descriptors are not setup properly in SDK 2.11.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1473778#M63324</link>
      <description>&lt;P&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190340" target="_self"&gt;&lt;SPAN class=""&gt;nxf77486&lt;/SPAN&gt;&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not try this with a SDK example but with the port of one of my projects. I would assume that any example could have a similar issue as the BD control is never initialized. However, if the memory used by the BD is lucky enough to be zero'ed at startup I would guess that everything would seem to work.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 16:10:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1473778#M63324</guid>
      <dc:creator>lh_dan</dc:creator>
      <dc:date>2022-06-14T16:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: ENET Rx Buffer Descriptors are not setup properly in SDK 2.11.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1474606#M63345</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13582"&gt;@lh_dan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will recommend to test and example of the SDK just to make sure that this problem is or not included inside the SDK example and to find a solution to this problem. Please also let me know if you have any other question I will be happy to assist you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:10:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1474606#M63345</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2022-06-15T16:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: ENET Rx Buffer Descriptors are not setup properly in SDK 2.11.0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1476173#M63390</link>
      <description>&lt;P&gt;Since all of the examples use fsl_enet.c, I am fairly certain that they have the same issue. The control register is not initialized when config-&amp;gt;rxBuffAlloc is not NULL. This is obvious. As far as reproducing though it is hardware dependent. If the RAM used by the buffer descriptor defaults to zero it would seem to work. Please look at the code and verify what I have stated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 20:22:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ENET-Rx-Buffer-Descriptors-are-not-setup-properly-in-SDK-2-11-0/m-p/1476173#M63390</guid>
      <dc:creator>lh_dan</dc:creator>
      <dc:date>2022-06-17T20:22:51Z</dc:date>
    </item>
  </channel>
</rss>

