<?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: How to use simple floating point (Kinetis)? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-use-simple-floating-point-Kinetis/m-p/174215#M5569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have same error as yours and has it fixed today. the root cause is that c library is not passed. That’s why you get errors.&lt;/P&gt;&lt;P&gt;So to correct this,&lt;/P&gt;&lt;P&gt;1. Please enable automatic library configuration. To do this Go to Properties/C/C++ Build/Settings/Librarian and check Enable Automatic Library Configuration. Under print formats you can select int_FP if you are using printf to print float variables. Otherwise leave it as it is.&lt;/P&gt;&lt;P&gt;2. Go to Settings/ARM Compiler/input and add include search path. "${MCU_TOOLS_HOME}\ARM_EABI_Support\ewl\EWL_C\include"&lt;/P&gt;&lt;P&gt;3. Go to Settings/ARM Linker/input/Library Search Paths and add: "${MCU_TOOLS_HOME}\ARM_EABI_Support\ewl\lib"&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;============================&lt;/P&gt;&lt;P&gt;this answer is for you. if it helps, please click on "correct answer button". thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZhangJun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2014 09:54:41 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2014-04-02T09:54:41Z</dc:date>
    <item>
      <title>How to use simple floating point (Kinetis)?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-use-simple-floating-point-Kinetis/m-p/174213#M5567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry about this simple question but CW has beaten me here..&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use a very small amount of single-precision floating point in a Kinetis project (part without FPU) but can't work out which libraries are needed to be added. I understand that "FP_fixedI_Thumb_LE_v7m.a" means that it includes just single precision IEEE32 - which seems fine (I prefer not to use the fastI since I need to exchange files with the format saved in them and I think that this faster format is not fully IEEE conform).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that this library requires support from other libraries as soon as floats are used. One missing reference is "__FSL__fp_handler_32_to_32" (but there are three or four others).&lt;/P&gt;&lt;P&gt;After studying the "EWL for Kinetis Development" help sections and trying a bunch of libraries that I could find as well as searching for any indication of where these are coming from I have to admit defeat.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 16:48:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-use-simple-floating-point-Kinetis/m-p/174213#M5567</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2012-11-13T16:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use simple floating point (Kinetis)?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-use-simple-floating-point-Kinetis/m-p/174214#M5568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The project has been moved over to GCC for the moment since the CW library issue hasn't been able to be solved yet.&lt;/P&gt;&lt;P&gt;It would however be good to work out how the libraries need to be used so that it can be moved back again or at least for future projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas still welcomed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2012 01:15:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-use-simple-floating-point-Kinetis/m-p/174214#M5568</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2012-11-17T01:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use simple floating point (Kinetis)?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-use-simple-floating-point-Kinetis/m-p/174215#M5569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have same error as yours and has it fixed today. the root cause is that c library is not passed. That’s why you get errors.&lt;/P&gt;&lt;P&gt;So to correct this,&lt;/P&gt;&lt;P&gt;1. Please enable automatic library configuration. To do this Go to Properties/C/C++ Build/Settings/Librarian and check Enable Automatic Library Configuration. Under print formats you can select int_FP if you are using printf to print float variables. Otherwise leave it as it is.&lt;/P&gt;&lt;P&gt;2. Go to Settings/ARM Compiler/input and add include search path. "${MCU_TOOLS_HOME}\ARM_EABI_Support\ewl\EWL_C\include"&lt;/P&gt;&lt;P&gt;3. Go to Settings/ARM Linker/input/Library Search Paths and add: "${MCU_TOOLS_HOME}\ARM_EABI_Support\ewl\lib"&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;============================&lt;/P&gt;&lt;P&gt;this answer is for you. if it helps, please click on "correct answer button". thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZhangJun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 09:54:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-use-simple-floating-point-Kinetis/m-p/174215#M5569</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2014-04-02T09:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use simple floating point (Kinetis)?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-use-simple-floating-point-Kinetis/m-p/174216#M5570</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;Thanks. In the meantime all projects have been converted form using the Metroworks compiler in CW to the GCC compiler - the main reason actualyl being that the Metroworks compler doesn't support the m0+ core so this was needed anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also no issues with floating point with GCC since thsi all seems to be solved with "${MCUToolsBaseDir}/ARM_GCC_Support/ewl/lib/armv7e-m"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case I need to add floating point support to an old project I will try the paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 10:36:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-use-simple-floating-point-Kinetis/m-p/174216#M5570</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-04-02T10:36:40Z</dc:date>
    </item>
  </channel>
</rss>

