<?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 console support for printf's in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286635#M10554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you create a CW project you are given the opportunity to add console support for printf's.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when you import a project into CW you are not given the same opportunity. I searched through project properties and I can't find the magic place to enable it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone how to enable this feature if possible with an existing project??&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Apr 2013 15:08:48 GMT</pubDate>
    <dc:creator>carlh</dc:creator>
    <dc:date>2013-04-26T15:08:48Z</dc:date>
    <item>
      <title>console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286635#M10554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you create a CW project you are given the opportunity to add console support for printf's.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when you import a project into CW you are not given the same opportunity. I searched through project properties and I can't find the magic place to enable it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone how to enable this feature if possible with an existing project??&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:08:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286635#M10554</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-26T15:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286636#M10555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;it affects which library gets used.&lt;/P&gt;&lt;P&gt;Have a look here: &lt;A href="http://mcuoneclipse.com/2013/02/07/tutorial-printf-with-and-without-processor-expert/" title="http://mcuoneclipse.com/2013/02/07/tutorial-printf-with-and-without-processor-expert/"&gt;Tutorial: Printf() with (and without) Processor Expert | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 15:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286636#M10555</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-04-26T15:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286637#M10556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I can’t find the ewl_hosted lib in CW. I noticed you referenced CW 10.3. I’m using 10.2. Is this lib not available in 10.2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;/carl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:00:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286637#M10556</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-26T16:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286638#M10557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;I'm using MCU10.3 with gcc. With gcc it is really easy. I quickly checked creating a project for K60 and FSL compiler, and I do not see an option to select the hosted/UART mode?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:21:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286638#M10557</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-04-26T16:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286639#M10558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope. Using Coldfire C/C++ Compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;‘mwccmcf.exe’&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:33:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286639#M10558</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-26T16:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286640#M10559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Funny…I just created a bareboard project and enabled console i/o but when I looked at the libs there was still no ewl_hosted lib.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/carl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286640#M10559</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-26T16:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286641#M10560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with ColdFire V1. I just compared the projects.&lt;/P&gt;&lt;P&gt;The one with console I/O has this source file added:&lt;/P&gt;&lt;P&gt;Sources/console_io_cf.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks that's the only real difference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:43:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286641#M10560</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-04-26T16:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286642#M10561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a new CF project and enabled console support and I found the same file (…/Sources/console_io_cf.c) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I opened it everything was #ifdef’d out.&lt;/P&gt;&lt;P&gt;#if &lt;U&gt;EWL&lt;/U&gt;CONSOLE_SUPPORT&lt;/P&gt;&lt;P&gt;where &lt;U&gt;EWL&lt;/U&gt;CONSOLE_SUPPORT = 0 in ‘ansi_parms.h’&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What’s my option? Copy these files into my project and set &lt;U&gt;EWL&lt;/U&gt;CONSOLE_SUPPORT to 1 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems kludgy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;/carl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:59:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286642#M10561</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-26T16:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286643#M10562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I missed something: For the console project, there is a compiler define present:&lt;/P&gt;&lt;P&gt;Check project properties &amp;gt; C/C++ Build &amp;gt; Settings &amp;gt; ColdFire Compiler &amp;gt; Language Settings &amp;gt; Other flags:&lt;/P&gt;&lt;P&gt;-define CONSOLE_IO_SUPPORT=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the 'no I/O' that setting is empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 17:17:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286643#M10562</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-04-26T17:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286644#M10563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created 2 new CW Bareboard projects…1 with i/o console support and one without. I can see the define as per your email in the project I enabled console i/o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I compiled both projects and did a diff between the 2 project folders. The only difference is in the .cproject files where I can see CONSOLE_IO_SUPPORT= 1 defined in 1 project but not the other. Nothing else is different!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that all that has to be done? I can’t test if printf’s work because I don’t have hardware yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/carl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 20:45:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286644#M10563</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-26T20:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286645#M10564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carl,&lt;/P&gt;&lt;P&gt;yes, I believe this is what you need. However, I need to admit that I usually avoid to use the console I/O and printf(), for the reasons listed &lt;A href="http://mcuoneclipse.com/2013/04/19/why-i-dont-like-printf/"&gt;here&lt;/A&gt;. I always use normal SendString() routines to write to the UART.&lt;/P&gt;&lt;P&gt;Additionally, using semi-hosting (using the debugger connection) is something I avoid whenever possible, as it is very slow, and even might block the microprocessor if no debugger is attached.&lt;/P&gt;&lt;P&gt;Just my 5 cents ;-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 20:58:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286645#M10564</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-04-26T20:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: console support for printf's</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286646#M10565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hear ya. I read your article. ☺&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the platform we are using (custom) uses the UART (only 1) for connecting accessories. Although I am considering using the UART for debugging without accessories, or simply limiting printf() chattiness through the console. Print only catastrophic issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like your web site BTW. Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/carl h.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 21:14:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/console-support-for-printf-s/m-p/286646#M10565</guid>
      <dc:creator>carlh</dc:creator>
      <dc:date>2013-04-26T21:14:06Z</dc:date>
    </item>
  </channel>
</rss>

