<?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: stuck in _msgq_send_internal when using RTCS send in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857087#M18076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I am not pretty sure what to look for /or how exactly other than Task summary using Atollic and J-link.&lt;/P&gt;&lt;P&gt;Which looks fine to me, the stack is still in bound when the issue comes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is one more input when I did some more digging deeper into mqx, I found that the rtcs task is stuck in while inside…&lt;/P&gt;&lt;P&gt;uint32_t TCPIP_Event_time&lt;/P&gt;&lt;P&gt;   (&lt;/P&gt;&lt;P&gt;      uint32_t  time&lt;/P&gt;&lt;P&gt;         /*  time elapsed */&lt;/P&gt;&lt;P&gt;   )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where in the following snippet event-&amp;gt;TIME was generated ‘0’ after addition and hence was never coming out of the loop.&lt;/P&gt;&lt;P&gt;if ((*event-&amp;gt;EVENT)(event)) {&lt;/P&gt;&lt;P&gt;         event-&amp;gt;TIME += time;  //here&lt;/P&gt;&lt;P&gt;         TCPIP_Event_add(event);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After patching it up, when I put my setup on endurance, I face no data on the remote terminal after random time, approx. 1:30 Hrs, almost all the time. Remote endpoint terminal is still connected, but data is not coming out.&lt;/P&gt;&lt;P&gt;Which when debugged, I found that the same path that I mentioned in my original question is returned with 5685 0x1635.&lt;/P&gt;&lt;P&gt;When I searched for this, it is showing RTCS_TCP_CONN_ABORTED ; software caused connection abort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here again is my question restructured, what could be the cause of this? I am facing this error in send() as well as recv(), after 1:30 Hrs of I put my setup on endurance test!!!&lt;/P&gt;&lt;P&gt;Moreover (this might be not at all related but still), when I try to reproduce this with a debugger, it runs all ok, for almost 6-7 hours, and the scenario comes again as soon as I leave my desk and go to home!!!(after 1:30 hours to that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2019 05:09:18 GMT</pubDate>
    <dc:creator>preetmehta</dc:creator>
    <dc:date>2019-03-27T05:09:18Z</dc:date>
    <item>
      <title>stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857082#M18071</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 using RTCS for one of my application. As a brief about how, following are some key takeaways.&lt;/P&gt;&lt;P&gt;- I have kept RTCS priority at 70&lt;/P&gt;&lt;P&gt;- My watchdog refresh is also in another task at 70&lt;/P&gt;&lt;P&gt;- One of my task is using send API to send data to the socket, the frequency of sending this data is 50mS. It is almost 35 bytes of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This are my rtcs settings.&lt;/P&gt;&lt;P&gt;_RTCSPCB_init = 4;&lt;BR /&gt; _RTCSPCB_grow = 50;&amp;nbsp;&lt;BR /&gt; _RTCSPCB_max = 1000;&amp;nbsp;&lt;BR /&gt; _RTCS_msgpool_init = 2;&lt;BR /&gt; _RTCS_msgpool_grow = 10;//2;&lt;BR /&gt; _RTCS_msgpool_max = 1000;//20;&lt;BR /&gt; _RTCS_socket_part_init = 4;&lt;BR /&gt; _RTCS_socket_part_grow = 2;&lt;BR /&gt; _RTCS_socket_part_max = 20;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_RTCSTASK_stacksize = 60720;&lt;BR /&gt; /* Change the priority: */&lt;BR /&gt; _RTCSTASK_priority = 70;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 100 Mbps.&lt;/P&gt;&lt;P&gt;ENET_RCR &amp;amp;=~ (ENET_RCR_RMII_10T_MASK);&lt;/P&gt;&lt;P&gt;ENET_RCR &amp;amp;=~ (ENET_RCR_DRT_MASK);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing watchdog resets with following stack when pulled out of my sending task. upper being the latest call when watchdog hit the reset.&lt;/P&gt;&lt;P&gt;\debug\psp\libpsp.a(msgq.o)&lt;BR /&gt; 0x0821e178 _msgq_send_internal&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;debug\psp\libpsp.a(msgq.o)&lt;BR /&gt; 0x0821e0fc _msgq_send_blocked_internal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\debug\rtcs\librtcs.a(rtcscmd.o)&lt;BR /&gt; 0x081e6ff4 RTCS_cmd_issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\debug\rtcs\librtcs.a(tcp_send.o)&lt;BR /&gt; 0x081f13a4 TCP_Process_send&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\debug\rtcs\librtcs.a(sock_stream.o)&lt;/P&gt;&lt;P&gt;.text.send 0x081e888c 0x90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\debug\rtcs\librtcs.a(sock.o)&lt;BR /&gt; 0x081e888c send&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\debug\rtcs\librtcs.a(sock_stream.o)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\debug\rtcs\librtcs.a(sock.o)&lt;BR /&gt; 0x081e888c send&lt;BR /&gt;&lt;BR /&gt;\debug\rtcs\librtcs.a(sock.o)&lt;BR /&gt; 0x081e888c send&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have noticed that when RTCS is bombarded with faster frequency such thing occurs. Can someone please guide me how to deal with this situation? or if I am doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 11:28:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857082#M18071</guid>
      <dc:creator>preetmehta</dc:creator>
      <dc:date>2019-03-14T11:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857083#M18072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Preet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which MQX version you are using?&lt;/P&gt;&lt;P&gt;The default priority of RTCS task is 6.&amp;nbsp; I would suggest you not change the default value. It is a system task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 05:28:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857083#M18072</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-03-15T05:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857084#M18073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply.&lt;/P&gt;&lt;P&gt;I am using MQX 4.2.&lt;/P&gt;&lt;P&gt;Ok, I will try with RTCS Priority of default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Preet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 05:44:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857084#M18073</guid>
      <dc:creator>preetmehta</dc:creator>
      <dc:date>2019-03-15T05:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857085#M18074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried priority of 6 for RTCSTASK. In this scenario I face software reset (watchdog) even earlier than the previous scenario.&lt;/P&gt;&lt;P&gt;The call stack is same as the last one as my post.&lt;/P&gt;&lt;P&gt;RTCSTASK is stuck in msgq_send_internal, when I call send of socket.o&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Preet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2019 08:04:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857085#M18074</guid>
      <dc:creator>preetmehta</dc:creator>
      <dc:date>2019-03-15T08:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857086#M18075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Preet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked the MQX TAD info, check the task summary and RTCS related info?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 08:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857086#M18075</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-03-20T08:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857087#M18076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I am not pretty sure what to look for /or how exactly other than Task summary using Atollic and J-link.&lt;/P&gt;&lt;P&gt;Which looks fine to me, the stack is still in bound when the issue comes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is one more input when I did some more digging deeper into mqx, I found that the rtcs task is stuck in while inside…&lt;/P&gt;&lt;P&gt;uint32_t TCPIP_Event_time&lt;/P&gt;&lt;P&gt;   (&lt;/P&gt;&lt;P&gt;      uint32_t  time&lt;/P&gt;&lt;P&gt;         /*  time elapsed */&lt;/P&gt;&lt;P&gt;   )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where in the following snippet event-&amp;gt;TIME was generated ‘0’ after addition and hence was never coming out of the loop.&lt;/P&gt;&lt;P&gt;if ((*event-&amp;gt;EVENT)(event)) {&lt;/P&gt;&lt;P&gt;         event-&amp;gt;TIME += time;  //here&lt;/P&gt;&lt;P&gt;         TCPIP_Event_add(event);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After patching it up, when I put my setup on endurance, I face no data on the remote terminal after random time, approx. 1:30 Hrs, almost all the time. Remote endpoint terminal is still connected, but data is not coming out.&lt;/P&gt;&lt;P&gt;Which when debugged, I found that the same path that I mentioned in my original question is returned with 5685 0x1635.&lt;/P&gt;&lt;P&gt;When I searched for this, it is showing RTCS_TCP_CONN_ABORTED ; software caused connection abort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here again is my question restructured, what could be the cause of this? I am facing this error in send() as well as recv(), after 1:30 Hrs of I put my setup on endurance test!!!&lt;/P&gt;&lt;P&gt;Moreover (this might be not at all related but still), when I try to reproduce this with a debugger, it runs all ok, for almost 6-7 hours, and the scenario comes again as soon as I leave my desk and go to home!!!(after 1:30 hours to that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 05:09:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857087#M18076</guid>
      <dc:creator>preetmehta</dc:creator>
      <dc:date>2019-03-27T05:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857088#M18077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you apply the patch MQX 4.2.0.2 ?, this patch fixed some RTCS issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 08:31:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857088#M18077</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-03-27T08:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857089#M18078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;I am not pretty sure whether it’s patched already in my MQX 4.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to redo it.&lt;/P&gt;&lt;P&gt;Let me update and get back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile if there is any way we can know if my library is patched or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 08:49:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857089#M18078</guid>
      <dc:creator>preetmehta</dc:creator>
      <dc:date>2019-03-27T08:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857090#M18079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can download the patch and compare RTCS source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2019 13:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857090#M18079</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-03-27T13:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857091#M18080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patched with 4.2.0.2&lt;/P&gt;&lt;P&gt;I did overnight endurance for non-consecutive 2 days, it works good for a night at least, which is improvement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help. If I find some more issues I know where to look for you :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:14:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857091#M18080</guid>
      <dc:creator>preetmehta</dc:creator>
      <dc:date>2019-04-02T13:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: stuck in _msgq_send_internal when using RTCS send</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857092#M18081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Thanks for update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 22:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/stuck-in-msgq-send-internal-when-using-RTCS-send/m-p/857092#M18081</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-04-02T22:37:05Z</dc:date>
    </item>
  </channel>
</rss>

