<?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: displaying variables in debugger in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199848#M7497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;thanks stanish, i adjusted the code density slider and set it to low, and now the variable values are being displayed.&lt;BR /&gt;&lt;BR /&gt;however, i got a c54 warning, Option -Oc: This CSE is not supported for the current target, therefor this switch has no effect on the generated code.&lt;BR /&gt;&lt;BR /&gt;will this affect my code in any way?&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2008 00:23:18 GMT</pubDate>
    <dc:creator>dashz84</dc:creator>
    <dc:date>2008-11-07T00:23:18Z</dc:date>
    <item>
      <title>displaying variables in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199844#M7493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm running codewarrior v4.7 on vista and i have a question regarding the variables that are displayed when i run the debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for instance, the following code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dx=calc_x (delta_dist, desired_theta_deg);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dy=calc_y (delta_dist, desired_theta_deg);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; cur_x += dx;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; cur_y += dy;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; x_diff=cur_x-goal_x;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; y_diff=cur_y-goal_y;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; x_diff_sq=pow(x_diff,2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; y_diff_sq=pow(y_diff,2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xy_diff_sq=x_diff_sq+y_diff_sq;&amp;nbsp; &amp;lt;----- breakpoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm trying to see the values of x_diff_sq and y_diff_sq, however i only see x_diff_sq when i set a break point on xy_diff_sq. what is the problem here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 03:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199844#M7493</guid>
      <dc:creator>dashz84</dc:creator>
      <dc:date>2008-11-06T03:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: displaying variables in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199845#M7494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;also, i don't see a displayed value for x_diff, and there's no value for dy either.&lt;BR /&gt;&lt;BR /&gt;it seems that the values are still being added correctly but are just not being displayed.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 05:40:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199845#M7494</guid>
      <dc:creator>dashz84</dc:creator>
      <dc:date>2008-11-06T05:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: displaying variables in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199846#M7495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;That's because the variables are optimized and the program never puts them on the stack, but keeps them in CPU registers. The CW debugger is too dumb to understand such and therefore the variables won't appear.&lt;BR /&gt;&lt;BR /&gt;If you wish to see the variables during debugging, either disable optimization or make the variables volatile. You can then change back once you are building for release.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 17:47:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199846#M7495</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2008-11-06T17:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: displaying variables in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199847#M7496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hi dashz84,&lt;BR /&gt;&lt;BR /&gt;I suspect this issue may be caused by compiler optimalization. The various optimalizations are turned on in CodeWarrior for HC12 projects by default.&lt;BR /&gt;&lt;BR /&gt;I'd suggest you to try to turn the optimalization off.&lt;BR /&gt;You can use "Debugger Complexity" slider within the Project settings (ALT+F7) -&amp;gt;"Compiler for HC12" -&amp;gt; "Smart Sliders" button to adjust the optimalization settings.&lt;BR /&gt;&lt;BR /&gt;Stanish&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2008 18:05:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199847#M7496</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2008-11-06T18:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: displaying variables in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199848#M7497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;thanks stanish, i adjusted the code density slider and set it to low, and now the variable values are being displayed.&lt;BR /&gt;&lt;BR /&gt;however, i got a c54 warning, Option -Oc: This CSE is not supported for the current target, therefor this switch has no effect on the generated code.&lt;BR /&gt;&lt;BR /&gt;will this affect my code in any way?&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 00:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199848#M7497</guid>
      <dc:creator>dashz84</dc:creator>
      <dc:date>2008-11-07T00:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: displaying variables in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199849#M7498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;dashz84,&lt;BR /&gt;&lt;BR /&gt;According to the compiler manual this option is present only for compatibility reasons for HC(s)08.&lt;BR /&gt;Anyway if you want to get rid of this warning I'd suggest you to remove option "-Oc" from the "Command Line Arguments" editbox in the "Compiler for HC08" settings.&lt;BR /&gt;&lt;BR /&gt;Stanish&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 01:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/199849#M7498</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2008-11-07T01:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: displaying variables in debugger</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/1773926#M15963</link>
      <description>&lt;P&gt;Hello I am facing similar problem. I am using&amp;nbsp; - CodeWarrior for MCU&lt;BR /&gt;Version: 11.1&lt;/P&gt;&lt;P&gt;I dont have &lt;SPAN&gt;"Smart Sliders" button for optimization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 12:13:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/displaying-variables-in-debugger/m-p/1773926#M15963</guid>
      <dc:creator>siddhant67</dc:creator>
      <dc:date>2023-12-13T12:13:56Z</dc:date>
    </item>
  </channel>
</rss>

