<?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>Classic/Legacy CodeWarrior中的主题 Re: Possible issue with Floating Point Units</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155050#M2335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What MCU are you using? One of Coldfire V1? As fas as I know no current CF V1 MCU has hardware floating point unit, so you should choose software. Floating point setting in CW6.3 is available in Standard Settings-&amp;gt;Code Generation-&amp;gt;ColdFire Processor. But it is set and blocked to Software only for all current CF V1 derivatives.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Jul 2011 15:30:27 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2011-07-31T15:30:27Z</dc:date>
    <item>
      <title>Possible issue with Floating Point Units</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155047#M2332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm transitioning a project form CW6.3 to CW10.1 Eclipse IDE. All seems to run well except for this line of code. It displays: "%4.1fV" instead of the appropriate value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;displayLen = (unsigned char)sprintf(newString,"%4.1fV", (float)battV/1000);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have other sprintf commands in this same function that work fine. So, I believe this has something to do with the float values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried changing the Processor settings for Floating Points from Software to Hardware, but the code stopped building and didn't give me any errors. What other settings should I check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 23:16:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155047#M2332</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2011-07-29T23:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Possible issue with Floating Point Units</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155048#M2333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must be something wrong with library. Maybe&amp;nbsp;CW10.1 libraries were compiled with LIBDEF_PRINTF_FLOATING not defined. If it's the case, then you may need to rebuild libs with LIBDEF_PRINTF_FLOATING defined. Or, you may just add required source file to your project. 1) try adding "\lib\hc08c\src\PRINTF.C" to your project, 2) change link order so that printf.c you added&amp;nbsp;is linked first and not the printf.c from libraries,&amp;nbsp;3) define LIBDEF_PRINTF_FLOATING in compilers options. 4) make. I can't provide more detailed steps for CW10, I'm not familiar with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 23:46:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155048#M2333</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-07-29T23:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Possible issue with Floating Point Units</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155049#M2334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kef, how come I don't see this Floating Point setting the 6.3 IDE. Do you know if it's set to Hardware or Software?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jul 2011 01:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155049#M2334</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2011-07-30T01:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Possible issue with Floating Point Units</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155050#M2335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What MCU are you using? One of Coldfire V1? As fas as I know no current CF V1 MCU has hardware floating point unit, so you should choose software. Floating point setting in CW6.3 is available in Standard Settings-&amp;gt;Code Generation-&amp;gt;ColdFire Processor. But it is set and blocked to Software only for all current CF V1 derivatives.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2011 15:30:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155050#M2335</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-07-31T15:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Possible issue with Floating Point Units</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155051#M2336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kef, your suggestion of adding printf.c to my project fixed the issue. However, I don't understand what this is needed. Can you please elaborate?&lt;BR /&gt;&lt;BR /&gt;Also, I had to bring in stdio.h due to a&amp;nbsp; undefined function prototype and I now have 6 warnings in printf.c are are all illegal pragmas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#pragma MESSAGE DISABLE C5919 /* WARNING C5919: Conversion of floating to unsigned integral */#pragma MESSAGE DISABLE C4001 /* INFORMATION C4001: Condition always is FALSE */#pragma MESSAGE DISABLE C5703 /* INFORMATION C5703: This: parameter declared in function outc_callback but not referenced */#pragma MESSAGE DISABLE C2402 /* Variable pow10  allocated in ROM */#pragma MESSAGE DISABLE C2706#pragma warning "assume double is IEEE64"&lt;/PRE&gt;&lt;P&gt;BTW: I'm using mcf51cn128 MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:58:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155051#M2336</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2020-10-29T08:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Possible issue with Floating Point Units</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155052#M2337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that CW10.1 comes with CF libraries configured for and compiled with %f printf format disabled to save some kB of flash. You may either recompile library with enabled %f format, or just add printf source file and enable %f. I don't know how&amp;nbsp;CF library should be configured for full printf. My previous suggestion was regarding S08 library. You probably added S08 printf, so now you get warnings about unkwnown for CF conpiler #pragmas from S08 compiler. If it all is working, then maybe just ignore those warnings or comment out bad pragmas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 01:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155052#M2337</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-08-02T01:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Possible issue with Floating Point Units</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155053#M2338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like commenting them out is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not 100% thrilled with this solution as it's not as clean as I'd like. When I port this project months from now I'll have to try and remember I have printf.c in my source files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any other recommendations, I'm all ears.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 01:57:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Possible-issue-with-Floating-Point-Units/m-p/155053#M2338</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2011-08-02T01:57:07Z</dc:date>
    </item>
  </channel>
</rss>

