<?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 LPC54616 -  LwIP sporadic LWIP_ASSERT in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54616-LwIP-sporadic-LWIP-ASSERT/m-p/1158700#M42373</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I've ported the lwip_httpsrv freertos example (from SDK 2.8.2) to RTX5 on a custom board with a LPC54616 and LAN8720A. After some time it runs in one of the following asserts:&lt;/P&gt;&lt;P&gt;tcpip_thread: invalid message&lt;BR /&gt;pbuf_free: p-&amp;gt;ref &amp;gt; 0&lt;/P&gt;&lt;P&gt;To reproduce the issue i send up to 20 http requests per second. Slowing down the request rate also reduces the crash rate.The network only consists of the board and my computer, so there is no other traffic.&lt;/P&gt;&lt;P&gt;To eliminate issues due to the porting I've also tested the unchanged example on a LPCXpresso54618. After some time this one crashed too. Even with older LwIP versions (I've tested the ones from SDK 2.6.0 and 2.7.0) I can reproduce this issue.&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 13:17:26 GMT</pubDate>
    <dc:creator>felu</dc:creator>
    <dc:date>2020-09-24T13:17:26Z</dc:date>
    <item>
      <title>LPC54616 -  LwIP sporadic LWIP_ASSERT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54616-LwIP-sporadic-LWIP-ASSERT/m-p/1158700#M42373</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I've ported the lwip_httpsrv freertos example (from SDK 2.8.2) to RTX5 on a custom board with a LPC54616 and LAN8720A. After some time it runs in one of the following asserts:&lt;/P&gt;&lt;P&gt;tcpip_thread: invalid message&lt;BR /&gt;pbuf_free: p-&amp;gt;ref &amp;gt; 0&lt;/P&gt;&lt;P&gt;To reproduce the issue i send up to 20 http requests per second. Slowing down the request rate also reduces the crash rate.The network only consists of the board and my computer, so there is no other traffic.&lt;/P&gt;&lt;P&gt;To eliminate issues due to the porting I've also tested the unchanged example on a LPCXpresso54618. After some time this one crashed too. Even with older LwIP versions (I've tested the ones from SDK 2.6.0 and 2.7.0) I can reproduce this issue.&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 13:17:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54616-LwIP-sporadic-LWIP-ASSERT/m-p/1158700#M42373</guid>
      <dc:creator>felu</dc:creator>
      <dc:date>2020-09-24T13:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54616 -  LwIP sporadic LWIP_ASSERT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54616-LwIP-sporadic-LWIP-ASSERT/m-p/1160270#M42415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please take a look to the following community thread where the same issue has been discussed.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-KSDK-1-3-0-tcp-echo-demo-bugs/m-p/593883" target="_blank"&gt;FRDM-K64F KSDK 1.3.0 tcp_echo demo bugs? - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hoe it helps!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54616-LwIP-sporadic-LWIP-ASSERT/m-p/1160270#M42415</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-09-28T20:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54616 -  LwIP sporadic LWIP_ASSERT</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54616-LwIP-sporadic-LWIP-ASSERT/m-p/1163923#M42488</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/167536"&gt;@FelipeGarcia&lt;/a&gt;&amp;nbsp; for the link. Actually I already saw this thread before but did not recognize it's use for my problem cause the code for the LPC is a bit different.&lt;/P&gt;&lt;P&gt;I gave it a try anyway and implemented a seperate thread to call &lt;FONT face="courier new,courier"&gt;ethernet_input()&lt;FONT face="arial,helvetica,sans-serif"&gt;, which solves the initial problem. &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;But even if my code runs much smoother now, after some time it seems that there are no RX interrupts anymore and my ethernet_input_thread stays blocked.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;All other interrupts and the lwip independent threads work as expected.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 13:01:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54616-LwIP-sporadic-LWIP-ASSERT/m-p/1163923#M42488</guid>
      <dc:creator>felu</dc:creator>
      <dc:date>2020-10-07T13:01:35Z</dc:date>
    </item>
  </channel>
</rss>

