<?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>i.MX ProcessorsのトピックRe: MCUXpresso with Azure RTOS gives stack overflow error</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1293582#M175608</link>
    <description>&lt;P&gt;Thanks for the support.&amp;nbsp; I downloaded the samples from&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/en/builder?hw=EVK-MIMXRT1064" target="_blank" rel="nofollow noopener noreferrer"&gt;https://mcuxpresso.nxp.com/en/builder?hw=EVK-MIMXRT1064&lt;/A&gt;&amp;nbsp;as you mentioned. and tried the threadx demo.&lt;/P&gt;&lt;P&gt;I still see the stack overflow when I hit a breakpoint inside a thread. I have shared the screen shot in my original email.&lt;/P&gt;&lt;P&gt;Again the question is why I see the stack overload or this this a bug in the tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 21:11:16 GMT</pubDate>
    <dc:creator>MAUZ</dc:creator>
    <dc:date>2021-06-16T21:11:16Z</dc:date>
    <item>
      <title>MCUXpresso with Azure RTOS gives stack overflow error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1290246#M175292</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using MCUXpresso IDE V11.3.1 and testing one of the example code (Washing Machine demo from NXP) with Azure RTOS on MIMXRT1064 processor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I break in a thread and look at heap and stack it shows the stack as overflow&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MAUZ_0-1623279941523.png" style="width: 622px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146756i373003CC7B978220/image-dimensions/622x114?v=v2" width="622" height="114" role="button" title="MAUZ_0-1623279941523.png" alt="MAUZ_0-1623279941523.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In fact it does for any Azure RTOS code inside a thread.&lt;/P&gt;&lt;P&gt;Is is normal or is it a bug?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 23:08:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1290246#M175292</guid>
      <dc:creator>MAUZ</dc:creator>
      <dc:date>2021-06-09T23:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso with Azure RTOS gives stack overflow error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1291118#M175388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187755"&gt;@MAUZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Could you please tell me where you get your mentioned testing&amp;nbsp;&lt;SPAN&gt;Washing Machine demo from NXP?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;NXP SDK also contains the Azure RTOS project:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;\SDK_2.9.2_EVK-MIMXRT1064\boards\evkmimxrt1064\azure_rtos_examples&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you test it on your side, whether that has issues or not?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can download the SDK from this link:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://mcuxpresso.nxp.com/en/builder?hw=EVK-MIMXRT1064" target="_blank"&gt;https://mcuxpresso.nxp.com/en/builder?hw=EVK-MIMXRT1064&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please check it at first.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have issues about it, please kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 06:26:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1291118#M175388</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-06-11T06:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso with Azure RTOS gives stack overflow error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1293582#M175608</link>
      <description>&lt;P&gt;Thanks for the support.&amp;nbsp; I downloaded the samples from&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/en/builder?hw=EVK-MIMXRT1064" target="_blank" rel="nofollow noopener noreferrer"&gt;https://mcuxpresso.nxp.com/en/builder?hw=EVK-MIMXRT1064&lt;/A&gt;&amp;nbsp;as you mentioned. and tried the threadx demo.&lt;/P&gt;&lt;P&gt;I still see the stack overflow when I hit a breakpoint inside a thread. I have shared the screen shot in my original email.&lt;/P&gt;&lt;P&gt;Again the question is why I see the stack overload or this this a bug in the tool&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 21:11:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1293582#M175608</guid>
      <dc:creator>MAUZ</dc:creator>
      <dc:date>2021-06-16T21:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso with Azure RTOS gives stack overflow error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1293791#M175632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187755"&gt;@MAUZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks for your confirmation, I have tested the internal new sdk version, also meet your issues, the result is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1623908912414.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147287i5993576944F186BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1623908912414.png" alt="kerryzhou_0-1623908912414.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please keep patient, I will report it internally to the SDK team to check this issues.&lt;/P&gt;
&lt;P&gt;Any updated information, will let you know.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 05:49:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1293791#M175632</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-06-17T05:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso with Azure RTOS gives stack overflow error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1294200#M175668</link>
      <description>&lt;P&gt;Thank You for investigating.&lt;/P&gt;&lt;P&gt;I look forward to getting a solution.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 15:23:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1294200#M175668</guid>
      <dc:creator>MAUZ</dc:creator>
      <dc:date>2021-06-17T15:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso with Azure RTOS gives stack overflow error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1294471#M175688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187755"&gt;@MAUZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Already in the SDK team process, any updated information will let you know, thanks for your contribution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 06:47:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1294471#M175688</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-06-18T06:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso with Azure RTOS gives stack overflow error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1295742#M175818</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187755"&gt;@MAUZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I get the internal reply:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The debug feature in MCUXpresso IDE does not support Azure RTOS currently. In Azure RTOS, every thread has its own stack. For example, in the following picture, the stack of thread_0 is from 0x20000718 to 0x20000b17. The current stack pointer is 0x20000af8 in the SP register. So there is no stack overflow here.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_179e57ca4fc2e7kerryzhou_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_1-1624329577283.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/147624i17D020C853E5C585/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_1-1624329577283.png" alt="kerryzhou_1-1624329577283.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, to the&amp;nbsp;&lt;SPAN&gt;Azure RTOS project, we don't need to check the IDE stack, as that is not precise, we need to check each thread stack to check whether it is overflow or not.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 02:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1295742#M175818</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-06-22T02:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso with Azure RTOS gives stack overflow error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1296353#M175869</link>
      <description>&lt;P&gt;Thanks a lot for the clarification&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 20:35:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-with-Azure-RTOS-gives-stack-overflow-error/m-p/1296353#M175869</guid>
      <dc:creator>MAUZ</dc:creator>
      <dc:date>2021-06-22T20:35:46Z</dc:date>
    </item>
  </channel>
</rss>

