<?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 S32K344 MBDT PMSM Example in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-MBDT-PMSM-Example/m-p/1742470#M8616</link>
    <description>&lt;P&gt;I am using the S32K344 MBDT PSMS example for&amp;nbsp;MCSPTE1AK344. I can successfully compile&amp;nbsp;and deployed into the board. Based on AN13902, the RGBLED0_GREEN should stay on after application is deployed on target. But on my site, I didn't see RGBLED0_GREEN light up and cannot run successfully in FreeMaster.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JiaNa_0-1697680327338.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245797i7BCBC215237C7E3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JiaNa_0-1697680327338.png" alt="JiaNa_0-1697680327338.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I also found that the initialization block of MBDT PMSM example is different compare with AN13902.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JiaNa_1-1697680956360.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245802iECEE079A39726741/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JiaNa_1-1697680956360.png" alt="JiaNa_1-1697680956360.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can make the MBDT PSMS demo run successfully? Are there any changes required to make?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 02:10:31 GMT</pubDate>
    <dc:creator>JiaNa</dc:creator>
    <dc:date>2023-10-19T02:10:31Z</dc:date>
    <item>
      <title>S32K344 MBDT PMSM Example</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-MBDT-PMSM-Example/m-p/1742470#M8616</link>
      <description>&lt;P&gt;I am using the S32K344 MBDT PSMS example for&amp;nbsp;MCSPTE1AK344. I can successfully compile&amp;nbsp;and deployed into the board. Based on AN13902, the RGBLED0_GREEN should stay on after application is deployed on target. But on my site, I didn't see RGBLED0_GREEN light up and cannot run successfully in FreeMaster.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JiaNa_0-1697680327338.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245797i7BCBC215237C7E3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JiaNa_0-1697680327338.png" alt="JiaNa_0-1697680327338.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I also found that the initialization block of MBDT PMSM example is different compare with AN13902.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JiaNa_1-1697680956360.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245802iECEE079A39726741/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JiaNa_1-1697680956360.png" alt="JiaNa_1-1697680956360.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can make the MBDT PSMS demo run successfully? Are there any changes required to make?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 02:10:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-MBDT-PMSM-Example/m-p/1742470#M8616</guid>
      <dc:creator>JiaNa</dc:creator>
      <dc:date>2023-10-19T02:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 MBDT PMSM Example</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-MBDT-PMSM-Example/m-p/1742815#M8619</link>
      <description>&lt;P&gt;Hi JiaNa,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for using the &lt;SPAN&gt;S32K344 MBDT PSMS example for&amp;nbsp;&lt;A href="https://www.nxp.com/design/development-boards/automotive-motor-control-solutions/s32k344-brushless-direct-current-and-permanent-magnet-synchronous-motor-control-development-kit:MCSPTE1AK344" target="_self"&gt;MCSPTE1AK344&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Indeed there are a few updates in&amp;nbsp;&lt;A href="https://nxp.flexnetoperations.com/control/frse/download?element=14146527" target="_blank" rel="nofollow noopener noreferrer"&gt;Model-Based Design Toolbox for S32K3xx version 1.4.0&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Based on this , after flashing the S32K344 board the &lt;STRONG&gt;RGBLED0&lt;/STRONG&gt; will turn to solid &lt;STRONG&gt;&lt;FONT color="#339966"&gt;Green&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;color , and when pressing the &lt;STRONG&gt;On/Off&lt;/STRONG&gt; or &lt;STRONG&gt;USER_SW0 &lt;/STRONG&gt;buttons the&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;RGBLED0_GREEN&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;will start toggling&amp;nbsp;indicating the motor is spinning.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;Second, regarding the initialization block, there are also changes, the ADC config and PWM init functions have been moved to the board configurtion page, to see this, open Hardware Settings, go to Hardware Implementation - Hardware board settings - Target hardware resources - Hardware - Configure Board Initialization:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_0-1697705345014.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245911i02439D2618CDF733/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_0-1697705345014.png" alt="stefanvlad_0-1697705345014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This option will open the Board Initialization window:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_1-1697705470493.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245912iCAF088CE657086F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_1-1697705470493.png" alt="stefanvlad_1-1697705470493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the list above are the Adc_EnableCtuControlMode(AdcHwUnit_0) ,&amp;nbsp;Adc_EnableCtuControlMode(AdcHwUnit_1) and the&amp;nbsp;Pwm_Init(&amp;amp;Pwm_Config) functions, each with a proper priority in order to enable the AdcHwUnit_0, AdcHwUnit_1 to be proper enabled before the PWM initialization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;There are no changes needed to be made, the updated PMSM model has been successfully&amp;nbsp;tested on the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://www.nxp.com/design/development-boards/automotive-motor-control-solutions/s32k344-brushless-direct-current-and-permanent-magnet-synchronous-motor-control-development-kit:MCSPTE1AK344" target="_self"&gt;MCSPTE1AK344&lt;/A&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;I recommend a small cleanup of the PMSM folder, by deleting the old generated files, leaving the following files intact:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_3-1697707333902.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245918i061F99E2E177FE0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_3-1697707333902.png" alt="stefanvlad_3-1697707333902.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;And you should be able to build, flash the board and run the motor using FreeMASTER with no issues:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_2-1697706930856.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/245917iE999B358F019FE36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_2-1697706930856.png" alt="stefanvlad_2-1697706930856.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Hope this clarifies the differences you've found in between the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://nxp.flexnetoperations.com/control/frse/download?element=14146527" target="_blank" rel="nofollow noopener noreferrer"&gt;MBDT version 1.4.0&lt;/A&gt;&lt;/SPAN&gt; S32K344 PMSM model and the&amp;nbsp;&lt;A id="relatedDocsClickPDF_2" href="https://www.nxp.com/webapp/Download?colCode=AN13884" target="_blank" rel="noopener" data-dtmaction="Documentation Section - Results Link Click" data-dtmsubaction="AN13884: 3-phase Sensorless PMSM Motor Control Kit with S32K344 using RTD Autosar API Application Note - NXP - Application Note - English"&gt;AN13884&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 11:50:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K344-MBDT-PMSM-Example/m-p/1742815#M8619</guid>
      <dc:creator>stefanvlad</dc:creator>
      <dc:date>2023-10-19T11:50:52Z</dc:date>
    </item>
  </channel>
</rss>

