<?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>Kinetis Microcontrollers中的主题 Re: FRDM K64F board hangs after 2 days when connected to network</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480828#M29401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am checking with Kinetis application team about this issue.&lt;/P&gt;&lt;P&gt;I will let you know when there with any feedback. Thank you for the patience.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 06:24:23 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2016-03-17T06:24:23Z</dc:date>
    <item>
      <title>FRDM K64F board hangs after 2 days when connected to network</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480827#M29400</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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We are working on KSDK example demo project lwip-tcpecho demo.&lt;/P&gt;&lt;P&gt;Added our own additional threads for tcp ip communication for ports 4442(web application) and 80(web server).&lt;/P&gt;&lt;P&gt;Our implementations are depending more on heap memory rather than stack( Ensured proper freeing and deallocation after heap use).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our problem is that when the board is connected to ethernet continuously it got hangs after 1, 2 days. Then we need to restart again .&amp;nbsp;&amp;nbsp; It makes our product application a unusable one.&lt;/P&gt;&lt;P&gt;We tried out different cases for debugging the issue.&lt;/P&gt;&lt;P&gt;-We tried by stopping all other threads except web application but the problem exist.&lt;/P&gt;&lt;P&gt;-Ensured that different MAC ids are assigned for different boards.&lt;/P&gt;&lt;P&gt;-&lt;STRONG&gt;When disconnecting from ethernet, this problem is not seen. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are suspecting the issue is with the lwip tcp ip stack porting. Not sure about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody suggest a better and needed solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now we have got the assert while hanging&amp;nbsp;&amp;nbsp; "pbuf_free: p-&amp;gt;re..."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 05:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480827#M29400</guid>
      <dc:creator>rahul_eris</dc:creator>
      <dc:date>2016-03-16T05:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K64F board hangs after 2 days when connected to network</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480828#M29401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am checking with Kinetis application team about this issue.&lt;/P&gt;&lt;P&gt;I will let you know when there with any feedback. Thank you for the patience.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 06:24:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480828#M29401</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-03-17T06:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K64F board hangs after 2 days when connected to network</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480829#M29402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the KSDK software version you are using. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 05:48:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480829#M29402</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-03-21T05:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K64F board hangs after 2 days when connected to network</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480830#M29403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using Ksdk 1.2.0 and KDS 3.0.0.&lt;/P&gt;&lt;P&gt;Using the example project lwip tcpecho example for mqx in frdmk64f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we are getting the lwip assert as "&lt;STRONG&gt;tcpip_thread: invalid message:&lt;/STRONG&gt;" on crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 05:58:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480830#M29403</guid>
      <dc:creator>rahul_eris</dc:creator>
      <dc:date>2016-03-21T05:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K64F board hangs after 2 days when connected to network</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480831#M29404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the patience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below KSDK team feedback about this issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There's a patch in KSDK1.3GA which might resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp; [KPSDK-7362][LWIP]Fix the lwip rtos ping block issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff --git a/middleware/tcpip/lwip/port/ethernetif.c b/middleware/tcpip/lwip/port/ethernetif.c&lt;BR /&gt;index 6e63cd0..044b5bd 100644&lt;BR /&gt;--- a/middleware/tcpip/lwip/port/ethernetif.c&lt;BR /&gt;+++ b/middleware/tcpip/lwip/port/ethernetif.c&lt;BR /&gt;@@ -688,14 +688,13 @@ ethernetif_init(struct netif *netif)&lt;BR /&gt; #if defined(FSL_RTOS_MQX)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSA_InstallIntHandler(ENET_Transmit_IRQn, MQX_ENET_Transmit_IRQHandler);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSA_InstallIntHandler(ENET_Receive_IRQn, MQX_ENET_Receive_IRQHandler);&lt;BR /&gt;-#if defined(FSL_RTOS_MQX)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSA_InstallIntHandler(ENET_1588_Timer_IRQn, MQX_ENET_1588_Timer_IRQHandler);&lt;BR /&gt; #endif&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* Set priority for ISRs */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; NVIC_SetPriority(ENET_1588_Timer_IRQn, 4U);&lt;BR /&gt;-&amp;nbsp; NVIC_SetPriority(ENET_Transmit_IRQn, 4U);&lt;BR /&gt;-&amp;nbsp; NVIC_SetPriority(ENET_Receive_IRQn, 4U);&lt;BR /&gt;-#endif&lt;BR /&gt;+&amp;nbsp; NVIC_SetPriority(ENET_Transmit_IRQn, 5U);&lt;BR /&gt;+&amp;nbsp; NVIC_SetPriority(ENET_Receive_IRQn, 5U);&lt;BR /&gt;+&lt;BR /&gt;&amp;nbsp;&amp;nbsp; /* initialize the hardware */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; result = low_level_init(netif);&lt;/P&gt;&lt;P&gt;diff --git a/middleware/tcpip/lwip/port/lwipopts.h b/middleware/tcpip/lwip/port/lwipopts.h&lt;BR /&gt;index 199d0f0..dde8b8a 100644&lt;BR /&gt;--- a/middleware/tcpip/lwip/port/lwipopts.h&lt;BR /&gt;+++ b/middleware/tcpip/lwip/port/lwipopts.h&lt;BR /&gt;@@ -37,14 +37,14 @@&lt;BR /&gt; #define __LWIPOPTS_H__&lt;BR /&gt; /*include fsl os abstraction header file to judge whether OS is used*/&lt;BR /&gt; #include "fsl_os_abstraction.h"&lt;BR /&gt;+&lt;BR /&gt;+#if USE_RTOS&lt;BR /&gt; /**&lt;BR /&gt;&amp;nbsp; * SYS_LIGHTWEIGHT_PROT==1: if you want inter-task protection for certain&lt;BR /&gt;&amp;nbsp; * critical regions during buffer allocation, deallocation and memory&lt;BR /&gt;&amp;nbsp; * allocation and deallocation.&lt;BR /&gt;&amp;nbsp; */&lt;BR /&gt;-#define SYS_LIGHTWEIGHT_PROT&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;-#if USE_RTOS&lt;BR /&gt;-&lt;/P&gt;&lt;P&gt;+#define SYS_LIGHTWEIGHT_PROT&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt; /**&lt;/P&gt;&lt;P&gt;&amp;nbsp; * NO_SYS==0: Use RTOS&lt;/P&gt;&lt;P&gt;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; In KSDK1.2GA, the SYS_LIGHTWEIGHT_PROT&amp;nbsp; macro is not enabled when RTOS is used, which may lead to crash for global variable is not protected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend customer to update software to latest KSDK software.&lt;/P&gt;&lt;P&gt;You could find the latest KDSK software from below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://kex.freescale.com/en/welcome" title="http://kex.freescale.com/en/welcome"&gt;Welcome to Kinetis Expert | Kinetis Expert&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 06:54:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480831#M29404</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2016-03-24T06:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM K64F board hangs after 2 days when connected to network</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480832#M29405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Ma Hui and &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;KSDK team&lt;/SPAN&gt; for the support.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The issue solved by defining &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;SYS_LIGHTWEIGHT_PROT&amp;nbsp; to&amp;nbsp; 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 12:13:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-board-hangs-after-2-days-when-connected-to-network/m-p/480832#M29405</guid>
      <dc:creator>rahul_eris</dc:creator>
      <dc:date>2016-03-28T12:13:52Z</dc:date>
    </item>
  </channel>
</rss>

