<?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>CodeWarrior for MCUのトピックRe: Floating Point Library</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Floating-Point-Library/m-p/277215#M10307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the different library file names are described in C:\Freescale\CW MCU v10.3\MCU\lib\hc08c\readme.txt.&lt;/P&gt;&lt;P&gt;Remove the __NO_FLOAT__ from the compiler preprocessor setting in the project options.&lt;/P&gt;&lt;P&gt;And in the linker Input settings change the library to the other one you want as described in the readme.txt.&lt;/P&gt;&lt;P&gt;This should do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 05:25:55 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2013-02-28T05:25:55Z</dc:date>
    <item>
      <title>Floating Point Library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Floating-Point-Library/m-p/277214#M10306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, this should hopefully be a simple issue but I can't seem to find the answer.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started a project with CW10.3 for the HCS08 CPU (S08AW60) and when I started the project wizard I did not select the floating point library.&amp;nbsp; Now I find myself wanting to use floating point for 1 calculation but I can't find the setting to use the correct floating point lib.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the ADS1118 for thermocouple measurement and I need to calculate the internal temperature sensor value:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include &amp;lt;float.h&amp;gt;&lt;/P&gt;&lt;P&gt;float Temp_Sensor;&lt;/P&gt;&lt;P&gt;int Sensor_Reading;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Temp_Sensor&amp;nbsp; = (float)Sensor_Reading * 0.03125;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //calculate degrees&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I compile this I get the following errors:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3402_3402.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119128iCAC92A7075C0753A/image-size/large?v=v2&amp;amp;px=999" role="button" title="3402_3402.JPG" alt="3402_3402.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CW10_3 FP_Errors.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38835i84E67BD2B7929651/image-size/large?v=v2&amp;amp;px=999" role="button" title="CW10_3 FP_Errors.JPG" alt="CW10_3 FP_Errors.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am pretty certain the issue is the missing floating point library.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me where I go to include the floating point libraries in my project?&amp;nbsp; I looked all through the project settings and don't see a "use floating point libraries" check box.&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;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 22:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Floating-Point-Library/m-p/277214#M10306</guid>
      <dc:creator>v_dave</dc:creator>
      <dc:date>2013-02-27T22:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point Library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Floating-Point-Library/m-p/277215#M10307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the different library file names are described in C:\Freescale\CW MCU v10.3\MCU\lib\hc08c\readme.txt.&lt;/P&gt;&lt;P&gt;Remove the __NO_FLOAT__ from the compiler preprocessor setting in the project options.&lt;/P&gt;&lt;P&gt;And in the linker Input settings change the library to the other one you want as described in the readme.txt.&lt;/P&gt;&lt;P&gt;This should do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 05:25:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Floating-Point-Library/m-p/277215#M10307</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2013-02-28T05:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Floating Point Library</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Floating-Point-Library/m-p/277216#M10308</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;Thanks for the response.&amp;nbsp; I thought that was what I needed to do but I was not sure.&amp;nbsp; I searched the online help for __NO_FLOAT__ but did not find anything so I was not quite sure that would fix the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have removed it and now that part of my code seems to be compiling without any errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:27:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Floating-Point-Library/m-p/277216#M10308</guid>
      <dc:creator>v_dave</dc:creator>
      <dc:date>2013-02-28T17:27:33Z</dc:date>
    </item>
  </channel>
</rss>

