<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: sprintf problem in MCF51QE128 and Codewarrior.</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172630#M6510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a place in codewarrior where we can configure which variable types are allowed for printf&lt;/P&gt;&lt;P&gt;here is the pic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="sprintf_build_confg.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41283iD47EAFF4825426D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="sprintf_build_confg.PNG.png" alt="sprintf_build_confg.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;after select the int_FP in the print formats option, the printf function started to work fine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jan 2014 16:40:32 GMT</pubDate>
    <dc:creator>alfredogualdron</dc:creator>
    <dc:date>2014-01-23T16:40:32Z</dc:date>
    <item>
      <title>sprintf problem in MCF51QE128 and Codewarrior.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172626#M6506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hi all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to use sprintf function to convert a float value to a string, but it doesn't work, this function with integer values works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;an example of use is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int&amp;nbsp;&amp;nbsp; valueInteger;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;float valueFloat;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;char str[32];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;valueInteger = 420;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;valueFloat = 4.20;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sprintf(str,"%d",valueInteger);&amp;nbsp;&amp;nbsp; //works fine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sprintf(str,"%f",valueFloat);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Doesn't work&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read help of CodeWarrior about sprintf function and this note at the end of page could be the way to fix my problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;&lt;/P&gt;&lt;A target="_blank"&gt;&lt;/A&gt;&lt;P&gt;Floating point support increases the sprintf size considerably, and therefore the define LIBDEF_PRINTF_FLOATING exists. Set LIBDEF_PRINTF_FLOATING if no floating point support is used. Some targets contain special libraries without floating point support.&lt;BR /&gt;The IEEE64 floating point implementation only supports printing numbers with up to nine decimal digits. This limitation occurs because the implementation is using unsigned long internally, which cannot hold more digits. Supporting more digits increases the printf size still more and also causes the application to run considerably slower.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How I set LIBDEF_PRINTF_FLOATING in order to sprintf works?&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2008 13:56:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172626#M6506</guid>
      <dc:creator>erooll</dc:creator>
      <dc:date>2008-07-13T13:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf problem in MCF51QE128 and Codewarrior.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172627#M6507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Try if this helps&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=CW816COMM&amp;amp;message.id=3734&amp;amp;query.id=48098#M3734" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=CW816COMM&amp;amp;message.id=3734&amp;amp;query.id=48098#M3734&lt;/A&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jul 2008 22:02:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172627#M6507</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2008-07-13T22:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf problem in MCF51QE128 and Codewarrior.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172628#M6508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same problem, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the link is broken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 16:35:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172628#M6508</guid>
      <dc:creator>alfredogualdron</dc:creator>
      <dc:date>2014-01-15T16:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf problem in MCF51QE128 and Codewarrior.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172629#M6509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link is broken because the forum is now running different software to what it was in 2008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cut/paste "LIBDEF_PRINTF_FLOATING" into the Search Bar at upper right, read the 9 or so matches, and then update this thread with the best answer to your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 22:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172629#M6509</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2014-01-15T22:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf problem in MCF51QE128 and Codewarrior.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172630#M6510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a place in codewarrior where we can configure which variable types are allowed for printf&lt;/P&gt;&lt;P&gt;here is the pic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="sprintf_build_confg.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41283iD47EAFF4825426D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="sprintf_build_confg.PNG.png" alt="sprintf_build_confg.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;after select the int_FP in the print formats option, the printf function started to work fine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 16:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172630#M6510</guid>
      <dc:creator>alfredogualdron</dc:creator>
      <dc:date>2014-01-23T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf problem in MCF51QE128 and Codewarrior.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172631#M6511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alfredo´s solution works perfect !! thanks man.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 17:07:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172631#M6511</guid>
      <dc:creator>orlandozapata</dc:creator>
      <dc:date>2014-01-28T17:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf problem in MCF51QE128 and Codewarrior.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172632#M6512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you run your application without BDM with ewl_hosted option ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With my Kinetis KL run without multilink is not possible in "ewl_hosted", only possible with "ewl". But in "ewl" sprintf, printf, scanf don't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;(I do not understand the "ewl_hosted" mode interest &lt;SPAN lang="en"&gt;if you can not operate without programmer connexion. T&lt;SPAN lang="en"&gt;he fate of a microcontroller is to live without debug connexion, is not it ?&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 22:03:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172632#M6512</guid>
      <dc:creator>PO220</dc:creator>
      <dc:date>2015-09-10T22:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf problem in MCF51QE128 and Codewarrior.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172633#M6513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a Kinetis and/or Codewarrior question. You should be searching those forums for answers, and then posting in them if you don't find anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 00:30:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172633#M6513</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2015-09-11T00:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf problem in MCF51QE128 and Codewarrior.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172634#M6514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do that... searching and don't finding..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 07:55:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/sprintf-problem-in-MCF51QE128-and-Codewarrior/m-p/172634#M6514</guid>
      <dc:creator>PO220</dc:creator>
      <dc:date>2015-09-11T07:55:55Z</dc:date>
    </item>
  </channel>
</rss>

