<?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>Kinetis Software Development Kit中的主题 Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383281#M1035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I haven't tried this with MQX yet so that might be the difference. Screenshot below for help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51660iF405A1C90A39BC17/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you find the answer please post here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 15:04:00 GMT</pubDate>
    <dc:creator>michaellyons</dc:creator>
    <dc:date>2015-03-19T15:04:00Z</dc:date>
    <item>
      <title>Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383274#M1028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using KDS 2.0, KDSK1.1.0, PEx, with the FRDM-K64F.&amp;nbsp; I'd like to print the Floating point accelerometer values to the terminal using fsl_debug_console.&amp;nbsp; Strings and integers print fine but it seems debug_printf() doesn't support float.&amp;nbsp; I also tried&lt;/P&gt;&lt;P&gt;sprintf(str,"%f");&lt;/P&gt;&lt;P&gt;printf("%s",str);&lt;/P&gt;&lt;P&gt;but everything except the floating point val would print.&amp;nbsp; Is there a compiler setting that must be changed to support floating point printing?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 21:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383274#M1028</guid>
      <dc:creator>michaellyons</dc:creator>
      <dc:date>2015-03-12T21:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383275#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To print floating point values, you need to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;enable float/double support to printf() function. In KDS,&amp;nbsp; please l&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ook under: &lt;STRONG&gt;Properties-&amp;gt;C/C++ Build-&amp;gt;Settings-&amp;gt;Tool Settings-&amp;gt;Cross ARM C Linker&lt;/STRONG&gt;, then add&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;STRONG&gt;-u _printf_float &lt;/STRONG&gt;to the linker options. It will be OK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, you can write code like this:&lt;/P&gt;&lt;P&gt;float temp=36.5;&lt;/P&gt;&lt;P&gt;printf("\r\n temp=%f \n\r",temp);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 02:43:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383275#M1029</guid>
      <dc:creator>likeli</dc:creator>
      <dc:date>2015-03-13T02:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383276#M1030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked!&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:05:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383276#M1030</guid>
      <dc:creator>michaellyons</dc:creator>
      <dc:date>2015-03-17T16:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383277#M1031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried adding &lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;-u _printf_float&lt;/STRONG&gt; to my linker settings for my application, but it didn't work:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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/51696iBD47C228F61A4453/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="" class="jiveImage" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me if I've missed something?&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 14:43:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383277#M1031</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-19T14:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383278#M1032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;I went to Properties-&amp;gt;C/C++ Build-&amp;gt;Settings-&amp;gt;Cross ARM C Compiler-&amp;gt;Miscellaneous then in the "Other compiler flags" box I added "-u_printf_float".&amp;nbsp; That seemed to work for me.&amp;nbsp; Are you using KDS, KSDK, and PEx with the FRDM-K64F?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 14:55:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383278#M1032</guid>
      <dc:creator>michaellyons</dc:creator>
      <dc:date>2015-03-19T14:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383279#M1033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks!&amp;nbsp; That's totally not what Ke had said.&amp;nbsp; :smileyhappy:&amp;nbsp; He specifically mentioned the linker, but hey it didn't work and you got it working, so I'll try your suggestion.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 14:57:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383279#M1033</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-19T14:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383280#M1034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is so odd.&amp;nbsp; Setting the compiler flags didn't work for me, either.&amp;nbsp; I'm using KDS 2.0, KSDK 1.1, and MQX.&amp;nbsp; I am not using processor expert.&amp;nbsp; This is with a K64F.&amp;nbsp; I just found a post by Erich Styger, so I'll check that out now.&amp;nbsp; Thank you for your prompt reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 15:00:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383280#M1034</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-19T15:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383281#M1035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I haven't tried this with MQX yet so that might be the difference. Screenshot below for help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51660iF405A1C90A39BC17/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you find the answer please post here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 15:04:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383281#M1035</guid>
      <dc:creator>michaellyons</dc:creator>
      <dc:date>2015-03-19T15:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383282#M1036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I'll definitely post my findings if anyone else presents a solution elsewhere.&amp;nbsp; Erich's post mentions linker settings as well, not compiler settings.&amp;nbsp; It also has a lot of detail that I'm not comfortable with, and since it mentioned PEx and not KSDK, I'm not sure it's the right direction for me.&amp;nbsp; I'll keep digging, and if I can't find the answer, I'll post up a new thread and link to it here.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 15:06:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383282#M1036</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-19T15:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383283#M1037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar problem, so maybe this solution helps: &lt;A href="https://community.nxp.com/thread/342693"&gt;printf() with float values&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matthias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 07:46:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383283#M1037</guid>
      <dc:creator>matthias</dc:creator>
      <dc:date>2015-03-20T07:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Floating point values to fsl_debug_console FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383284#M1038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthias, thank you *so* much for posting a link to your thread!&amp;nbsp; That was absolutely the problem, and now printf is able to display fp values.&amp;nbsp; Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 13:10:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Printing-Floating-point-values-to-fsl-debug-console-FRDM-K64F/m-p/383284#M1038</guid>
      <dc:creator>dave408</dc:creator>
      <dc:date>2015-03-20T13:10:28Z</dc:date>
    </item>
  </channel>
</rss>

