<?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 IP binding (DHCP or static) causes &amp;quot;TCP/IP Unhandled interrupt&amp;quot; in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206769#M4893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to bind IP to my ENET device on TWR-K60D100M, either dynamically (ipcfg_bind_dhcp_wait()) or static (ipcfg_bind_staticip()).&lt;/P&gt;&lt;P&gt;When examining the system after issuing the command (I am working with Keil's ARM-MDK IDE), I find the following (for both DHCP / static bind):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- _mqx_idle_task state = "Active".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- My task state = "Msg Send Blocked".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- TCP/IP task state = "Unhandled Interrupt"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- TCP/IP Message Queue has 3 entries.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may add that both methods (DHCP/static) used to work before in the past. The main change is that I've added another&amp;nbsp; message queue to the system, and increased the BSP_DEFAULT_MAX_MSGPOOLS (from 2 to 5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2012 12:02:40 GMT</pubDate>
    <dc:creator>panpwr</dc:creator>
    <dc:date>2012-12-13T12:02:40Z</dc:date>
    <item>
      <title>IP binding (DHCP or static) causes "TCP/IP Unhandled interrupt"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206769#M4893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to bind IP to my ENET device on TWR-K60D100M, either dynamically (ipcfg_bind_dhcp_wait()) or static (ipcfg_bind_staticip()).&lt;/P&gt;&lt;P&gt;When examining the system after issuing the command (I am working with Keil's ARM-MDK IDE), I find the following (for both DHCP / static bind):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- _mqx_idle_task state = "Active".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- My task state = "Msg Send Blocked".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- TCP/IP task state = "Unhandled Interrupt"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- TCP/IP Message Queue has 3 entries.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may add that both methods (DHCP/static) used to work before in the past. The main change is that I've added another&amp;nbsp; message queue to the system, and increased the BSP_DEFAULT_MAX_MSGPOOLS (from 2 to 5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 12:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206769#M4893</guid>
      <dc:creator>panpwr</dc:creator>
      <dc:date>2012-12-13T12:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: IP binding (DHCP or static) causes "TCP/IP Unhandled interrupt"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206770#M4894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello panpwr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you found out which instruction did cause unhandled interrupt? Install _int_unexpected_isr(), use terminal to get the dump of psp/msp. Put a breakpoint in unexpected isr and wait for it to happen.. Thats your starting point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not know your application though, hard to tell what can be the cause here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 18:49:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206770#M4894</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2012-12-14T18:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: IP binding (DHCP or static) causes "TCP/IP Unhandled interrupt"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206771#M4895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for picking this thread up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that the error comes from both "&lt;STRONG&gt;ipcfg_bind_dhcp_wait()" and "ipcfg_bind_staticip()".&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Moreover, I know that the internal call to _&lt;STRONG&gt;lwsem_wait()&lt;/STRONG&gt;, and later to &lt;STRONG&gt;_INT_ENABLE()&lt;/STRONG&gt; triggers the unhandled interrupt (which is caught in Install _int_unexpected_isr()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I can't seem to get much more information - I am not familiar with the internal sequence of IP binding process, so just drilling down further into the inner functions of RTCS &amp;amp; MQX seems useless for me. I don't know what can cause the TCP/IP task to halt at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can guide me for further checks / tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lior.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Dec 2012 17:59:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206771#M4895</guid>
      <dc:creator>panpwr</dc:creator>
      <dc:date>2012-12-16T17:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: IP binding (DHCP or static) causes "TCP/IP Unhandled interrupt"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206772#M4896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I might have found something.&lt;/P&gt;&lt;P&gt;I am using Keil's ARM-MDK uVision4 IDE, and have just upgraded from version 4.54 to 4.60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. After the upgrade, I've recompiled the MQX "psp" library in "build_libs.uvmpw" (which is included in MQX release 3.8.0, and is a "Keil uVision 4 multi-project workspace file which can be used to batch-build the MQX kernel and all other MQX software stacks and libraries").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I've ran my program, and when using &lt;STRONG&gt;ipcfg_bind_dhcp_wait()&lt;/STRONG&gt; or &lt;STRONG&gt;ipcfg_bind_staticip()&lt;/STRONG&gt;, I get "Unhandled Exception", and all tasks halt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. When I've rolled back to version 4.54, I did the same compilation again (just the "psp" library file - other libraries do not affect anything) - this time everything worked as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I guess the problem is with the IDE / ARM compiler. I've emailed Keil, hopefully I will get some answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anyone have stumbled into the same issue?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 12:00:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206772#M4896</guid>
      <dc:creator>panpwr</dc:creator>
      <dc:date>2012-12-17T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: IP binding (DHCP or static) causes "TCP/IP Unhandled interrupt"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206773#M4897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you compiling with an optimization level of more than 0 in any of the projects? There are problems with the existing sources that cause problems with pre-4.6 when compiled with a higher optimization level so make sure you only compile with optimization level 0. This should be resolved in MQX 4.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume those issues may in turn cause problems with the update to armcc as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 17:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206773#M4897</guid>
      <dc:creator>BryGuyH</dc:creator>
      <dc:date>2012-12-17T17:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: IP binding (DHCP or static) causes "TCP/IP Unhandled interrupt"</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206774#M4898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I am now using MQX 4.0 (with uVision ver 4.60) and the problem went away...&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 09:09:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/IP-binding-DHCP-or-static-causes-quot-TCP-IP-Unhandled-interrupt/m-p/206774#M4898</guid>
      <dc:creator>panpwr</dc:creator>
      <dc:date>2013-01-01T09:09:29Z</dc:date>
    </item>
  </channel>
</rss>

