<?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: Motor Control Errors Example Project MBDT S32K3 in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1532703#M7718</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206113"&gt;@RobSpanjers&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;For addressing the issue you are currently encountering, I will also add some information on how the MBDT for S32K3 operates that you might find useful. Please find my answer structured as it follows:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Default and Custom Configuration Projects&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The MBDT for S32K3 uses the integration of external tools (EB Tresos or S32 Config Tools) for configuring the hardware for a specific application (peripherals, pins, clocks). The toolbox provides a default configuration (available both in EBT or S32 Config Tools), enabling all the components we offer support for, for each of the supported processors. Such a default configuration is used during the build of Simulink models, being a folder in case of EB Tresos, identified as &lt;EM&gt;modelName_TresosProject,&lt;/EM&gt; or a file, identified as &lt;EM&gt;modelNameConfig.mex&lt;/EM&gt; in case of the S32 Configuration Tools selection.&lt;/P&gt;
&lt;P&gt;However, if the model is already delivered with an associated project (a &lt;EM&gt;TresosProject&lt;/EM&gt; folder or a &lt;EM&gt;.mex&lt;/EM&gt; file placed next to the model), that is the one that will be used during the build process for generating corresponding configuration code based on the enabled settings. The motor control examples we provide use such custom projects, as you can see in the picture below, highlighted in red.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_0-1664979843712.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195797i9F825C77A47802A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_0-1664979843712.png" alt="Irina_Costachescu_0-1664979843712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For a better understanding of when default or custom projects are used, you can check the Dio applications. For example, you can navigate to the &lt;EM&gt;S32K3_Examples/dio/s32k344_dio_ebt&lt;/EM&gt; folder. As you can see, in this case, there is no project placed next to the model, hence the default configuration will be used when building this application.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_1-1664980120058.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195799iB645358FB66D54F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_1-1664980120058.png" alt="Irina_Costachescu_1-1664980120058.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Motor Control Custom Configuration Projects&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The custom projects contain settings enabled to fit specific applications particularities, like motor control. When you change the configuration tool for the PMSM model (to S32 Configuration Tools), the custom project is not automatically translated into the new configuration tool. What happens is that the default S32 Config Tools project (not customized for motor control) will be used for the Simulink build process.&lt;/P&gt;
&lt;P&gt;Since the model you are trying to build was designed based on the EB Tresos custom configuration placed next to it, the default S32 Configuration project will not contain all the settings (channels, hardware units, etc.) needed by the model, hence the build will fail.&lt;/P&gt;
&lt;P&gt;Please also note that changing the Hardware Part will trigger the same behavior. The model is configured specifically for the S32K344-Q257 processor. If you change it to a different selection, the default configuration project (not customized for motor control) will be used for the following steps. A pop up dialog also informs you on this when you make the change.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_2-1664980311454.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195804iC62718F0A433B3A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_2-1664980311454.png" alt="Irina_Costachescu_2-1664980311454.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Therefore, you could keep the custom project the toolbox provides for this example, install EB Tresos and use it as the Configuration Tool, leaving the model settings unaltered. In this way you could also take a look inside the &lt;EM&gt;s32k3xx_mc_pmsm_TresosProject&lt;/EM&gt; configuration, and see how the components are set for such a specific application.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Unlimited Configuration Mode&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please also note that the toolbox also allows you to create your own custom projects. By pressing the &lt;STRONG&gt;Configure&lt;/STRONG&gt; button of any of the blocks in the model, the configuration project found next to the model will open. Inside this environment you can make any changes you like for addressing the particularities of your application. Saving the project and going back to your model, the &lt;STRONG&gt;Refresh&lt;/STRONG&gt; button will update the new settings into the Simulink environment.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_4-1664981626062.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195806iF0944BD404E2AD55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_4-1664981626062.png" alt="Irina_Costachescu_4-1664981626062.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this way, you have complete flexibility of configuring the hardware you are using, according to the application you are designing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this information will help you,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 14:54:13 GMT</pubDate>
    <dc:creator>Irina_Costachescu</dc:creator>
    <dc:date>2022-10-05T14:54:13Z</dc:date>
    <item>
      <title>Motor Control Errors Example Project MBDT S32K3</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1532483#M7717</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have some errors while building the Motor Control PMSM example project from the MBDT for S32K3. After opening the example project I check the model settings and set the hardware board to NXP S32K344-Q257 and to use the S32 Config Tool, and to use the COM10 serial port.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I generate and build the project I get errors (see Build_Error.docx).&lt;/P&gt;
&lt;P&gt;Do I have to adjust some other settings, or other Block Parameters?&lt;/P&gt;
&lt;P&gt;I'm using:&lt;BR /&gt;-MATLAB R2021a&lt;BR /&gt;-MBDT S32K3 V1.2&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Rob Spanjers&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 07:47:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1532483#M7717</guid>
      <dc:creator>RobSpanjers</dc:creator>
      <dc:date>2022-10-05T07:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Motor Control Errors Example Project MBDT S32K3</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1532703#M7718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206113"&gt;@RobSpanjers&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;For addressing the issue you are currently encountering, I will also add some information on how the MBDT for S32K3 operates that you might find useful. Please find my answer structured as it follows:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Default and Custom Configuration Projects&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The MBDT for S32K3 uses the integration of external tools (EB Tresos or S32 Config Tools) for configuring the hardware for a specific application (peripherals, pins, clocks). The toolbox provides a default configuration (available both in EBT or S32 Config Tools), enabling all the components we offer support for, for each of the supported processors. Such a default configuration is used during the build of Simulink models, being a folder in case of EB Tresos, identified as &lt;EM&gt;modelName_TresosProject,&lt;/EM&gt; or a file, identified as &lt;EM&gt;modelNameConfig.mex&lt;/EM&gt; in case of the S32 Configuration Tools selection.&lt;/P&gt;
