<?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: Can I use the CW IDE Console to print debug messages? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548309#M22075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vicente.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the side I have been using Basic4Android to develop Apps for Android devices, and it has a "Log" feature that lets you log anything in a log window for debugging purposes. I was hoping that the CodeWarrior IDE might have a similar capability for the Micro Applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The device I have has limited I/O (only 16 pins) and I am using the TxD and RxD pins for other signals, so I guess I won't be able to use the SCI port in this case.&amp;nbsp; Will keep that in mind, though, to maybe use a slightly larger device in the future to keep the SCI port open for debugging/messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 17:55:44 GMT</pubDate>
    <dc:creator>bpaehr</dc:creator>
    <dc:date>2016-07-28T17:55:44Z</dc:date>
    <item>
      <title>Can I use the CW IDE Console to print debug messages?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548307#M22073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using CW 10.6.4, and would like to output messages "somewhere" to help debug the code. Device is MC9S08QB8.&lt;/P&gt;&lt;P&gt;Can the IDE Console window be used?&amp;nbsp; If so, how do I specify the messages in my C-Code to be printed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:15:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548307#M22073</guid>
      <dc:creator>bpaehr</dc:creator>
      <dc:date>2016-07-28T15:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the CW IDE Console to print debug messages?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548308#M22074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bod &lt;/P&gt;&lt;P&gt;the MC9S08QB8 only has 8 K of flash, I am not sure if you can set the console for an 8 bit device, but if this is possible you will use a lot of the memory for it.&lt;/P&gt;&lt;P&gt;Also you can use one of the SCI port (or the OSBDM port ) to send information to the terminal like teraterm, but in this case you needs to set the SCI port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vicente&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:28:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548308#M22074</guid>
      <dc:creator>vicentegomez</dc:creator>
      <dc:date>2016-07-28T15:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the CW IDE Console to print debug messages?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548309#M22075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vicente.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the side I have been using Basic4Android to develop Apps for Android devices, and it has a "Log" feature that lets you log anything in a log window for debugging purposes. I was hoping that the CodeWarrior IDE might have a similar capability for the Micro Applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The device I have has limited I/O (only 16 pins) and I am using the TxD and RxD pins for other signals, so I guess I won't be able to use the SCI port in this case.&amp;nbsp; Will keep that in mind, though, to maybe use a slightly larger device in the future to keep the SCI port open for debugging/messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 17:55:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548309#M22075</guid>
      <dc:creator>bpaehr</dc:creator>
      <dc:date>2016-07-28T17:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the CW IDE Console to print debug messages?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548310#M22076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless of how the console messages get sent, they're going to take up a lot of code space.&amp;nbsp; On the Kinetis devices at least (I haven't seen an equivalent on HCS08) you have the option of using semihosting, which will let you pass messages through the debug interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On an 8k part, though, there's not much room for log messages.&amp;nbsp; If you use the printf() command, that's going to take up easily half of your available memory.&amp;nbsp; Usually when I'm working with devices that small I'm not emitting more than one or two character signals on a serial port.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As attached as I am to the HCS08 architecture (I grew up with the 6800 and the 6502) I have to say that if you're just getting into it, you might want to go with Kinetis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jul 2016 19:44:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548310#M22076</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2016-07-30T19:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the CW IDE Console to print debug messages?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548311#M22077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scott:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry. Only just checked back to see if there were any other additions to my original inquiry...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wow! &lt;STRONG&gt;printf()&lt;/STRONG&gt; takes up 4K or more of space?!!&amp;nbsp; That may not be an issue for me, as my current code only occupies 2125 bytes of Flash.&amp;nbsp; I'll give it a go, as I've ordered a slightly larger version of the HC08 that has 4 more pins, which would free-up my TXD/RXD pins for use as a communications capability to a terminal.&amp;nbsp; If the &lt;STRONG&gt;printf()&lt;/STRONG&gt; doesn't quite work out, I'm sure I can write a few simple routines to send a buffer of data out of the serial port (that would occupy less than 4K of memory!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 15:20:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548311#M22077</guid>
      <dc:creator>bpaehr</dc:creator>
      <dc:date>2016-08-17T15:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use the CW IDE Console to print debug messages?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548312#M22078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the full implementation of printf() on an HC08 adds closer to 8K.&amp;nbsp; I always rebuild the library to exclude floating point support at least, and that drops it down to more like 4K.&amp;nbsp; I'm looking at a linker map file now and printf.o alone without floating point is 1677 bytes.&amp;nbsp; The rest is other library functions that printf() depends on so the additional footprint depends on what library functions you're already linking in.&amp;nbsp; You'll also need a lot of stack space for printf().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually have a simple utility library with serial output routines for strings and hex numbers, and that's probably not more than 100 bytes of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 15:56:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Can-I-use-the-CW-IDE-Console-to-print-debug-messages/m-p/548312#M22078</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2016-08-17T15:56:45Z</dc:date>
    </item>
  </channel>
</rss>

