<?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: printf() doesn't print on eclipse console when mfs.h is included in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176950#M1541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change to "ttyd:" ,&amp;nbsp; "ttya:",&amp;nbsp; "ttyb:" will not help you to have it worked as you expected because is represented for different UART port but not for debug console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try to change MQX_SUPPRESS_STDIO_MACROS to 1 in&amp;nbsp;mqx_cnfg.h. I guess it will work as you want but that is not suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 09:57:37 GMT</pubDate>
    <dc:creator>Dekiru</dc:creator>
    <dc:date>2011-10-27T09:57:37Z</dc:date>
    <item>
      <title>printf() doesn't print on eclipse console when mfs.h is included</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176945#M1536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am playing with a kwikstik and MQX.&lt;/P&gt;&lt;P&gt;I found that printf() (or _io_printf() ) does NOT print anymore on eclipse console if I include &amp;lt;mfs.h&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone faced the same?&lt;/P&gt;&lt;P&gt;Any way around it?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Mik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 20:32:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176945#M1536</guid>
      <dc:creator>michele_novalia</dc:creator>
      <dc:date>2011-10-25T20:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: printf() doesn't print on eclipse console when mfs.h is included</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176946#M1537</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;In &amp;lt;MQX&amp;gt;\mfs\examples\ramdisk they have an example where both printf and mfs.h exist.&lt;/P&gt;&lt;P&gt;It should work well.&lt;/P&gt;&lt;P&gt;Did you check that example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 22:18:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176946#M1537</guid>
      <dc:creator>Dekiru</dc:creator>
      <dc:date>2011-10-25T22:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: printf() doesn't print on eclipse console when mfs.h is included</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176947#M1538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dekiru,&lt;/P&gt;&lt;P&gt;Oh yes I did, but the printf in that examples never prints on my eclipse console either (codewarrior 10.1).&lt;/P&gt;&lt;P&gt;It only prints there when mfs.h is not included.&lt;/P&gt;&lt;P&gt;I suspect that &amp;lt;stdio.h&amp;gt; gets replaced by &amp;lt;io.h&amp;gt; included from &amp;lt;mfs.h&amp;gt;... and that causes the problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 22:38:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176947#M1538</guid>
      <dc:creator>michele_novalia</dc:creator>
      <dc:date>2011-10-25T22:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: printf() doesn't print on eclipse console when mfs.h is included</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176948#M1539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dev,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that you said about the console where captures UART data...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In MQX, the standard formatted I/O library fuctions is overrided by MQX functions (defined in fio.h).&lt;/P&gt;&lt;P&gt;For printf, it is replaced by _io_printf, that will out data at&amp;nbsp;BSP_DEFAULT_IO_CHANNEL (kwikstik-k40x256.h)&lt;/P&gt;&lt;P&gt;All MQX examples should be used in that way (mean include fio.h in the file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case the fio.h file is not included in any your files, it may use the standard I/O function but I think Freescale will not warrant it work in that case...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, in the future, if you have question in MQX, you should ask in MQX forum. There may be many MQX guru there and they may have better solutions...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 11:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176948#M1539</guid>
      <dc:creator>Dekiru</dc:creator>
      <dc:date>2011-10-26T11:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: printf() doesn't print on eclipse console when mfs.h is included</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176949#M1540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dekiru,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first of all you are right: this should have been more a question for MQX forum...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your explanation.&lt;/P&gt;&lt;P&gt;I have tried to change values in kwikstik-k20x256.h for the BSP_DEFAULT_IO_CHANNEL, to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;"ttyd:" ,&amp;nbsp; "ttya:",&amp;nbsp; "ttyb:"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately no success yet... I will search for another solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 19:57:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176949#M1540</guid>
      <dc:creator>michele_novalia</dc:creator>
      <dc:date>2011-10-26T19:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: printf() doesn't print on eclipse console when mfs.h is included</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176950#M1541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change to "ttyd:" ,&amp;nbsp; "ttya:",&amp;nbsp; "ttyb:" will not help you to have it worked as you expected because is represented for different UART port but not for debug console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try to change MQX_SUPPRESS_STDIO_MACROS to 1 in&amp;nbsp;mqx_cnfg.h. I guess it will work as you want but that is not suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 09:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176950#M1541</guid>
      <dc:creator>Dekiru</dc:creator>
      <dc:date>2011-10-27T09:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: printf() doesn't print on eclipse console when mfs.h is included</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176951#M1542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dekiru,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;"MQX_SUPPRESS_STDIO_MACROS to 1 in&amp;nbsp;mqx_cnfg.h."&lt;/P&gt;&lt;P&gt;without success again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am thinking I am missing the obvious: do people get the printf out somewhere else when using the kwikstik?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will move this discussion in MQX, thanks for your help.&lt;/P&gt;&lt;P&gt;Mik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 15:26:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/printf-doesn-t-print-on-eclipse-console-when-mfs-h-is-included/m-p/176951#M1542</guid>
      <dc:creator>michele_novalia</dc:creator>
      <dc:date>2011-10-28T15:26:25Z</dc:date>
    </item>
  </channel>
</rss>

