<?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 MCUXpresso RT1170 gdb variables optimized out - can't stop optmization in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-RT1170-gdb-variables-optimized-out-can-t-stop/m-p/1384012#M184181</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been developing a C application using an RT1170 for several months now and keep coming up against a problem when debugging: When I try to view the values of variables many appear as &amp;lt;optimized out&amp;gt;.&lt;/P&gt;&lt;P&gt;I have turned off optimization within the MCUXpresso IDE, trying both -O0 and -Og.&lt;/P&gt;&lt;P&gt;I have also tried declaring specific variables as 'volatile', which is one other suggestion I found,&amp;nbsp; buy no luck.&lt;/P&gt;&lt;P&gt;Doe anyone have any other suggestions?&lt;/P&gt;&lt;P&gt;Is it really the case that some optimization cannot be turned off?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 11:35:57 GMT</pubDate>
    <dc:creator>robert_s</dc:creator>
    <dc:date>2021-12-09T11:35:57Z</dc:date>
    <item>
      <title>MCUXpresso RT1170 gdb variables optimized out - can't stop optmization</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-RT1170-gdb-variables-optimized-out-can-t-stop/m-p/1384012#M184181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been developing a C application using an RT1170 for several months now and keep coming up against a problem when debugging: When I try to view the values of variables many appear as &amp;lt;optimized out&amp;gt;.&lt;/P&gt;&lt;P&gt;I have turned off optimization within the MCUXpresso IDE, trying both -O0 and -Og.&lt;/P&gt;&lt;P&gt;I have also tried declaring specific variables as 'volatile', which is one other suggestion I found,&amp;nbsp; buy no luck.&lt;/P&gt;&lt;P&gt;Doe anyone have any other suggestions?&lt;/P&gt;&lt;P&gt;Is it really the case that some optimization cannot be turned off?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 11:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-RT1170-gdb-variables-optimized-out-can-t-stop/m-p/1384012#M184181</guid>
      <dc:creator>robert_s</dc:creator>
      <dc:date>2021-12-09T11:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso RT1170 gdb variables optimized out - can't stop optmization</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-RT1170-gdb-variables-optimized-out-can-t-stop/m-p/1384639#M184240</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/97236"&gt;@robert_s&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Could you please give me some screenshot about your issues?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Do you also can reproduce issues on the&amp;nbsp; RT SDK project or not?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Even you add the variable to the Expressions window, still have this issues?&lt;/P&gt;
&lt;P&gt;Please give me more details about it, thanks.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 07:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-RT1170-gdb-variables-optimized-out-can-t-stop/m-p/1384639#M184240</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-12-10T07:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso RT1170 gdb variables optimized out - can't stop optmization</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-RT1170-gdb-variables-optimized-out-can-t-stop/m-p/1386572#M184423</link>
      <description>&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;It took me a while to reproduce the problem, but I think I have worked out what was going on.&lt;/P&gt;&lt;P&gt;Originally I must have had the optimization level as '-O0' (none) which often results in variables being displayed in MCUXpresso as "&amp;lt;optimized out&amp;gt;".&lt;/P&gt;&lt;P&gt;With the optimization level set to '-Og' (debug) then it looks like only uninitialised variables appear as &amp;lt;optimized out&amp;gt; until they are set. That probably confused me!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 16:16:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-RT1170-gdb-variables-optimized-out-can-t-stop/m-p/1386572#M184423</guid>
      <dc:creator>robert_s</dc:creator>
      <dc:date>2021-12-14T16:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso RT1170 gdb variables optimized out - can't stop optmization</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-RT1170-gdb-variables-optimized-out-can-t-stop/m-p/1386800#M184433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/97236"&gt;@robert_s&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Thank you for your updated information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;So, now your issue is solved, right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If your question is solved, please help to mark the correct answer, just to close this case, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Any new issues, welcome to create the new question post.&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>Wed, 15 Dec 2021 01:54:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MCUXpresso-RT1170-gdb-variables-optimized-out-can-t-stop/m-p/1386800#M184433</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-12-15T01:54:42Z</dc:date>
    </item>
  </channel>
</rss>