&lt;P&gt;However, if the model is already delivered with an associated project (a &lt;EM&gt;TresosProject&lt;/EM&gt; folder or a &lt;EM&gt;.mex&lt;/EM&gt; file placed next to the model), that is the one that will be used during the build process for generating corresponding configuration code based on the enabled settings. The motor control examples we provide use such custom projects, as you can see in the picture below, highlighted in red.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_0-1664979843712.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195797i9F825C77A47802A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_0-1664979843712.png" alt="Irina_Costachescu_0-1664979843712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For a better understanding of when default or custom projects are used, you can check the Dio applications. For example, you can navigate to the &lt;EM&gt;S32K3_Examples/dio/s32k344_dio_ebt&lt;/EM&gt; folder. As you can see, in this case, there is no project placed next to the model, hence the default configuration will be used when building this application.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_1-1664980120058.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195799iB645358FB66D54F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_1-1664980120058.png" alt="Irina_Costachescu_1-1664980120058.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Motor Control Custom Configuration Projects&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The custom projects contain settings enabled to fit specific applications particularities, like motor control. When you change the configuration tool for the PMSM model (to S32 Configuration Tools), the custom project is not automatically translated into the new configuration tool. What happens is that the default S32 Config Tools project (not customized for motor control) will be used for the Simulink build process.&lt;/P&gt;
&lt;P&gt;Since the model you are trying to build was designed based on the EB Tresos custom configuration placed next to it, the default S32 Configuration project will not contain all the settings (channels, hardware units, etc.) needed by the model, hence the build will fail.&lt;/P&gt;
&lt;P&gt;Please also note that changing the Hardware Part will trigger the same behavior. The model is configured specifically for the S32K344-Q257 processor. If you change it to a different selection, the default configuration project (not customized for motor control) will be used for the following steps. A pop up dialog also informs you on this when you make the change.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_2-1664980311454.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195804iC62718F0A433B3A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_2-1664980311454.png" alt="Irina_Costachescu_2-1664980311454.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Therefore, you could keep the custom project the toolbox provides for this example, install EB Tresos and use it as the Configuration Tool, leaving the model settings unaltered. In this way you could also take a look inside the &lt;EM&gt;s32k3xx_mc_pmsm_TresosProject&lt;/EM&gt; configuration, and see how the components are set for such a specific application.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Unlimited Configuration Mode&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please also note that the toolbox also allows you to create your own custom projects. By pressing the &lt;STRONG&gt;Configure&lt;/STRONG&gt; button of any of the blocks in the model, the configuration project found next to the model will open. Inside this environment you can make any changes you like for addressing the particularities of your application. Saving the project and going back to your model, the &lt;STRONG&gt;Refresh&lt;/STRONG&gt; button will update the new settings into the Simulink environment.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_4-1664981626062.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195806iF0944BD404E2AD55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_4-1664981626062.png" alt="Irina_Costachescu_4-1664981626062.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this way, you have complete flexibility of configuring the hardware you are using, according to the application you are designing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this information will help you,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 14:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1532703#M7718</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2022-10-05T14:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Motor Control Errors Example Project MBDT S32K3</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1534853#M7730</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100054"&gt;@Irina_Costachescu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Motor Control Example project now will build on the board, but when I check EBTresos the PWM ports it uses are default ports, so the example project will not run with the &lt;SPAN&gt;DEVKIT-MOTORGD without editing the configuration. But when trying to configure the correct output pins, I get some errors.&amp;nbsp;&lt;BR /&gt;Is there a setup for the EBTresos environment that can be used with the Motor Example Project so I can see it working, or do I need to configure something?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;With kind regards,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Rob Spanjers&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 12:37:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1534853#M7730</guid>
      <dc:creator>RobSpanjers</dc:creator>
      <dc:date>2022-10-10T12:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Motor Control Errors Example Project MBDT S32K3</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1536029#M7736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206113"&gt;@RobSpanjers&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Could you share with us more details about your hardware setup? What motor are you using for testing the application?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 06:40:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1536029#M7736</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2022-10-12T06:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Motor Control Errors Example Project MBDT S32K3</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1536813#M7737</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100054"&gt;@Irina_Costachescu&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm using the S32K3X4EVB-Q257 (See picture 1), and the LINIX BLDC MOTOR 45ZWN24-40 with the DEVKIT-MOTORGD (See picture 2&amp;amp;3, the DEVKIT-MOTORGD is on this picture connected on the S32K1X4, but I use it connected on the S32K3x4EVB)&lt;/P&gt;
&lt;P&gt;Attached as well the PMSM MC example project I use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rob Spanjers&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 06:01:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Motor-Control-Errors-Example-Project-MBDT-S32K3/m-p/1536813#M7737</guid>
      <dc:creator>RobSpanjers</dc:creator>
      <dc:date>2022-10-13T06:01:18Z</dc:date>
    </item>
  </channel>
</rss>

