<?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 do I use math library and SPFP on MPC5674F. in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851086#M12499</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;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll check again soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Henk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2019 00:55:47 GMT</pubDate>
    <dc:creator>hyenongijeong</dc:creator>
    <dc:date>2019-02-18T00:55:47Z</dc:date>
    <item>
      <title>How do I use math library and SPFP on MPC5674F.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851082#M12495</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;I want to use Math function with SPFP.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex&amp;gt; cos, sin, pow ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are my test report using SPFP ans SW mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think math library doesn't use SPFP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use math function with SPFP(HW FPU)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="margin-left: .375in; direction: ltr; unicode-bidi: embed; margin-top: 0in; margin-bottom: 0in; font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;" type="1"&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle;"&gt;&lt;SPAN lang="en-US" style="font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;"&gt;SW &lt;/SPAN&gt;&lt;SPAN lang="x-none" style="font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;"&gt;FPU + (FLOAT * FLOAT =&amp;gt; 40000 times&lt;/SPAN&gt;&lt;SPAN lang="x-none" style="font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;"&gt;) =&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;"&gt;112 ms&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle;"&gt;&lt;SPAN lang="x-none" style="font-family: 'Malgun Gothic'; font-size: 11.0pt;"&gt;SW FPU + (cos(FLOAT) =&amp;gt; 2000&amp;nbsp;&lt;SPAN&gt;times&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="en-US" style="font-family: 'Malgun Gothic'; font-size: 11.0pt;"&gt;)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;"&gt;114 ms&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle;"&gt;&lt;SPAN lang="x-none" style="font-family: 'Malgun Gothic'; font-size: 11.0pt;"&gt;SPFP + (FLOAT * FLOAT =&amp;gt; 40000&amp;nbsp;&lt;SPAN&gt;times)&amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;"&gt;13 ms&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle;"&gt;&lt;SPAN lang="x-none" style="font-family: 'Malgun Gothic'; font-size: 11.0pt;"&gt;SPFP + (cos(FLOAT) =&amp;gt; 2000&amp;nbsp;&lt;SPAN&gt;times)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;"&gt;114 ms&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-top: 0; margin-bottom: 0; vertical-align: middle;"&gt;&lt;SPAN lang="x-none" style="font-family: 'Malgun Gothic'; font-size: 11.0pt;"&gt;SPFP only + (cos(FLOAT) =&amp;gt; 2000&amp;nbsp;&lt;SPAN&gt;times&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;=&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;"&gt;115 ms&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Malgun Gothic'; font-size: 11.0pt; font-weight: normal; font-style: normal;"&gt;&lt;A href="https://community.nxp.com/t5/tag/FPU/tg-p"&gt;#FPU&lt;/A&gt;&amp;nbsp;SPFP&amp;nbsp;&lt;A href="https://community.nxp.com/t5/tag/mpc5674f/tg-p"&gt;#mpc5674f&lt;/A&gt;‌ &lt;A href="https://community.nxp.com/t5/tag/math/tg-p"&gt;#math&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 09:52:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851082#M12495</guid>
      <dc:creator>hyenongijeong</dc:creator>
      <dc:date>2019-01-03T09:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use math library and SPFP on MPC5674F.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851083#M12496</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;I am not sure, which IDE you use, if CodeWarrior or S32 Design Studio and which library you use (EWL or Newlib), but I checked EWL in S32 Design Studio and this library is not compiled to use hardware floating point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use math function with SPFP supported, you must recompile the library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In S32 Design Studio installation folder and also in CodeWarrior installation folder, there are complete source file for EWL including also makefiles. So, you only need to set compiler options for Hardware floating point (for GCC it is -mhard) and recompile with this option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 13:29:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851083#M12496</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2019-01-10T13:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use math library and SPFP on MPC5674F.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851084#M12497</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;Thank you for your useful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I couldn't compile that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under picture is our makefile and error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could&amp;nbsp;you build and give it to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a C library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is our environments.&lt;/P&gt;&lt;P&gt;- CPU : MPC5674F (e200z3 core)&lt;/P&gt;&lt;P&gt;- FPU : SPFP&lt;/P&gt;&lt;P&gt;- IDE : CW10.7 - eclipse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="makefile.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76673iC0CBA5D3F2A89916/image-size/large?v=v2&amp;amp;px=999" role="button" title="makefile.JPG" alt="makefile.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error-log.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76711i079261A4FB1CC21B/image-size/large?v=v2&amp;amp;px=999" role="button" title="error-log.JPG" alt="error-log.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Henk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 01:35:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851084#M12497</guid>
      <dc:creator>hyenongijeong</dc:creator>
      <dc:date>2019-01-11T01:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use math library and SPFP on MPC5674F.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851085#M12498</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;I am sorry for my previous answer. It is not necessary to recompile the library, because this had been already done and library which supports SPFP mathematical function is already included in CodeWarrior IDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your project, open project properties and set libraries the same way as in the figure below:&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/61256i32E67A9FA310652B/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;&lt;/P&gt;&lt;P&gt;Also, you must switch the project Floating point to SPFP_only.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61406i8D9EDF85A0E7BFEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clean your project and recompile again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now functions from math.h supports hardware floating point instructions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 10:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851085#M12498</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2019-01-16T10:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use math library and SPFP on MPC5674F.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851086#M12499</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;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll check again soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Henk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2019 00:55:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-use-math-library-and-SPFP-on-MPC5674F/m-p/851086#M12499</guid>
      <dc:creator>hyenongijeong</dc:creator>
      <dc:date>2019-02-18T00:55:47Z</dc:date>
    </item>
  </channel>
</rss>

