<?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>S32KのトピックRe: lwip stack ping test replies the request with mismatched sequence number message</title>
    <link>https://community.nxp.com/t5/S32K/lwip-stack-ping-test-replies-the-request-with-mismatched/m-p/1736527#M27725</link>
    <description>&lt;P&gt;I find the problem is caused by different compiling settings between demo project and my project.My project has defined D_CACHE_ENABLE.Seems the D.CACHE is a specific feather of M7 core(CM3 and CM4 does not have it).I remove the definition of&amp;nbsp;D_CACHE_ENABLE and project works well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 11:03:27 GMT</pubDate>
    <dc:creator>zjldabing</dc:creator>
    <dc:date>2023-10-10T11:03:27Z</dc:date>
    <item>
      <title>lwip stack ping test replies the request with mismatched sequence number message</title>
      <link>https://community.nxp.com/t5/S32K/lwip-stack-ping-test-replies-the-request-with-mismatched/m-p/1736440#M27717</link>
      <description>&lt;P&gt;I developed a board with S32K344 and it can run the lwip demo project "lwip_s32k344" correctlly.I can ping the board from my PC.However, it works abnormally when I try to implement the demo code into my own project on the board.When I ping it from PC, the reply message sequence number is always smaller than the request&amp;nbsp;message sequence number. That means the board does not reply the 1st request and it replies the following request with the one for previous request.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have compared the setting of demo project with that of my own project.There is no obvious difference from my point of view. &lt;SPAN&gt;What's the problem here and how can it be solved? Attach my project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ping.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/244263iE255E2EDD4427149/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ping.png" alt="ping.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 09:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/lwip-stack-ping-test-replies-the-request-with-mismatched/m-p/1736440#M27717</guid>
      <dc:creator>zjldabing</dc:creator>
      <dc:date>2023-10-10T09:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: lwip stack ping test replies the request with mismatched sequence number message</title>
      <link>https://community.nxp.com/t5/S32K/lwip-stack-ping-test-replies-the-request-with-mismatched/m-p/1736527#M27725</link>
      <description>&lt;P&gt;I find the problem is caused by different compiling settings between demo project and my project.My project has defined D_CACHE_ENABLE.Seems the D.CACHE is a specific feather of M7 core(CM3 and CM4 does not have it).I remove the definition of&amp;nbsp;D_CACHE_ENABLE and project works well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 11:03:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/lwip-stack-ping-test-replies-the-request-with-mismatched/m-p/1736527#M27725</guid>
      <dc:creator>zjldabing</dc:creator>
      <dc:date>2023-10-10T11:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: lwip stack ping test replies the request with mismatched sequence number message</title>
      <link>https://community.nxp.com/t5/S32K/lwip-stack-ping-test-replies-the-request-with-mismatched/m-p/1736554#M27729</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210854"&gt;@zjldabing&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes, it's caused by data cache. Let me copy here from some other discussion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default project setting enabled Cache, and the lwip heap memory was allocated from cacheable region. Thus there are risks about data inconsistency when CPU and EMAC uDMA access asynchronously. Two way to avoid this issue:&lt;/P&gt;
&lt;P&gt;① Just disable the D-cache, the original Lwip_s32k344 demo use the same way. It's convenient, but lower running efficiency for other applications.&lt;/P&gt;
&lt;P&gt;② Allocate the lwip heap from non-cacheable region. Thus the cache can keep enable, it's good. When use this way, you need to make below changes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; a) Increase the non-cacheable region (decrease shareable region)&amp;nbsp; in linker file and add the lwip non-cacheable heap region for next use.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_0-1696939942650.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/244288i1B5908FAD5BD576E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_0-1696939942650.png" alt="lukaszadrapa_0-1696939942650.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_1-1696939942210.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/244289i0715CA8CBCD1E446/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_1-1696939942210.png" alt="lukaszadrapa_1-1696939942210.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; b) Add lwip memory allocation macro in .mex tcpip component "user setting" page, thus it would be generated in lwipcfg.h, and to replace the default allocation way in "arch.h" which allocate memory from shareable region.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lukaszadrapa_2-1696939942316.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/244287i1E11700ECF2E8D2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lukaszadrapa_2-1696939942316.png" alt="lukaszadrapa_2-1696939942316.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 12:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/lwip-stack-ping-test-replies-the-request-with-mismatched/m-p/1736554#M27729</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2023-10-10T12:13:07Z</dc:date>
    </item>
  </channel>
</rss>

