<?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>S12 / MagniV MicrocontrollersのトピックRe: Float Cast Causing Link Error</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Float-Cast-Causing-Link-Error/m-p/415226#M11205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zhang Jun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be good if this setting could be changed after you have created the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2015 21:25:20 GMT</pubDate>
    <dc:creator>rayhall</dc:creator>
    <dc:date>2015-06-19T21:25:20Z</dc:date>
    <item>
      <title>Float Cast Causing Link Error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Float-Cast-Causing-Link-Error/m-p/415224#M11203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use a float to cast a value I get this link error that I do not know how to solve.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Link Error : L1822&amp;nbsp; Symbol _FUFLOAT in file ...... is undefined"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example of the code that causes the error.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint16_t adc1, egt1;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;egt1 = (int16_t)((float)adc1 / 204.8);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 09:20:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Float-Cast-Causing-Link-Error/m-p/415224#M11203</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2015-06-19T09:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Float Cast Causing Link Error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Float-Cast-Causing-Link-Error/m-p/415225#M11204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your project using float operation but&amp;nbsp; doesn't have floating library support.&lt;/P&gt;&lt;P&gt;when creating a new project, choose floating lib as i highlight below. this can solve the problem.&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/37520iA379EEBE0FAB8367/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;can this help?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 11:15:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Float-Cast-Causing-Link-Error/m-p/415225#M11204</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-06-19T11:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Float Cast Causing Link Error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Float-Cast-Causing-Link-Error/m-p/415226#M11205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Zhang Jun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be good if this setting could be changed after you have created the project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 21:25:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Float-Cast-Causing-Link-Error/m-p/415226#M11205</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2015-06-19T21:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Float Cast Causing Link Error</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Float-Cast-Causing-Link-Error/m-p/415227#M11206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can remove the integral lib and add floating support lib into project.&lt;/P&gt;&lt;P&gt;In your CW project management window, “lib” folder, you could see one file called “ansibi.lib” (bank model for instance), please remove this lib from your project and import a new lib “ansib.lib” or “ansibf.lib” to substitute it.&lt;/P&gt;&lt;P&gt;The method to import is: right click project management window, click “Add files…”, then in the opened select files window, go to {CW install folder}\lib\hc12c\lib to import right lib file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let take small model lib as example:&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; ansibi.lib --- Integral only bank&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; ansib.lib --- IEEE32/32 bank &lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp; ansibf.lib&amp;nbsp; --- IEEE32/64 bank (compiler option: -Cf)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you select IEEE32/64 support, you need add –Cf to compiler setting to let compiler know double is 64bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;. if you have -D__NO_FLOAT__&amp;nbsp; in your compiler setting, please remove it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go to the CW menu “help”, in “search”tab, input “ansibf.lib” and search, you could all the information of the lib file. I also attach the txt tells about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this post is helpful to you, please click "Helpful" as "Yes". thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 08:53:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Float-Cast-Causing-Link-Error/m-p/415227#M11206</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-06-21T08:53:48Z</dc:date>
    </item>
  </channel>
</rss>

