<?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>LPC Microcontrollers中的主题 Re: freeRTOS + lwip hangs</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554600#M14799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by srinidhi M on Tue Jul 22 03:04:28 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the call flow of my program,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;main-&amp;gt;tcpecho demo (in the tcp echo demo i just removed while(1) condition "which is used for checking link status") -&amp;gt; from tcp echo am calling my udp_func.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inside udp_func call flow is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create socket, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;setsocketopt, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bind and recvfrom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After receiving few packets am getting HardFault, please help me to fix this issue.&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:38:30 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:38:30Z</dc:date>
    <item>
      <title>freeRTOS + lwip hangs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554594#M14793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by srinidhi M on Thu Jul 17 01:02:51 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am trying lwip on lpc4330, tcp echo demo is working fine but i modified that to receive data using UDP its going to hang after recieving aroung 70 to 80 packets (each of 1024 bytes). is there any problem with lwip ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Srinidhi &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554594#M14793</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS + lwip hangs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554595#M14794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by srinidhi M on Thu Jul 17 01:06:25 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If i put some prints after &lt;/SPAN&gt;&lt;STRONG&gt;sys_arch_mbox_fetch(&amp;amp;conn-&amp;gt;recvmbox, &amp;amp;buf, 0);&lt;/STRONG&gt;&lt;SPAN&gt; call in api_lib.c it wont hangs but receives very less number of packets.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:38:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554595#M14794</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS + lwip hangs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554596#M14795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by srinidhi M on Sat Jul 19 06:00:53 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing i just came to know is it was going to HardFault_Handler , I checked HFSR register value , in that 30th bit was enabled that is FORCED bit is enabled. I am not getting how to fix that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to reset the HFSR register value even though it is having RW permission. please suggest me to come over this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SRINIDHI&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:38:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554596#M14795</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS + lwip hangs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554597#M14796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Sat Jul 19 10:50:07 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to fix your application to stop it causing the hard fault... See this FAQ.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fdebugging-hard-fault" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/debugging-hard-fault&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554597#M14796</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS + lwip hangs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554598#M14797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by srinidhi M on Sun Jul 20 21:27:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the replay, I'll check the FAQ and i'll update the further. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Srinidhi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554598#M14797</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS + lwip hangs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554599#M14798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by srinidhi M on Mon Jul 21 05:37:14 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to debug but am not getting what exactly the problem, whether its because of reading from ethernet when its powered down or because of stack over write. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked by increasing the stack size, initial stack size was 0X4000 and i update to 0XE000 and also i modified DEFAULT_THREAD_STACKSIZE and also TCPIP_THREAD_STACKSIZE but still am getting the hardfault.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And now am thinking its because of reading ethernet when its not being clocked , but i am not getting how to check and how to come out. please help me to fix this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Srinidhi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:38:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554599#M14798</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS + lwip hangs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554600#M14799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by srinidhi M on Tue Jul 22 03:04:28 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the call flow of my program,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;main-&amp;gt;tcpecho demo (in the tcp echo demo i just removed while(1) condition "which is used for checking link status") -&amp;gt; from tcp echo am calling my udp_func.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inside udp_func call flow is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create socket, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;setsocketopt, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bind and recvfrom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After receiving few packets am getting HardFault, please help me to fix this issue.&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:38:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554600#M14799</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS + lwip hangs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554601#M14800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sundarapandian on Tue Jul 22 10:02:13 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using heap3 then there is a possible race condition in directly using malloc so add the following to your lwipopts.h (before the last line "#endif")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define mem_free vPortFree

#define mem_malloc&amp;nbsp; pvPortMalloc

STATIC INLINE void *pvPortCalloc(size_t nmemb, size_t size)
{
void *x = mem_malloc(nmemb * size);
if (x != NULL)
memset(x, 0, nmemb * size);
return x;
}

#define mem_calloc pvPortCalloc
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:38:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554601#M14800</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: freeRTOS + lwip hangs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554602#M14801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by srinidhi M on Wed Jul 23 05:47:17 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Sundarapandian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the replay, I'll check and inform the result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Srinidhi M&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/freeRTOS-lwip-hangs/m-p/554602#M14801</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:38:31Z</dc:date>
    </item>
  </channel>
</rss>

