<?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>CodeWarrior for MCUのトピックHC12: Variables values debugging Codewarrior</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Variables-values-debugging-Codewarrior/m-p/128602#M765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;I am working with CW12 ver3.1 and P&amp;amp;E multilink USB cable.&lt;/DIV&gt;&lt;DIV&gt;I worte simple program and debug it.&lt;/DIV&gt;&lt;DIV&gt;I&amp;nbsp; found that running and stopping via P&amp;amp;E is easy ,but i couldn't find a way through the debugger to read values of variables.&lt;/DIV&gt;&lt;DIV&gt;I am sure it can be done via debbuger,something like &lt;EM&gt;watch.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;So how can i do that ? Please give me detailed answer .&lt;/DIV&gt;&lt;P&gt;Message Edited by CrasyCat on &lt;SPAN class="date_text"&gt;2007-04-13&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:32 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2006 03:43:07 GMT</pubDate>
    <dc:creator>codewarrier</dc:creator>
    <dc:date>2006-08-29T03:43:07Z</dc:date>
    <item>
      <title>HC12: Variables values debugging Codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Variables-values-debugging-Codewarrior/m-p/128602#M765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;I am working with CW12 ver3.1 and P&amp;amp;E multilink USB cable.&lt;/DIV&gt;&lt;DIV&gt;I worte simple program and debug it.&lt;/DIV&gt;&lt;DIV&gt;I&amp;nbsp; found that running and stopping via P&amp;amp;E is easy ,but i couldn't find a way through the debugger to read values of variables.&lt;/DIV&gt;&lt;DIV&gt;I am sure it can be done via debbuger,something like &lt;EM&gt;watch.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;So how can i do that ? Please give me detailed answer .&lt;/DIV&gt;&lt;P&gt;Message Edited by CrasyCat on &lt;SPAN class="date_text"&gt;2007-04-13&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:32 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 03:43:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Variables-values-debugging-Codewarrior/m-p/128602#M765</guid>
      <dc:creator>codewarrier</dc:creator>
      <dc:date>2006-08-29T03:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variables values debugging Codewarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Variables-values-debugging-Codewarrior/m-p/128603#M766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There are several ways to get to that.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; 1- Use Data window&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - In your debugger is you are using the default layout, you have a window called Data:1 showing "Global" on the right hand side of the information bar (on top of the window).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Click with the right mouse button in the Data:1 window&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Select "Open Module" in the drop down menu. a Modules dialog is opened.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Select the source file where the variable is defined.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - You will see the current value of the variable in the Data window.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;2- Use an expression in a Data Window&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - In your debugger is you are using the default layout, you have a window called Data:1 showing "Global" on the right hand side of the information bar (on top of the window).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Drag the variable name from the Source Window to the Data window.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - You should be able to see the variable value in the Expression window. &amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; 3- Use visualization window&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Select "Component" -&amp;gt; "Open". The "Open Window Component" dialog is opened.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Double click on "VisualizationTool" component. A new window is opened&amp;nbsp;called "Visualizationtool"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Click with the right mouse button in the visualizationtool component and select "Add new Instruments" -&amp;gt; "Value as Text&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Place the instrument somewhere in the window (just click inside of the window).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Click with the right mouse button on the instrument and select "Properties"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Set "Kind of Port" to Variable, specify the variable name in "Port to Display" and adjust text you want to see in front of the value &amp;nbsp;in "Field description".&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you are using V3.1 tools, option 2 and 3 will not allow you to browse (or navigate) within a structure or pointer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you upgrade to V4.5, you will be able to browse within data structure or a pointer in option 2 too.&lt;/DIV&gt;&lt;DIV&gt;Also upgrading to V4.5 will allow you to just drag and drop a variable from the data window to the visualizationtool window. Visualizationtool is not suited to browse or navigate within a data structure or a pointer.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 15:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Variables-values-debugging-Codewarrior/m-p/128603#M766</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-08-29T15:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variables values debugging Codewarrior  Thanks</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Variables-values-debugging-Codewarrior/m-p/128604#M767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks you &lt;DIV&gt;CrasyCat&lt;/DIV&gt;for the compleat answer !!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 19:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/HC12-Variables-values-debugging-Codewarrior/m-p/128604#M767</guid>
      <dc:creator>codewarrier</dc:creator>
      <dc:date>2006-08-29T19:34:05Z</dc:date>
    </item>
  </channel>
</rss>

