<?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: LPC1769 FreeRTOS LWIP : rx interrupt no more trigged after some time in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617893#M24169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thibaut,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are investigating this, there seems to be a bug on the driver in LPCOpen that causes a failure of the memory assignment from heap when&amp;nbsp;MCU receiving. We are working on fixing the driver, will get back to you as soon as we have a fixed version.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2016 20:12:19 GMT</pubDate>
    <dc:creator>Carlos_Mendoza</dc:creator>
    <dc:date>2016-12-29T20:12:19Z</dc:date>
    <item>
      <title>LPC1769 FreeRTOS LWIP : rx interrupt no more trigged after some time</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617892#M24168</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'm facing a trouble with the LPC1769 and LwIP stack. At some point, the receive task present in lpc17xx_40xx_emac.c just hang on sys_arch_sem_wait(&amp;amp;lpc_enetif-&amp;gt;rx_sem, 0);.&lt;/P&gt;&lt;P&gt;As far as I can tell the Rx intterupts are no longer trigged (but TX interrupts are). In function ETH_IRQHandler it never goes inside the following IF block&lt;/P&gt;&lt;P&gt;if (ints &amp;amp; RXINTGROUP) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* RX group interrupt(s) */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Give semaphore to wakeup RX receive task. Note the FreeRTOS&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; method is used instead of the LWIP arch method. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;xSemaphoreGiveFromISR(lpc_enetdata.rx_sem, &amp;amp;xRecTaskWoken);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked the 'Command', 'Status' registers, nothing seems anormal.&lt;/P&gt;&lt;P&gt;The (RxFilterCtrl - 0x5000 0200) register is OK and broadcasted message flag is set to allow reception&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My project is based on LPCOpen 2.10 and derivate from the 'lwip_tcpecho_freertos' example. I have upgraded to FreeRTOS V8.2.3 and LwIP V2.0.0. The arch directory is almost the same &lt;/P&gt;&lt;P&gt;In lwipopts.h, i've made some changes to use static memory allocated @0x2007C000 and pbuff&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Computer send on braodcast address (255.255.255.255) an UDP packet on port 45454 every 100ms (17 bytes).&amp;nbsp; The LPC send every 100ms 3 to 5 packets of 280 bytes each to the Computer address (which is retrieved from received packet on port 45454) I'm only using the Socket API.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been able to perfom some long run before the RX thread hang: 10h, and more than 2,000,000 packets exchanged before the error occurs. It sometimes hang sooner than that.&lt;/P&gt;&lt;P&gt;As the probleme occurs, even ping are not received. Transmission as already stated keeps working perfectly. The MCU and the Computer are plugged on the company network&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the problem occurs, all the thread and Queue of my application keep working normaly. Even the behaviour on the&amp;nbsp; receiving socket is fine (Select keep timeouting as no message is received)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any idea, it'll be great as i'm really stuck on this problem&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;FreeRTOSConfig.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;sys_arch_freertos.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;lpc17xx_40xx_emac.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;lpc_debug.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;lpc_arch.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;lpc_17xx40xx_emac_config.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;perf.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;lpc17xx_40xx_emac.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;lpc_arch.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;cc.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;lwipopts.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-335762"&gt;sys_arch.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617892#M24168</guid>
      <dc:creator>tdo</dc:creator>
      <dc:date>2016-12-16T09:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 FreeRTOS LWIP : rx interrupt no more trigged after some time</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617893#M24169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thibaut,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are investigating this, there seems to be a bug on the driver in LPCOpen that causes a failure of the memory assignment from heap when&amp;nbsp;MCU receiving. We are working on fixing the driver, will get back to you as soon as we have a fixed version.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 20:12:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617893#M24169</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2016-12-29T20:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 FreeRTOS LWIP : rx interrupt no more trigged after some time</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617894#M24170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer. It does help as you indicate it might not&lt;/P&gt;&lt;P&gt;originate from a faulty configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll be glad to test the new LPCOpen drivers as they will be released.&lt;/P&gt;&lt;P&gt;Right now I don't have much time to investigate on this problem but in the&lt;/P&gt;&lt;P&gt;coming weeks it will be the top priority again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibaut&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2016-12-29 21:13 GMT+01:00 Carlos_Mendoza &amp;lt;admin@community.nxp.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;NXP Community&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt;&lt;/P&gt;&lt;P&gt;Re: LPC1769 FreeRTOS LWIP : rx interrupt no more trigged after some time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Carlos_Mendoza&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/people/Carlos_Mendoza?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;LPC&lt;/STRONG&gt; - View the full discussion&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.nxp.com/message/864326?commentID=864326&amp;amp;et=watches.email.thread#comment-864326&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 13:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617894#M24170</guid>
      <dc:creator>tdo</dc:creator>
      <dc:date>2017-01-02T13:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 FreeRTOS LWIP : rx interrupt no more trigged after some time</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617895#M24171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thibaut,&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We found a workaround to resolve a similar issue in the webserver project&amp;nbsp; on LPC1769 and we think the workaround&amp;nbsp;should be applicable to&amp;nbsp;this issue here. Could you please try it on your side? The suggested&amp;nbsp;workaround is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the tcp_impl.h file change the definition of TCP_MSL to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define TCP_MSL 100 //1000 //60000UL /* The maximum segment lifetime in milliseconds */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means the memory is freed more quickly when closing connection.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the&amp;nbsp;value&amp;nbsp;100 and 1000 on lpcopen webserver example on lpc1788 and it&amp;nbsp;can work.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We analyze the cause should be that when TCP connection is closed, the PCB is not released in time&amp;nbsp;due to&amp;nbsp;the&amp;nbsp;long (120s) time waiting. This cause the PCB created more and more&amp;nbsp;so that&amp;nbsp;memory leaks due to the limited memory of MCU (SRAM).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 16:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617895#M24171</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-02-23T16:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 FreeRTOS LWIP : rx interrupt no more trigged after some time</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617896#M24172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for remembering my problem. I'm sure this fix will help many people&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I'm not sure this will help me to fix my problem.&lt;/P&gt;&lt;P&gt;The only TCP_MSL present in my project is located in lwip/priv/tcp_priv.h. The TCP_MSL is not even defined/compiled for my project, as LWIP_TCP is set to 0 in my lwipopts.h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm only using UDP&amp;nbsp; in my project. If it is of any help, I can provide to you more of my project (whithout some of the sensitive part, but you'll have the whole usage of the LwIP stack)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to change priorities of&amp;nbsp; tskRECPKT_PRIORITY&amp;nbsp; and tskTXCLEAN_PRIORITY located in lpc17xx_40xx_emac.c without any sucess. The only visible effect is that it is the sending of all messages that might block after some time (instead of the reception). I have even enable LOCK_RX_THREAD knowing i might have some performance issue (which are not a concern right now as only 3 to 4% of CPU are used; 96% of time in FreeRTOS Idle task)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 10:27:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617896#M24172</guid>
      <dc:creator>tdo</dc:creator>
      <dc:date>2017-02-24T10:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 FreeRTOS LWIP : rx interrupt no more trigged after some time</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617897#M24173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry wrong operation, the message was sent before I wanted to do so :s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any hint that might explain why at some point the RX or TX interrupt are no longer trigged, I'll be glad to look after. I was wondering whether it could be a problem with the communication between LPC and the PHY chip ?&lt;/P&gt;&lt;P&gt;I'm pretty sure it's not hardware related as i'm using two different card (one based on a LPCxpresso 1769 red D board + a MagJack RJ45, and one AOA board from embedded artist)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thibaut DONTAIL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 10:36:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/617897#M24173</guid>
      <dc:creator>tdo</dc:creator>
      <dc:date>2017-02-24T10:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 FreeRTOS LWIP : rx interrupt no more trigged after some time</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/1412734#M47898</link>
      <description>&lt;P&gt;Sadly I´m now facing to the same problem.&lt;/P&gt;&lt;P&gt;Is there any solution for this issue in the meantime?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2022 21:07:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-FreeRTOS-LWIP-rx-interrupt-no-more-trigged-after-some/m-p/1412734#M47898</guid>
      <dc:creator>wsd</dc:creator>
      <dc:date>2022-02-13T21:07:36Z</dc:date>
    </item>
  </channel>
</rss>

