<?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: S32 compile problem with DIAB for MPC5746B in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32-compile-problem-with-DIAB-for-MPC5746B/m-p/1375682#M7995</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/23056"&gt;@stanish&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;It's Very strange to me. I am waiting for your response.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ehsan&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 13:36:53 GMT</pubDate>
    <dc:creator>Ehsaaan</dc:creator>
    <dc:date>2021-11-23T13:36:53Z</dc:date>
    <item>
      <title>S32 compile problem with DIAB for MPC5746B</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-compile-problem-with-DIAB-for-MPC5746B/m-p/1375147#M7992</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Dear Sir/Madam&lt;BR /&gt;&lt;BR /&gt;I imported MPC574xB-C-G sample application already downloaded from "NXP.com/Autosar",&amp;nbsp; into S32 design studio for PowerPC. I did set the TOOLCHAIN parameter equal to "diab" in the makefile, and launch.bat in build command. Then I clean and build the project. It did generate the elf file successfully without errors. But then I did an integer to float array casting like this:&lt;BR /&gt;usnigned short array_i[2] = {0};&lt;BR /&gt;float array_f[2] = {0};&lt;/P&gt;&lt;P&gt;.........&amp;nbsp; &amp;nbsp; &amp;nbsp; array_f[0] = (float) array_i[2];&lt;/P&gt;&lt;P&gt;Seems its okay in C language syntax and rules, but it generates warning and errors here. for more information I attached some files from errors.&amp;nbsp;&lt;BR /&gt;By the way i did this in online C compilers and it didn't produce any errors. I guess the problem goes back to diab compiler. And its good to know that I use Diab Compiler Version 5.9.6.2 Evaluation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ehsan&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 17:01:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-compile-problem-with-DIAB-for-MPC5746B/m-p/1375147#M7992</guid>
      <dc:creator>Ehsaaan</dc:creator>
      <dc:date>2021-11-22T17:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: S32 compile problem with DIAB for MPC5746B</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-compile-problem-with-DIAB-for-MPC5746B/m-p/1375621#M7994</link>
      <description>&lt;P&gt;Hi Ehsan,&lt;/P&gt;
&lt;P&gt;This error is rather related to the linker not the compiler. I suspect there is a standard C library missing to be linker with your project. The standard C fucntion such as casting uint to float ("utof") cannot be found.&lt;/P&gt;
&lt;P&gt;I'd check if a standard library is available in diab toolchain and try to include it into the project.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 12:30:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-compile-problem-with-DIAB-for-MPC5746B/m-p/1375621#M7994</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2021-11-23T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32 compile problem with DIAB for MPC5746B</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-compile-problem-with-DIAB-for-MPC5746B/m-p/1375682#M7995</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/23056"&gt;@stanish&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hello&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;It's Very strange to me. I am waiting for your response.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ehsan&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 13:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-compile-problem-with-DIAB-for-MPC5746B/m-p/1375682#M7995</guid>
      <dc:creator>Ehsaaan</dc:creator>
      <dc:date>2021-11-23T13:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32 compile problem with DIAB for MPC5746B</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-compile-problem-with-DIAB-for-MPC5746B/m-p/1377027#M8007</link>
      <description>&lt;P&gt;Hi Ehsan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Beside the linker issue -&amp;nbsp; your array of unsigned short can hold two short values (array is size of two). With index 2 (&lt;SPAN&gt;&amp;nbsp;array_i[2]; ) you are outside of&lt;/SPAN&gt;&amp;nbsp;allocated memory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jiri&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 11:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-compile-problem-with-DIAB-for-MPC5746B/m-p/1377027#M8007</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2021-11-25T11:40:59Z</dc:date>
    </item>
  </channel>
</rss>

