<?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 MQX-Lite and printf in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MQX-Lite-and-printf/m-p/367949#M19015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some troubles with printf and MQX-Lite. It works as long as I dont't use arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;printf( "Any text" );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application breaks as soon as I use arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t test;&lt;/P&gt;&lt;P&gt;test = 5;&lt;/P&gt;&lt;P&gt;printf( "Any test %i", test );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had no problems without MQX-Lite but as I understand printf should work with MQX-Lite. I only found one indication for problems with printf here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/311083" title="https://community.freescale.com/thread/311083"&gt;https://community.freescale.com/thread/311083&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know something about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Dec 2014 20:44:59 GMT</pubDate>
    <dc:creator>astdom01</dc:creator>
    <dc:date>2014-12-20T20:44:59Z</dc:date>
    <item>
      <title>MQX-Lite and printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MQX-Lite-and-printf/m-p/367949#M19015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some troubles with printf and MQX-Lite. It works as long as I dont't use arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;printf( "Any text" );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application breaks as soon as I use arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t test;&lt;/P&gt;&lt;P&gt;test = 5;&lt;/P&gt;&lt;P&gt;printf( "Any test %i", test );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had no problems without MQX-Lite but as I understand printf should work with MQX-Lite. I only found one indication for problems with printf here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/311083" title="https://community.freescale.com/thread/311083"&gt;https://community.freescale.com/thread/311083&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know something about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 20:44:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MQX-Lite-and-printf/m-p/367949#M19015</guid>
      <dc:creator>astdom01</dc:creator>
      <dc:date>2014-12-20T20:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: MQX-Lite and printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MQX-Lite-and-printf/m-p/367950#M19016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem seems to be a little be more complex then I described: It's not about the arguments - printf works somethimes and sometimes not independent of the arguments and the length of the text. If the constellation works it works all the time (in a loop).&amp;nbsp; But if I change the code a little bit it is very likely that&amp;nbsp; printf does not work anymore. In this case a wrong text will be displayed and I run in an unhandled inerrupt. For me it looks like a wrong memory area will be overwritten or like a synchronization problem - but I have only one task running. I can reproduce this with a new very simple project. I use the ConsoleIO component as described 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;http://mcuoneclipse.com/2013/02/07/tutorial-printf-with-and-without-processor-expert/&lt;/A&gt;&amp;nbsp; Anyway ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does printf together with MQX-Lite work for you without problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for you Input .. Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Dec 2014 19:22:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MQX-Lite-and-printf/m-p/367950#M19016</guid>
      <dc:creator>astdom01</dc:creator>
      <dc:date>2014-12-21T19:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: MQX-Lite and printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MQX-Lite-and-printf/m-p/367951#M19017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem seems to be the stack size of the task. Sounds easy to find but I really thought that a stack size of about 512 Byte is enough so I did not consider this. I can't give more space to my tasks therefore I will avoid printf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, Dominic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 08:07:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MQX-Lite-and-printf/m-p/367951#M19017</guid>
      <dc:creator>astdom01</dc:creator>
      <dc:date>2014-12-22T08:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: MQX-Lite and printf</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MQX-Lite-and-printf/m-p/367952#M19018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dominic Ast,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some examples of MQXLite in {CW v10.6}\MCU\CodeWarrior_Examples\Processor_Expert\MQXLite\Kinetis.&lt;/P&gt;&lt;P&gt;to output information, a console is needed in a MQXLite project.&lt;/P&gt;&lt;P&gt;these examples will help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 07:57:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MQX-Lite-and-printf/m-p/367952#M19018</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2014-12-25T07:57:10Z</dc:date>
    </item>
  </channel>
</rss>

