<?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 Microcontrollers中的主题 Re: TWR-K21F120M float Data types</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333257#M15751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear sir,&lt;/P&gt;&lt;P&gt;I can not find the preprocessor options&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2015 01:21:16 GMT</pubDate>
    <dc:creator>黃佑煊</dc:creator>
    <dc:date>2015-04-01T01:21:16Z</dc:date>
    <item>
      <title>TWR-K21F120M float Data types</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333253#M15747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Dear sir, I have a TWR-K21F120M&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But, when I want to use floating-point operations, there will be an error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="temp.bmp"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51715i82AF59F4F3A10D5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="temp.bmp" alt="temp.bmp" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thank you very much ~~&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 02:14:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333253#M15747</guid>
      <dc:creator>黃佑煊</dc:creator>
      <dc:date>2015-03-20T02:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21F120M float Data types</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333254#M15748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;佑煊 黃&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="replyToName"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Please, check settings in KDS.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;these documents could help you solve your problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;A href="https://community.nxp.com/thread/346841"&gt;Printing Floating point values to fsl_debug_console FRDM-K64F&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;and &lt;A href="https://community.nxp.com/thread/342693"&gt;printf() with float values&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;I hope it helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Iva&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 13:27:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333254#M15748</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-03-20T13:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21F120M float Data types</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333255#M15749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Dear sir,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sorry! I do not understand how to set this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="code.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49937i56B1D9DFF1ADD4FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.png" alt="code.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thank you very much ~~&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 10:00:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333255#M15749</guid>
      <dc:creator>黃佑煊</dc:creator>
      <dc:date>2015-03-30T10:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21F120M float Data types</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333256#M15750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;佑煊 黃&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="replyToName"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never mind. Please, try do it by this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change std_prv.h to following:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#ifndef STD_FP_IO&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;//DES added #ifndef&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#define STD_FP_IO 0&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and change the value in Preprocessor &lt;STRONG&gt;STD_FP_IO = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="fpu.gif"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51061i15C0C0BA98539848/image-size/large?v=v2&amp;amp;px=999" role="button" title="fpu.gif" alt="fpu.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:48:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333256#M15750</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-03-31T11:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21F120M float Data types</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333257#M15751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear sir,&lt;/P&gt;&lt;P&gt;I can not find the preprocessor options&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 01:21:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333257#M15751</guid>
      <dc:creator>黃佑煊</dc:creator>
      <dc:date>2015-04-01T01:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K21F120M float Data types</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333258#M15752</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;Do you use CW10.6 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you screenshot , where show the float error ?&lt;/P&gt;&lt;P&gt;And about the float configuration on CodeWarrior, you can select on here :&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/47979iC344B73103858A40/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;P&gt;&lt;/P&gt;&lt;P&gt;And i have test on my side (mk21fn1m0 - CW10.6), when define like your code (float tt; tt = 2.0f),&amp;nbsp; it can work well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So could you show detail the float error .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'inherit','serif'; color: #3d3d3d;"&gt;If this post answers your question, please click the Correct Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;If this post help your question, please click the helpful Answer button. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 02:59:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K21F120M-float-Data-types/m-p/333258#M15752</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-04-01T02:59:43Z</dc:date>
    </item>
  </channel>
</rss>

