<?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: variable not shown in debugger in CodeWarrior for StarCore</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324666#M455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone who might read this in the future, the board that was running this code had hardware issues which were causing a lot of unexpected/explainable behavior including this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2014 20:11:06 GMT</pubDate>
    <dc:creator>d_li</dc:creator>
    <dc:date>2014-09-11T20:11:06Z</dc:date>
    <item>
      <title>variable not shown in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324662#M451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the function in question.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INLINE void osErrorDebug(){ 
&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile i = 0; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; DEBUG(); 
&amp;nbsp;&amp;nbsp;&amp;nbsp; while(i){ //modify i to 0 with to continue
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOP() 
&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
} &lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the debugger shell, there are no variables listed for this function. Similarly in the variable window in the debug perspective, there is nothing either. The optimization level under StarCore C/C++ Compiler is set to 0.&lt;/P&gt;&lt;P&gt;This function can also be found in ${CW_Install}\SC\StarCore_Support\SmartDSP\include\arch\starcore\common\starcore_macros.h&lt;/P&gt;&lt;P&gt;Any insight into how to make this variable available to manipulate would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 18:36:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324662#M451</guid>
      <dc:creator>d_li</dc:creator>
      <dc:date>2014-07-24T18:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: variable not shown in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324663#M452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wanted to fix something,&lt;/P&gt;&lt;P&gt;should be saying &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-weight: inherit; font-style: inherit;"&gt;volatile i = 1; &lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 18:38:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324663#M452</guid>
      <dc:creator>d_li</dc:creator>
      <dc:date>2014-07-24T18:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: variable not shown in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324664#M453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David Li, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure which CW version and StarCore target you're using. I tried on a B4860 target and just copy paste this function into a small stationary project created via wizard and run on the SC3900 ISS flavour of the CW simulator. Furthermore, I'm assuming you have compiled your project with debug information ON.&lt;/P&gt;&lt;P&gt;Here's what i get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="DS_evaluate.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45258i4BDFA685CEA3694D/image-size/large?v=v2&amp;amp;px=999" role="button" title="DS_evaluate.png" alt="DS_evaluate.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As can be seen, the debugger works ok. It's able to show the local i variable and via the Debugger Shell I'm able to display its content or to modify it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a primary suggestion, try to create a small project without SmartDSP OS and see if that works in your case. It should :-) &lt;/P&gt;&lt;P&gt;If that is the case, then we investigate further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 05:45:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324664#M453</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2014-07-25T05:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: variable not shown in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324665#M454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the optimization level? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 01:29:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324665#M454</guid>
      <dc:creator>lunminliang</dc:creator>
      <dc:date>2014-08-01T01:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: variable not shown in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324666#M455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone who might read this in the future, the board that was running this code had hardware issues which were causing a lot of unexpected/explainable behavior including this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 20:11:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/variable-not-shown-in-debugger/m-p/324666#M455</guid>
      <dc:creator>d_li</dc:creator>
      <dc:date>2014-09-11T20:11:06Z</dc:date>
    </item>
  </channel>
</rss>

