<?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>MPC5xxxのトピックRe: Build Error when using Automotive Math and Motor Control Library set for MPC5748G</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Build-Error-when-using-Automotive-Math-and-Motor-Control-Library/m-p/1094279#M16465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;regarding error I see only way that you have incorrectly added Library search path - in your screenshot is missing the end of path, so it is not clear if you added correct path including the selected core (e200z2 vs e200z4).&lt;/P&gt;&lt;P&gt;If you have separated project for each core you have to set the library path for each core for those projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EWL vs bewlib - this is usually selected in project wizard which will ensure all necessary settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2020 06:14:03 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2020-07-16T06:14:03Z</dc:date>
    <item>
      <title>Build Error when using Automotive Math and Motor Control Library set for MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Build-Error-when-using-Automotive-Math-and-Motor-Control-Library/m-p/1094276#M16462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I installed the "Automotive Math and Motor Control Library set for MPC5748G" following by its user guide.&lt;/P&gt;&lt;P&gt;But I got many error messages while I'm only using the function of "Acos", does anyone know the reason? I'm posting my code and error messages as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code: (omit the unnecessary code)&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include "derivative.h" /* Include peripheral declarations */&lt;BR /&gt;#include "project.h" /* Define Macros */&lt;BR /&gt;#include "mode.h" /* Change clock modes */&lt;BR /&gt;#include "adc.h" /* Configure ADC */&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;#include "GFLIB_Acos.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;#define GFLIB_ACOS_DEFAULT_F16 &amp;amp;f16gflibAcosCoef&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;extern uint16_t Result;&lt;/P&gt;&lt;P&gt;tFloat f16Input;&lt;BR /&gt;tFloat f16Angle;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (ADC_1.ISR.B.ECH)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ADC1_Read_Chan(); /* Read conversion Results from ADC*/&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;f16Input = FRAC16(Result);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;f16Angle = GFLIB_Acos_F16(f16Input, GFLIB_ACOS_DEFAULT_F16);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/115668iA600F0E90E41D8DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_14.png" alt="pastedImage_14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_20.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/115669i92BB0CA7F08DE143/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_20.png" alt="pastedImage_20.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And there are many similar prefix "SWLIB_xxx", "MLIB_xxx", "GFLIB_xxx" with the following error "error: operator '==' has no left operand" shown in the console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the example on the user guide is very simple, but it causes the same errors as above.&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_15.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/115670i88E11EBAF061CC1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_15.png" alt="pastedImage_15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 19:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Build-Error-when-using-Automotive-Math-and-Motor-Control-Library/m-p/1094276#M16462</guid>
      <dc:creator>jzhang1</dc:creator>
      <dc:date>2020-07-13T19:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error when using Automotive Math and Motor Control Library set for MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Build-Error-when-using-Automotive-Math-and-Motor-Control-Library/m-p/1094277#M16463</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;OL&gt;&lt;LI style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; It is necessary to set the macro SWLIBS_DEFAULT_IMPLEMENTATION in the file SWLIBS_Config.h (see AMMCLIB User's Guide for help).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;The AMMCLIB integrated in the S32DS is obsolete. Download the current version from &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;A href="https://eur01.safelinks.protection.outlook.com/?url=http://www.nxp.com/AutoMCLib&amp;amp;data=02%7c01%7cpetr.zelinka%40nxp.com%7cf0c450695cd0408f1f3808d81e798ede%7c686ea1d3bc2b4c6fa92cd99c5c301635%7c0%7c0%7c637292854722404376&amp;amp;sdata=FAXoIppl/BSHAdfSw5e6R%2BaZG5A5B0HQz2K6hge9mMc%3D&amp;amp;reserved=0"&gt;&lt;SPAN style="color: blue;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://community.nxp.com/www.nxp.com/AutoMCLib" target="test_blank"&gt;www.nxp.com/AutoMCLib&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;.&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Even though the S32DS project wizard allows users to use the EWL library together with AMMCLIB, this combination is actually not supported. Use newlib instead.&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;regards,&lt;BR /&gt;Peter&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 07:57:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Build-Error-when-using-Automotive-Math-and-Motor-Control-Library/m-p/1094277#M16463</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2020-07-14T07:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error when using Automotive Math and Motor Control Library set for MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Build-Error-when-using-Automotive-Math-and-Motor-Control-Library/m-p/1094278#M16464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have downloaded the latest version and installed it by the user's guide. And now it only shows 1 error message when build.&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/115818iD039FEC79F8B4D00/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;which is very strange, because I already add "mpc574xG_AMMCLIB.a" in the library. Please see the screenshot below.&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/115819iBE920781993DDBFD/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;For the 3) you mentioned, do you mean I have to delete the EWL library while I'm using the Ammclib? Or just EWL and AMMClib cannot use it together?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/115820i6C762AF120676962/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original code has modified to define the "SWLIBS_DEFAULT_IMPLEMENTATION".&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include "gflib.h"&lt;BR /&gt;#include "SWLIBS_Config.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define SWLIBS_DEFAULT_IMPLEMENTATION SWLIBS_DEFAULT_IMPLEMENTATION_F16&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Junyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 19:44:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Build-Error-when-using-Automotive-Math-and-Motor-Control-Library/m-p/1094278#M16464</guid>
      <dc:creator>jzhang1</dc:creator>
      <dc:date>2020-07-14T19:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Build Error when using Automotive Math and Motor Control Library set for MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Build-Error-when-using-Automotive-Math-and-Motor-Control-Library/m-p/1094279#M16465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;regarding error I see only way that you have incorrectly added Library search path - in your screenshot is missing the end of path, so it is not clear if you added correct path including the selected core (e200z2 vs e200z4).&lt;/P&gt;&lt;P&gt;If you have separated project for each core you have to set the library path for each core for those projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EWL vs bewlib - this is usually selected in project wizard which will ensure all necessary settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 06:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Build-Error-when-using-Automotive-Math-and-Motor-Control-Library/m-p/1094279#M16465</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2020-07-16T06:14:03Z</dc:date>
    </item>
  </channel>
</rss>

