<?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: Floating Point on KDS in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327608#M511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have add -u _printf_float to the linker options to enable float/double support to printf/sprintf(), but still can not work with float, any other configuarion needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31731i8FFE54290EA2FA5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 05:58:50 GMT</pubDate>
    <dc:creator>matherinewang</dc:creator>
    <dc:date>2015-11-23T05:58:50Z</dc:date>
    <item>
      <title>Floating Point on KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327605#M508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;I'm using the sprintf function but it doesn't work with float and double type.&lt;/P&gt;&lt;P&gt;It works properly only with integer.&lt;/P&gt;&lt;P&gt;I found a lot of information on this problem, but referred to the codewarrior ide.&lt;/P&gt;&lt;P&gt;How it's possible to solve this in the kinetis dev system ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Claudio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 09:40:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327605#M508</guid>
      <dc:creator>ciful</dc:creator>
      <dc:date>2015-01-08T09:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point on KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327606#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Claudio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at the following post created by our colleague Erich Styger, it explains how to use printf() and scanf() with floating point:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/07/11/printf-and-scanf-with-gnu-arm-libraries/" title="http://mcuoneclipse.com/2014/07/11/printf-and-scanf-with-gnu-arm-libraries/"&gt;printf() and scanf() with GNU ARM Libraries | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 17:48:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327606#M509</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2015-01-08T17:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point on KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327607#M510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Claudio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever get this to work? I cannot get the approach described in the Erich Styger article referenced above to work because his comments are referencing newlib-nano, not newlib. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Larry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 23:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327607#M510</guid>
      <dc:creator>larrykoos</dc:creator>
      <dc:date>2015-01-27T23:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point on KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327608#M511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have add -u _printf_float to the linker options to enable float/double support to printf/sprintf(), but still can not work with float, any other configuarion needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31731i8FFE54290EA2FA5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 05:58:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327608#M511</guid>
      <dc:creator>matherinewang</dc:creator>
      <dc:date>2015-11-23T05:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point on KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327609#M512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Semihosting (and printf()) depends on the library used.&lt;/P&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2015/04/23/semihosting-with-gnu-arm-embedded-launchpad-and-kinetis-design-studio/" title="http://mcuoneclipse.com/2015/04/23/semihosting-with-gnu-arm-embedded-launchpad-and-kinetis-design-studio/"&gt;Semihosting with GNU ARM Embedded (Launchpad) and Kinetis Design Studio | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not forget to use the -specs=rdimon.specs linker option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 07:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327609#M512</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-11-23T07:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point on KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327610#M513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did same as matherin,&lt;/P&gt;&lt;P&gt;but not getting float printing, I getting error like this,&lt;/P&gt;&lt;P&gt;plz anyone clarify this doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitleddhgh.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53062iF4B5071D66479A7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitleddhgh.png" alt="Untitleddhgh.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 11:13:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327610#M513</guid>
      <dc:creator>syedidris</dc:creator>
      <dc:date>2015-12-03T11:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point on KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327611#M514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;What processor are you using?&amp;nbsp; Looking at the errors it seems like KL03.&lt;/P&gt;&lt;P&gt;The above post were asking for printf/scanf with floating point support.&amp;nbsp; Is that what you want too?&lt;/P&gt;&lt;P&gt;If yes attached is an example project for the FRDM-KL03Z.&lt;/P&gt;&lt;P&gt;Note that KL03 on the Freedom board is limited to 32KByte flash and very limited to 2KByte of SRAM. &lt;/P&gt;&lt;P&gt;Because of that I had to increase the compiler optimization to get the linker to work.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 18:31:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327611#M514</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-12-04T18:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point on KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327612#M515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David sir,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am a beginner, and yes you are right, I am using KL03 processor.&lt;/P&gt;&lt;P&gt;And I don't know about processor expert. I am trying to learn with demo codes provided with KDS3.0.0 IDE. when I am trying to print the float value like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;float a=2.4;&lt;/P&gt;&lt;P&gt;PRINTF("%f",a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting output as ' f ' only, so I searched on forum and enabled the option -u_printf_float with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Properties -&amp;gt; C/C++ build -&amp;gt; Settings -&amp;gt; Cross ARM C Linker -&amp;gt; Miscellaneous -&amp;gt; Use float with nano printf&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;But, no change in the behavior of printf.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;I will be thankful to you if you solve my problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Dec 2015 10:58:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327612#M515</guid>
      <dc:creator>syedidris</dc:creator>
      <dc:date>2015-12-05T10:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point on KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327613#M516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;Please open your Properties of your project and add the following SCANF_FLOAT_ENABLE and PRINTF_FLOAT_ENABLE....recompile and run again.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ScreenHunter_216 Dec. 14 15.49.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/5078iB1C1D6630C2B4537/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScreenHunter_216 Dec. 14 15.49.gif" alt="ScreenHunter_216 Dec. 14 15.49.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 21:56:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Floating-Point-on-KDS/m-p/327613#M516</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-12-14T21:56:18Z</dc:date>
    </item>
  </channel>
</rss>

