<?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: Setup PIL simulation using MBD for Kinetis V series in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675202#M548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;we have been trying to use/evaluate MBD toolbox with Tower kits:&lt;/P&gt;&lt;P&gt;TWR-KV10Z32 and&amp;nbsp;TWR-KV31F120M&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently we don't have any particular Kinetis parts selected (for motor control and power electronics projects). We will take what is&amp;nbsp;available and supported.&lt;/P&gt;&lt;P&gt;In a few non-power electronics projects we are currently using K60F120M - but those are PLC-like industrial controllers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 07:20:54 GMT</pubDate>
    <dc:creator>Maciek</dc:creator>
    <dc:date>2017-05-24T07:20:54Z</dc:date>
    <item>
      <title>Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675196#M542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the extremely quickly reply Daniel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My interest is in the KV31F series for BLDC/PMSM motor control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed the Motor Control Toolbox for the K V series. I was just wondering if NXP plans to update it to &amp;nbsp;v2, i.e. the Model Based Design Toolbox, which seems to be the most up to date toolbox. The reason I ask is because I'm not being able to setup&amp;nbsp;PIL simulation using that toolbox, nor use the FreeMaster tool, while building any of the provided examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the GCC toolchain and the default linker script was not set properly, which I had to manually edit in the template makefile in order to get it to link properly. Once that was done, if I enabled either PIL or FreeMaster, which uses the UART peripheral to communicate, Matlab was not able to generate the code from the provided examples as it fails to build. I'll attach a screenshot of the errors reported below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20334i003497B04954418D/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you provide some help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Diogo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 10:56:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675196#M542</guid>
      <dc:creator>diogocacador</dc:creator>
      <dc:date>2017-05-10T10:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675197#M543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diogo,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment we would like to address the existing issues and if needed, depending on the feedback we got from community we'll consider such upgrade.&lt;/P&gt;&lt;P&gt;In this case, i branched your topic into a new thread since this one seems as a configuration issue.&lt;/P&gt;&lt;P&gt;We'll have a look into this problem you are reporting and will search for a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stay tuned and thanks for your understanding.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:16:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675197#M543</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-10T11:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675198#M544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diogo,&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far i tested the PIL with IAR compiler &amp;nbsp;and it works fine.&lt;/P&gt;&lt;P&gt;The problem is the GCC toolchain. This is not supported in the toolbox even if the Release notes says it should. I need further investigations on that topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By any chance - can you switch to IAR? It is for free but limited to 32k code size:&amp;nbsp;&lt;A class="link-titled" href="https://www.iar.com/iar-embedded-workbench/#!?currentTab=free-trials" title="https://www.iar.com/iar-embedded-workbench/#!?currentTab=free-trials"&gt;IAR Embedded Workbench&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the mean time we are working to research an workaround/hotfix to allow you to continue the work with GCC. I logged the AST-605 in our internal database to track the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 15:18:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675198#M544</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-10T15:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675199#M545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we are also very interested in GCC support for Kinetis. When we have tested MBD toolbox few months ago - we stopped at failed attempts with hand-made modifications. The response from NXP team was (as I remember) that GCC is not supported. Only IAR compiler. We gave up. We have invested in NXP tools and don't want to switch to another toolchain...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 18:18:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675199#M545</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2017-05-10T18:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675200#M546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diogo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send me the linker script you are using, the compiler version used and the modifications you have done to the toolbox ?&lt;/P&gt;&lt;P&gt;We want to put together all these files with some other needed from our side in order to create hot-fix to benefit for the entire community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 08:39:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675200#M546</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-12T08:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675201#M547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/diogocacador"&gt;diogocacador&lt;/A&gt;‌ and &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Maciek"&gt;Maciek&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Can you tell us the exact Kinetis parts you are using and wish to have GCC toolchain support enabled?&lt;/P&gt;&lt;P&gt;We are in the process of testing a potential hotfix and we want to make sure we test both of your use-cases to ensure it works before making it available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and looking forward for your reply.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 18:27:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675201#M547</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-23T18:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675202#M548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;we have been trying to use/evaluate MBD toolbox with Tower kits:&lt;/P&gt;&lt;P&gt;TWR-KV10Z32 and&amp;nbsp;TWR-KV31F120M&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently we don't have any particular Kinetis parts selected (for motor control and power electronics projects). We will take what is&amp;nbsp;available and supported.&lt;/P&gt;&lt;P&gt;In a few non-power electronics projects we are currently using K60F120M - but those are PLC-like industrial controllers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 07:20:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675202#M548</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2017-05-24T07:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675203#M549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Maciek"&gt;Maciek&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/diogocacador"&gt;diogocacador&lt;/A&gt;‌ and all the others interested in Kinetis GCC support,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have now a solution to this problem (GCC is not supported for Kinetis devices) and could be deployed as hotfix (will become available after we finalize all tests)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment if you want to try it and helps us with testing and feedback here is what you need to update:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 22px; color: #000000;"&gt;&lt;STRONG&gt;#1: Toolbox related files to add and enable the support for GCC&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1.1. Go to &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;{Kinetis Toolbox Install dir}\mctbx_Kinetis\mctbx_kv\mscripts\&lt;/STRONG&gt;&lt;/SPAN&gt; folder and replace the &lt;SPAN style="font-family: 'courier new', courier, monospace; color: #ff0000;"&gt;&lt;STRONG&gt;mcd_kv_compiler_callback.p&lt;/STRONG&gt;&lt;/SPAN&gt; with the one attached&lt;/P&gt;&lt;P&gt;1.2. Go to &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;{Kinetis Toolbox Install dir}\mctbx_Kinetis\mctbx_kv3xf\mctbx_kv3xf\&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;folder and replace &lt;SPAN style="color: #ff0000; font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;mcd_kv3xf.tmf&lt;/STRONG&gt;&lt;/SPAN&gt; and&amp;nbsp;&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;mcd_kv3xf.tlc&lt;/STRONG&gt;&lt;/SPAN&gt; files with the ones attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 22px; color: #000000;"&gt;&lt;STRONG&gt;#2: GCC support files&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2.1: Copy and replace the&lt;SPAN style="color: #ff0000; font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;&amp;nbsp;startup_MK22F51212.S&lt;/STRONG&gt;&lt;/SPAN&gt; file attached to both &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;{Kinetis Toolbox Install dir}\mctbx_Kinetis\Kinetis_Platform_SDK\platform\startup\MK22F51212\gcc\&lt;/STRONG&gt;&lt;/SPAN&gt; and&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;STRONG&gt;{Kinetis Toolbox Install dir}\mctbx_Kinetis\mctbx_kv3xf\src\gcc_specific_files\&lt;/STRONG&gt;&lt;/SPAN&gt; folders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="text-decoration: underline; font-size: 22px;"&gt;&lt;STRONG&gt;#3: Define the&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="text-decoration: underline; font-size: 22px;"&gt;&lt;STRONG&gt;GCC_ARM_TOOL system variable to point to GCC compiler toolchain&lt;/STRONG&gt;&lt;/SPAN&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;For verification we used the compiler delivered with&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-334170"&gt; Model Based Design Toolbox for S32K rev 2.0.0&lt;/A&gt; but you could use the one shipped with&amp;nbsp;S32DS IDE as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;e.g. GCC_ARM_TOOL =&amp;nbsp;C:\MBDToolbox\mbdtbx_S32K\tools\gcc-arm-none-eabi-4_9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Notes:&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#1: The GCC options should be:&lt;/P&gt;&lt;P&gt;GCC Compile: -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g -gstrict-dwarf&lt;/P&gt;&lt;P&gt;GCC Assemble: -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g&lt;/P&gt;&lt;P&gt;GCC Link: -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20012i3588DA569875707A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#2: For the moment we have validated only for KV31F family&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#3: If you need to use the Automotive Motor Control library you need to get the latest version that support Kinetis families with GCC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#4: PIL is now functional&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20060iC1DBD163257BD9FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.JPG" alt="2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please let us know your results!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;MBDT team.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 09:35:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675203#M549</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-26T09:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675204#M550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/diogocacador"&gt;diogocacador&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Any chance for you to test this fix ?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jun 2017 18:50:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675204#M550</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-06-11T18:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675205#M551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for very late reply, but I haven't been on this project at all for a while, but I'm back and full time on this.&lt;/P&gt;&lt;P&gt;Just took a quick stab at this again making a fresh install of the toolbox and also including the proposed fix above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When compiling I get an error related to&amp;nbsp;the file "intrinsic_cw.h", which cannot be found. (See attached screen grab)&lt;span class="lia-inline-image-display-wrapper" image-alt="compile error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/17638iBCFFB2DFD6599737/image-size/large?v=v2&amp;amp;px=999" role="button" title="compile error.png" alt="compile error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the GCC toolchain provided with the&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;S32DS IDE for ARM v1.3.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Hardware in use is the FRDM-KV31F with the motor control shield FRDM-MC-LVPMSM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Diogo&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 11:57:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675205#M551</guid>
      <dc:creator>diogo_cacador</dc:creator>
      <dc:date>2017-08-10T11:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675206#M552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where can I find this "intrinsic_cw.h" file?&lt;/P&gt;&lt;P&gt;Is this related to CodeWarrior toolchain in any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's two files that include this file depending on the toolchain selected:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"MLIB_AddSat.h" and "MLIB_SubSat.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These files are included using the following statements:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;#if defined(__GNUC__)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#include "intrinsic_cw.h"&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#undef __STATIC_INLINE&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#define __STATIC_INLINE static inline&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#elif defined(__IAR_SYSTEMS_ICC__)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#include &amp;lt;intrinsics.h&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#undef __STATIC_INLINE&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#define __STATIC_INLINE static inline&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#elif defined(__CC_ARM)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#include "MK40N512MD100.h"&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;#endif&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also worth noting is that my target model looks like the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kv3xf_sim_pil_target.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18187i95CC8B20B45F8896/image-size/large?v=v2&amp;amp;px=999" role="button" title="kv3xf_sim_pil_target.png" alt="kv3xf_sim_pil_target.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if I remove the bottom "BAM" block the error related to the "intrinsic_cw.h" file goes away, therefore it must be including the header files mentioned above. However a new error occur. This new error is actually during the simulation itself as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="simulation error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18305iD9D568F4CBC5FBF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="simulation error.png" alt="simulation error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on solving this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diogo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 09:04:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675206#M552</guid>
      <dc:creator>diogocacador</dc:creator>
      <dc:date>2017-08-11T09:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675207#M553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;after Your hotfix I'm able to build the examples that are using only peripheral blocks from KV3x. I'm building on R2016b with GCC from S32K MBD Toolbox v3.0.0.&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;getting errors for models that are using Math and Motor Control Library blocks!&lt;/P&gt;&lt;P&gt;You have said:&lt;/P&gt;&lt;P&gt;"#3: If you need to use the Automotive Motor Control library you need to get the latest version that support Kinetis families with GCC."&lt;/P&gt;&lt;P&gt;I assume this is my problem.&lt;/P&gt;&lt;P&gt;How to get/update this library to be able to compile models correctly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 14:01:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675207#M553</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2017-12-04T14:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675208#M554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diogo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you managed to fix this issue? I have the same problem regarding the intrinsic_cw.h file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 14:38:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675208#M554</guid>
      <dc:creator>PedroCastro</dc:creator>
      <dc:date>2018-03-23T14:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Setup PIL simulation using MBD for Kinetis V series</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675209#M555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally the toolbox for Kinetis was not released with the support for GCC. We have made an patch just to enable preliminary support for code generation with GCC but we have not retested the entire toolbox. It seems that some of the blocks from MCLIB are using this intrinsic_cw.h which does not seems to exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My advice - if you wish to use the toolbox is to stick with IAR compiler since that was tested by the time of the release.&lt;/P&gt;&lt;P&gt;Hope this helps! The IAR comes with a 32KB limited free edition:&amp;nbsp;&lt;A class="link-titled" href="https://www.iar.com/iar-embedded-workbench/#!?currentTab=free-trials" title="https://www.iar.com/iar-embedded-workbench/#!?currentTab=free-trials"&gt;IAR Embedded Workbench&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 10:59:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Setup-PIL-simulation-using-MBD-for-Kinetis-V-series/m-p/675209#M555</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2018-03-26T10:59:17Z</dc:date>
    </item>
  </channel>
</rss>

