<?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>MQX Software SolutionsのトピックRe: TCP/IP task crashes with MQX_UNHANDLED_INTERRUPT</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374821#M12463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just following up.&amp;nbsp; This fix seems to have worked.&amp;nbsp; We have not seen a crash in over a week now.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bowe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2015 16:24:08 GMT</pubDate>
    <dc:creator>bowe</dc:creator>
    <dc:date>2015-05-01T16:24:08Z</dc:date>
    <item>
      <title>TCP/IP task crashes with MQX_UNHANDLED_INTERRUPT</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374817#M12459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am seeing an issue that causes the TCP/IP task to crash with "MQX_UNHANDLED_INTERRUPT".&amp;nbsp; I have installed the unexpected ISR [_int_install_unexpected_isr()], it is says it is vector 0x03, which is a hard fault.&amp;nbsp; In looking at the call stack in KDS when the hard fault interrupt occurs, there are numerous (at least 50) _isr_execute() instances (namely on the line that calls the actual interrupt handler, which is after an interrupt enable), with nothing in between them and _int_unexpected_isr() at the top.&amp;nbsp; Is this the cause of the hard fault, is this a KDS bug, or am I seeing something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bowe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 16:31:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374817#M12459</guid>
      <dc:creator>bowe</dc:creator>
      <dc:date>2015-04-02T16:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: TCP/IP task crashes with MQX_UNHANDLED_INTERRUPT</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374818#M12460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In further debugging, it appears that adding small delay in the TCPIP_task() main while loop (in tcpip.c) after getting the TCP/IP message avoids the MQX_UNHANDLED_INTERRUPT issue (of course this is not an acceptable fix).&amp;nbsp; This seems like it indicates a race condition.&amp;nbsp; Any ideas as to what this would be and how to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14283131864191081 jive_macro_code" jivemacro_uid="_14283131864191081" modifiedtitle="true"&gt;
&lt;P&gt;while(1)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TCPIP_EVENT_PTR queue = TCPIP_Event_head;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcpip_msg = (TCPIP_MESSAGE_PTR)RTCS_msgq_receive(tcpip_qid, timeout, RTCS_data_ptr-&amp;gt;TCPIP_msg_pool);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (tcpip_msg)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _time_delay(1);&amp;nbsp; // This line seems to eliminate the MQX_UNHANDLED_INTERRUPT crash&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; if (NULL != tcpip_msg-&amp;gt;COMMAND)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcpip_msg-&amp;gt;COMMAND(tcpip_msg-&amp;gt;DATA);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RTCS_msg_free(tcpip_msg);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bowe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 09:50:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374818#M12460</guid>
      <dc:creator>bowe</dc:creator>
      <dc:date>2015-04-06T09:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re: TCP/IP task crashes with MQX_UNHANDLED_INTERRUPT</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374819#M12461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose that this will be probably caused by bug in TCP close in KSDK 1.1. There is problem with canceling timeout events.&lt;/P&gt;&lt;P&gt;As workaround please edit tcp_close.c file and add lines 9-13 below to TCP_Close_TCB() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14296980161102006" jivemacro_uid="_14296980161102006" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp; /*&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ** Cancel timers...&lt;/P&gt;
&lt;P&gt;&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;(void)TCP_Timer_stop(&amp;amp;tcb-&amp;gt;sndxmittq.t, tcp_cfg-&amp;gt;qhead);&lt;/P&gt;
&lt;P&gt;(void)TCP_Timer_stop(&amp;amp;tcb-&amp;gt;sndacktq.t, tcp_cfg-&amp;gt;qhead);&lt;/P&gt;
&lt;P&gt;(void)TCP_Timer_stop(&amp;amp;tcb-&amp;gt;sndtq.t, tcp_cfg-&amp;gt;qhead);&lt;/P&gt;
&lt;P&gt;(void)TCP_Timer_stop(&amp;amp;tcb-&amp;gt;rcvtq.t, tcp_cfg-&amp;gt;qhead);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if(tcb-&amp;gt;expire.PRIVATE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TCPIP_Event_cancel(&amp;amp;tcb-&amp;gt;expire);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcb-&amp;gt;expier = NULL;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 22 Apr 2015 10:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374819#M12461</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-04-22T10:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: TCP/IP task crashes with MQX_UNHANDLED_INTERRUPT</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374820#M12462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I have inserted lines 9-13 below (I assume line 12 is actually what you meant) in the TCP_Close_TCB() in TCP_clos.c, and it is seeming more stable in the 10 minutes of testing (usually the MQX_UNHANDLED_INTERRUPT occurred pretty quickly).&amp;nbsp; I will continue to test, and reply back in about a week if everything still looks good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14297209405253228" jivemacro_uid="_14297209405253228" modifiedtitle="true"&gt;
&lt;P&gt;&amp;nbsp; /*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; ** Cancel timers...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; (void)TCP_Timer_stop(&amp;amp;tcb-&amp;gt;sndxmittq.t, tcp_cfg-&amp;gt;qhead);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; (void)TCP_Timer_stop(&amp;amp;tcb-&amp;gt;sndacktq.t, tcp_cfg-&amp;gt;qhead);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; (void)TCP_Timer_stop(&amp;amp;tcb-&amp;gt;sndtq.t, tcp_cfg-&amp;gt;qhead);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; (void)TCP_Timer_stop(&amp;amp;tcb-&amp;gt;rcvtq.t, tcp_cfg-&amp;gt;qhead);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; if(tcb-&amp;gt;expire.PRIVATE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TCPIP_Event_cancel(&amp;amp;tcb-&amp;gt;expire);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcb-&amp;gt;expire.PRIVATE = NULL;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Bowe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 16:55:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374820#M12462</guid>
      <dc:creator>bowe</dc:creator>
      <dc:date>2015-04-22T16:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: TCP/IP task crashes with MQX_UNHANDLED_INTERRUPT</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374821#M12463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just following up.&amp;nbsp; This fix seems to have worked.&amp;nbsp; We have not seen a crash in over a week now.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bowe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 16:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/TCP-IP-task-crashes-with-MQX-UNHANDLED-INTERRUPT/m-p/374821#M12463</guid>
      <dc:creator>bowe</dc:creator>
      <dc:date>2015-05-01T16:24:08Z</dc:date>
    </item>
  </channel>
</rss>

