<?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: Use older version of GCC as a compiler in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Use-older-version-of-GCC-as-a-compiler/m-p/1366842#M6652</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/116524"&gt;@p_a_u_darshana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can use the GCC 4.9 version with our toolbox. I cannot provide a list with limitations because it has been only tested with the GCC 6.2, the one delivered with our toolbox.&lt;/P&gt;
&lt;P&gt;If you need to customize the compiler flags, you can go to our Config Block and under Build Toolchain you can update the GCC flags.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1636042066149.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161309i0D7BF62E56DC35CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariuslucianand_0-1636042066149.png" alt="mariuslucianand_0-1636042066149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To switch the compiler, you are right, you have to set an environmental variable "&lt;SPAN&gt;GCC_S32K_TOOL&lt;/SPAN&gt;" with the value you have mentioned. If you add this variable in Windows' path, don't forget to restart MATLAB to make it aware of this change.&amp;nbsp;To check the new compiler, you can type the following command in MATLAB's Command window:&amp;nbsp;&lt;EM&gt;getenv('GCC_S32K_TOOL')&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;BR /&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, 04 Nov 2021 16:13:17 GMT</pubDate>
    <dc:creator>mariuslucianand</dc:creator>
    <dc:date>2021-11-04T16:13:17Z</dc:date>
    <item>
      <title>Use older version of GCC as a compiler</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Use-older-version-of-GCC-as-a-compiler/m-p/1366470#M6647</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are using the S32K MBD toolbox for our project, and we want to perform a Misra rule check for the generated C code.&lt;/P&gt;&lt;P&gt;But our Misra rule checking tool does not support the codes compiled by higher version GCC compilers such as GCC 6.x.&lt;/P&gt;&lt;P&gt;1. Is it okay to use GCC 4.9 instead of GCC 6.3?&lt;/P&gt;&lt;P&gt;2. What kind of negative impact can it provide if we use the GCC 4.9?&lt;/P&gt;&lt;P&gt;3. If I want to use GCC 4.9, is it correct to set the System variable as below?&lt;/P&gt;&lt;P&gt;GCC_S32K_TOOL = C:\NXP\S32DS_ARM_v2.2\S32DS\build_tools\gcc_v4.9\gcc-arm-none-eabi-4_9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 07:18:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Use-older-version-of-GCC-as-a-compiler/m-p/1366470#M6647</guid>
      <dc:creator>p_a_u_darshana</dc:creator>
      <dc:date>2021-11-04T07:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use older version of GCC as a compiler</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Use-older-version-of-GCC-as-a-compiler/m-p/1366842#M6652</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/116524"&gt;@p_a_u_darshana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you can use the GCC 4.9 version with our toolbox. I cannot provide a list with limitations because it has been only tested with the GCC 6.2, the one delivered with our toolbox.&lt;/P&gt;
&lt;P&gt;If you need to customize the compiler flags, you can go to our Config Block and under Build Toolchain you can update the GCC flags.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1636042066149.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161309i0D7BF62E56DC35CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariuslucianand_0-1636042066149.png" alt="mariuslucianand_0-1636042066149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To switch the compiler, you are right, you have to set an environmental variable "&lt;SPAN&gt;GCC_S32K_TOOL&lt;/SPAN&gt;" with the value you have mentioned. If you add this variable in Windows' path, don't forget to restart MATLAB to make it aware of this change.&amp;nbsp;To check the new compiler, you can type the following command in MATLAB's Command window:&amp;nbsp;&lt;EM&gt;getenv('GCC_S32K_TOOL')&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;BR /&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, 04 Nov 2021 16:13:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Use-older-version-of-GCC-as-a-compiler/m-p/1366842#M6652</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2021-11-04T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use older version of GCC as a compiler</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Use-older-version-of-GCC-as-a-compiler/m-p/1380202#M6767</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Marius,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;P&gt;I have&amp;nbsp;&lt;SPAN&gt;switched the compiler by&amp;nbsp;adding an environmental variable and was able to build the project with the older version of GCC. So this works for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I have an additional question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can we&amp;nbsp;customize the compiler flags in MCU block settings? Can we even switch the GCC version from here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 03:10:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Use-older-version-of-GCC-as-a-compiler/m-p/1380202#M6767</guid>
      <dc:creator>p_a_u_darshana</dc:creator>
      <dc:date>2021-12-02T03:10:43Z</dc:date>
    </item>
  </channel>
</rss>

