<?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: Terminal Emulation not working</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Terminal-Emulation-not-working/m-p/182379#M6221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using terminal I/O in simulator is simple. Just 3 steps are required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;1) copy and add to your project termio.c file from&lt;BR /&gt;c:\Program Files\Freescale\CWS12v5.1\(CodeWarrior_Examples)\HCS12X\GlobalAddressing\Sources\termio.c&lt;BR /&gt;Though it is from S12X examples, it&amp;nbsp;will work also for S12DG128B&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;2) Add #include &amp;lt;stdio.h&amp;gt; to files, where you want to use printf from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Initialize SCi adding&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMIO_Init(); call to your main or something.&lt;BR /&gt;That's all. From now you should be able to call printf and see your strings in&amp;nbsp;terminal component window (Component-&amp;gt;Open...).&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Regarding printf over BDM. No, it has nothing to do with SCI module. Debuggers, which support it, are using some RAM cells as I/O flags and data. You set some flag, then when debuggers reads it, it will determine if you placed some data to print buffer or not and shows it in some window. The same works in reverse direction. Debugge writes your keypresses into RAM on your target and so on.&lt;BR /&gt;This "serial" I/O over BDM works&amp;nbsp;in&amp;nbsp;NoICE (&lt;A href="http://www.noicedebugger.com/" rel="nofollow" target="_blank"&gt;www.noicedebugger.com&lt;/A&gt;) debugger. Codewarrior examples mention something like this for BDIK target connection. But it looks like this useful feature is not available for P&amp;amp;E multilink or TBDML connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 01:34:45 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2011-11-14T01:34:45Z</dc:date>
    <item>
      <title>Terminal Emulation not working</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Terminal-Emulation-not-working/m-p/182378#M6220</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;I try to use the Terminal emulation of the Debugger in two way. Unfortunately both do not work:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Using in Simulation Mode: I exactly use the TERMIO_Init() as it comes with the installation. If I use afterward:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERM_Direct(TERM_TO_WINDOW, "test.bin");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMIO_PutChar('a');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I did not get any output at all. I tried to change the setting of the Baudrate and the COM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Port in the 'Configuration Connections ...' window. With not success. When I mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Show Protocol' I always get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMINAL: Open serial port on COM1 baudrate 9600&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMINAL: Failed to open serial port COM1 with 9600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When writing on the SCIDRL Register I can see in the Memory Window of the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Simulation that something&amp;nbsp; happens because the 0x00 turns into red&lt;/P&gt;&lt;P&gt;2. Using on the real hardware:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My real hardware has not SCI Lines that are accessable. However I thought with the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debugger I can use the SCI Module of the µC (mc9s12dg128b) exactly like there are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; accessable and redirect it to the Terminal window in the Debugger. However even&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when I select 'Add All' for the possible connections I get no output at all in the Terminal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Window. If I change baudrate and COM Port with marked 'Show Protocol' I always&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get the same message as with the simulator:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMINAL: Open serial port on COM1 baudrate 9600&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMINAL: Failed to open serial port COM1 with 9600&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is surprising to me is that at least in the simulator mode some of the&lt;/P&gt;&lt;P&gt;examples (did not try all) that comes with the installation works in the simulator&lt;/P&gt;&lt;P&gt;mode. However even when I think I copied line by line to my project it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the 'free' Version of Codewarrior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have the Terminal window up and running and can please direct my&lt;/P&gt;&lt;P&gt;through the configuration&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Nov 2011 17:18:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Terminal-Emulation-not-working/m-p/182378#M6220</guid>
      <dc:creator>mkrug</dc:creator>
      <dc:date>2011-11-13T17:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Terminal Emulation not working</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Terminal-Emulation-not-working/m-p/182379#M6221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using terminal I/O in simulator is simple. Just 3 steps are required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;1) copy and add to your project termio.c file from&lt;BR /&gt;c:\Program Files\Freescale\CWS12v5.1\(CodeWarrior_Examples)\HCS12X\GlobalAddressing\Sources\termio.c&lt;BR /&gt;Though it is from S12X examples, it&amp;nbsp;will work also for S12DG128B&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;2) Add #include &amp;lt;stdio.h&amp;gt; to files, where you want to use printf from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Initialize SCi adding&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMIO_Init(); call to your main or something.&lt;BR /&gt;That's all. From now you should be able to call printf and see your strings in&amp;nbsp;terminal component window (Component-&amp;gt;Open...).&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Regarding printf over BDM. No, it has nothing to do with SCI module. Debuggers, which support it, are using some RAM cells as I/O flags and data. You set some flag, then when debuggers reads it, it will determine if you placed some data to print buffer or not and shows it in some window. The same works in reverse direction. Debugge writes your keypresses into RAM on your target and so on.&lt;BR /&gt;This "serial" I/O over BDM works&amp;nbsp;in&amp;nbsp;NoICE (&lt;A href="http://www.noicedebugger.com/" rel="nofollow" target="_blank"&gt;www.noicedebugger.com&lt;/A&gt;) debugger. Codewarrior examples mention something like this for BDIK target connection. But it looks like this useful feature is not available for P&amp;amp;E multilink or TBDML connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 01:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Terminal-Emulation-not-working/m-p/182379#M6221</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-11-14T01:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Terminal Emulation not working</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Terminal-Emulation-not-working/m-p/182380#M6222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kef,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about use your method with "Open Source BDM" and HCS08 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cai.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 22:25:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Terminal-Emulation-not-working/m-p/182380#M6222</guid>
      <dc:creator>phantomgz</dc:creator>
      <dc:date>2011-11-15T22:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Terminal Emulation not working</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Terminal-Emulation-not-working/m-p/182381#M6223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately S08 simulator in classic IDE for some weird reasons is using P&amp;amp;E simulator, which is disabling ability to direct simulated SCI output to the terminal component. I know that in some very old release of CW it was working the same way for HC08 like it is working for S12.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding "serial" I/O over BDM. It should be debuggers task, and not the feature of specific BDM connection. I'm not sure, but I doubt it is implemented for Open Source BDM, while it is not available for Multilink connection.&lt;/P&gt;&lt;P&gt;(HC11 Serial monitor connection from some old CW allowed not only to debug over SCI, but also allowed to do I/O to terminal component over the same SCI module. It could be way faster to have the same communicating using BDM pin).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 23:51:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Terminal-Emulation-not-working/m-p/182381#M6223</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-11-15T23:51:04Z</dc:date>
    </item>
  </channel>
</rss>

