<?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のトピックRe: Using Command Window to Debug</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192604#M6963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; HI-WAVE does not allow you to send messages from the application to the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; command window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When debugging on your hardware stdout should be redirected to some peripheral.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Modifying TermIO.c you can send the data to any peripheral available (SCI, LCD, ...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But you need to get one free resource dedicated to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2009 20:07:15 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2009-07-09T20:07:15Z</dc:date>
    <item>
      <title>Using Command Window to Debug</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192600#M6959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there's any way to display debug information in the command window. I mean, to help debugging, I want to print a string in the command window when a specific action has been done, for example, when a button is pressed I want the command window to show "BUTTON PRESSED".&lt;/P&gt;&lt;P&gt;I'm programming in C, using Codewarrior for the mc9s12a128 y mc9s12a256.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code will look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (button_port == 1) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* ACTIONS WHEN BUTTON PRESSED */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;write_in_cmd_window("BUTTON PRESSED")&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;--- This will be the command or instruction I'm looking for in order to "comunicate" with the command window, if possible.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance, I hope this can be done!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 20:25:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192600#M6959</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2009-06-22T20:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Command Window to Debug</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192601#M6960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CW816COMM&amp;amp;message.id=3858&amp;amp;query.id=55930#M3858" target="_blank"&gt;thread&lt;/A&gt; for some information.You might also do a search on the forums.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 21:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192601#M6960</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2009-06-25T21:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Command Window to Debug</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192602#M6961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Tom! I read that thread and I've been searching on the forums, but I couldn't find the solution to my problem. Every thread I found (also the one you suggested) are about printf, it uses a serial port for the communication and requieres the initialization and implementation of some TERMIO functions. The actual project I'm working on uses ALL the avaible serial ports so I can't use one of them for the printf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me explain a little more what I want to do: In the command window of the CodeWarrior Debugger (HiWave) one can input some "code" in order to inspect the value of the variables. This can be done, for example, like this: ("&amp;gt;&amp;gt;" is the command window input line)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;e VAR1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An it "prints" the value or VAR1. It could also be done with a printf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is the MCU (actually, code inside it) to communicate with the HiWave command windows and execute, for example, "e VAR1" so in the command window I can see the value of VAR1.&lt;/P&gt;&lt;P&gt;Later, what I'll do is NOT to execute commands, but to print comments, so I can trace and follow the behavior of the code I'm debugging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that can be done, and thanks to all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 19:04:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192602#M6961</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2009-06-30T19:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Command Window to Debug</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192603#M6962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sebastian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to printf from target to Hiwave windows, but I know how to do that with NoICE debugger (&lt;A href="http://www.noicedebugger.com/" rel="nofollow" target="_blank"&gt;http://www.noicedebugger.com&lt;/A&gt;). Feature is called Virtual UART. Here's their help system&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.noicedebugger.com/help/help.htm" rel="nofollow" target="_blank"&gt;http://www.noicedebugger.com/help/help.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and here's direct url to how it may work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.noicedebugger.com/help/bdm12.htm#VIRTUAL_UART" rel="nofollow" target="_blank"&gt;http://www.noicedebugger.com/help/bdm12.htm#VIRTUAL_UART&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 22:59:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192603#M6962</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2009-06-30T22:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Command Window to Debug</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192604#M6963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; HI-WAVE does not allow you to send messages from the application to the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; command window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When debugging on your hardware stdout should be redirected to some peripheral.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Modifying TermIO.c you can send the data to any peripheral available (SCI, LCD, ...).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But you need to get one free resource dedicated to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2009 20:07:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Using-Command-Window-to-Debug/m-p/192604#M6963</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-07-09T20:07:15Z</dc:date>
    </item>
  </channel>
</rss>

