<?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: MBDT1.5 DIO and PWM not working in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1895923#M9267</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;@&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199423" target="_self"&gt;&lt;SPAN class=""&gt;dragostoma,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;Yes, I have already created a same model 2-3 times and the result was same, so there is no chance of issue related to cleanup project and code regeneration. For more information, I have shared the models for testing the DIO and PWM the used GPIOs are PTG3,&amp;nbsp;PTG4,&amp;nbsp;PTG5.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 12:11:05 GMT</pubDate>
    <dc:creator>RushikeshK_DC</dc:creator>
    <dc:date>2024-06-28T12:11:05Z</dc:date>
    <item>
      <title>MBDT1.5 DIO and PWM not working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1895857#M9264</link>
      <description>&lt;P&gt;I currently have MBDT 1.5, I am exploring the following modules in MBDT1.5 for S32K344&lt;/P&gt;&lt;P&gt;1) DIO&lt;/P&gt;&lt;P&gt;2) PWM&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I am not getting the expected output. After doing some debugging using S32DS by flashing same ELF, I found that the GPIO is not configured in Output Mode (by observing MSCR Register in case of DIO) and in case of PWM the 'SSS' field of MSCR is not configured for eMIOS mode, even if these get correctly configured in ConfigTool.&lt;/P&gt;&lt;P&gt;Have also confirmed with the example projects as well, but the aforementioned modules do not work with it as well.&lt;/P&gt;&lt;P&gt;I have also worked on MBDT 1.4 for S32K344, and the same modules worked fine there.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 10:11:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1895857#M9264</guid>
      <dc:creator>RushikeshK_DC</dc:creator>
      <dc:date>2024-06-28T10:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT1.5 DIO and PWM not working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1895896#M9266</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235647"&gt;@RushikeshK_DC&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your interest into Model-Based Design Toolbox for S32K3.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did you try to use an example from the toolbox or a model configured by you that was migrated from the previous version of the toolbox?&amp;nbsp;I am asking to try to understand what could be the root cause of the reported problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As you mentioned, there is a discrepancy between the configuration project and the generated code. I would initially suggest a cleanup in the project - deleting and regenerating the code, because the latest toolbox didn't make major changes to how these modules work compared to the previous version, but the way pin configuration is handled has been changed instead.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In addition, for the ease of finding a solution, you can provide the model and the configuration project to more accurately evaluate the possible problems.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dragos&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 13:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1895896#M9266</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2024-06-28T13:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT1.5 DIO and PWM not working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1895923#M9267</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;@&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199423" target="_self"&gt;&lt;SPAN class=""&gt;dragostoma,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;Yes, I have already created a same model 2-3 times and the result was same, so there is no chance of issue related to cleanup project and code regeneration. For more information, I have shared the models for testing the DIO and PWM the used GPIOs are PTG3,&amp;nbsp;PTG4,&amp;nbsp;PTG5.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 12:11:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1895923#M9267</guid>
      <dc:creator>RushikeshK_DC</dc:creator>
      <dc:date>2024-06-28T12:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT1.5 DIO and PWM not working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1895947#M9269</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235647"&gt;@RushikeshK_DC&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;Initially I will approach the &lt;STRONG&gt;DIO_Test00&lt;/STRONG&gt; model for which you tried to generate code based on the DIO component.&amp;nbsp;From what I can see from the model, the hardware part used to generate code is &lt;STRONG&gt;S32K344-Q257&lt;/STRONG&gt;. Is this aspect correct?&lt;/P&gt;
&lt;P&gt;Assuming that the hardware part is correct, from what I can see in the configuration project there is a discrepancy between the configuration of the pins in the &lt;STRONG&gt;Port, Pins &lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;Dio&lt;/STRONG&gt; components.&amp;nbsp;A good reference to understand the connection between the &lt;STRONG&gt;Port&lt;/STRONG&gt; and &lt;STRONG&gt;Dio&lt;/STRONG&gt; components can be found at the following &lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K312-MBDT-1-4-0-Unable-to-read-configuration/m-p/1895784#M9263:~:text=toma%40nxp.com-,Hi,-%2C%C2%A0%40azure%2C" target="_self"&gt;&lt;STRONG&gt;link&lt;/STRONG&gt;&lt;/A&gt;, even if it is for the EB Tresos configuration tool, the concepts are similar.&lt;/P&gt;
&lt;P&gt;Referring to your configuration, I can see that the only change in the &lt;STRONG&gt;Port&lt;/STRONG&gt; component is related to &lt;STRONG&gt;LED1&lt;/STRONG&gt; which has &lt;STRONG&gt;MSCR 29&lt;/STRONG&gt;, which also corresponds to &lt;STRONG&gt;RGBLED0_RED&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1719579503396.png" style="width: 723px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286247i27B6EB87B7354298/image-dimensions/723x526?v=v2" width="723" height="526" role="button" title="dragostoma_0-1719579503396.png" alt="dragostoma_0-1719579503396.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the &lt;STRONG&gt;Dio&lt;/STRONG&gt; section, I found &lt;STRONG&gt;LED1&lt;/STRONG&gt;, &lt;STRONG&gt;LED2&lt;/STRONG&gt; and &lt;STRONG&gt;LED3&lt;/STRONG&gt; configured as &lt;STRONG&gt;PTG_L&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_1-1719579767297.png" style="width: 721px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286248i0346B095FF52243B/image-dimensions/721x692?v=v2" width="721" height="692" role="button" title="dragostoma_1-1719579767297.png" alt="dragostoma_1-1719579767297.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;On the other hand, in the &lt;STRONG&gt;Pins&lt;/STRONG&gt; section, I notice that the same pins are incorrectly configured, being assigned to the &lt;STRONG&gt;Adc_Pins_MBDT&lt;/STRONG&gt; functional group. Instead, they should be set in the functional group corresponding to &lt;STRONG&gt;Dio&lt;/STRONG&gt;, namely &lt;STRONG&gt;Dio_Pins_MBDT&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_2-1719579922366.png" style="width: 720px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286249i5A2C2AE83C1C3FDF/image-dimensions/720x873?v=v2" width="720" height="873" role="button" title="dragostoma_2-1719579922366.png" alt="dragostoma_2-1719579922366.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Moreover, MSCR registers must be synchronized between &lt;STRONG&gt;Port&lt;/STRONG&gt; and &lt;STRONG&gt;Pins&lt;/STRONG&gt; components, to ensure the connection between software and hardware configuration.&lt;/P&gt;
&lt;P&gt;As a last mention related to your application, for the &lt;STRONG&gt;S32K344-Q257&lt;/STRONG&gt; board all the available LEDs are already configured in the default configuration project, namely &lt;STRONG&gt;RGBLED0&lt;/STRONG&gt; and &lt;STRONG&gt;RGBLED1&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, on the other hand, related to the&amp;nbsp;&lt;STRONG&gt;s32k344_pwm_led_s32ct&lt;/STRONG&gt; model,&amp;nbsp;I notice similarities in the configuration of the pins with the &lt;STRONG&gt;DIO_Test00&lt;/STRONG&gt; model.&amp;nbsp;The PWM signals you want to configure use eMIOS instance 1 and channels 19, 20 and 21, but they are functionally assigned to the wrong group, they must be set in &lt;STRONG&gt;Pwm_Pins_MBDT&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1719581142037.png" style="width: 716px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286252i73774550A502D828/image-dimensions/716x898?v=v2" width="716" height="898" role="button" title="dragostoma_0-1719581142037.png" alt="dragostoma_0-1719581142037.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the &lt;STRONG&gt;Pwm&lt;/STRONG&gt; component the PWM channels are correctly set, according to the eMIOS instances used.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_1-1719581221567.png" style="width: 704px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286253iEB2B0DE9AA397023/image-dimensions/704x880?v=v2" width="704" height="880" role="button" title="dragostoma_1-1719581221567.png" alt="dragostoma_1-1719581221567.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But in the &lt;STRONG&gt;Port&lt;/STRONG&gt; component, the pins you are trying to use are not configured correctly.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_2-1719581288045.png" style="width: 682px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/286254i82EC46E12A7220C3/image-dimensions/682x812?v=v2" width="682" height="812" role="button" title="dragostoma_2-1719581288045.png" alt="dragostoma_2-1719581288045.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 13:28:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1895947#M9269</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2024-06-28T13:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT1.5 DIO and PWM not working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1897405#M9277</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&amp;nbsp;@&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199423" target="_self"&gt;&lt;SPAN class=""&gt;dragostoma,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have configured the DIO and PWM as you suggest and DIO working fine but I am facing issue with generating PMW output even I have configured as per you said. I have attached my PWM model here. Pls verify my configuration and need your suggestions.&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 09:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1897405#M9277</guid>
      <dc:creator>RushikeshK_DC</dc:creator>
      <dc:date>2024-07-02T09:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT1.5 DIO and PWM not working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1897468#M9278</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hello,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235647"&gt;@RushikeshK_DC&lt;/a&gt;l,&lt;/P&gt;
&lt;P&gt;I have analyzed the model provided by you, the configuration of the pins seems fine to me, with the exception of enabling the interrupt handlers corresponding to the &lt;STRONG&gt;eMIOS&lt;/STRONG&gt; instances.&amp;nbsp;You can do this from the &lt;STRONG&gt;Platform&lt;/STRONG&gt; tab -&amp;gt; &lt;STRONG&gt;Interrupt Controller&lt;/STRONG&gt; section. You should enable the handlers for the instances you want to use in PWM signal generation, namely:&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;EMIOS_1_CH_19&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;EMIOS_1_CH_20&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;EMIOS_1_CH_21&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;EMIOS_2_CH_3&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;EMIOS_1_CH_17&lt;/P&gt;
&lt;P&gt;Please be aware that eMIOS interrupts are divided into groups, as follows:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;EMIOS2_5_IRQn
&lt;OL&gt;
&lt;LI&gt;EMIOS_2_CH_0_ISR_USED&lt;/LI&gt;
&lt;LI&gt;EMIOS_2_CH_1_ISR_USED&lt;/LI&gt;
&lt;LI&gt;EMIOS_2_CH_2_ISR_USED&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;EMIOS_2_CH_3_ISR_USED&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;EMIOS1_1_IRQn
&lt;OL&gt;
&lt;LI&gt;EMIOS_1_CH_16_ISR_USED&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;EMIOS_1_CH_17_ISR_USED&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;EMIOS_1_CH_18_ISR_USED&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;EMIOS_1_CH_19_ISR_USED&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;EMIOS1_0_IRQn
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;EMIOS_1_CH_20_ISR_USED&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;EMIOS_1_CH_21_ISR_USED&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;EMIOS_1_CH_22_ISR_USED&lt;/LI&gt;
&lt;LI&gt;EMIOS_1_CH_23_ISR_USED&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;So you should enable the following interrupt handlers:&amp;nbsp;&lt;STRONG&gt;EMIOS1_0_IRQn,&amp;nbsp;EMIOS1_1_IRQn&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;EMIOS2_5_IRQn.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;
&lt;P&gt;&lt;!-- notionvc: 9b19a8ac-5409-44be-8dbe-980d9351fc93 --&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 11:49:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1897468#M9278</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2024-07-02T11:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT1.5 DIO and PWM not working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1897486#M9279</link>
      <description>Is the interrupt Enable is necessary.</description>
      <pubDate>Tue, 02 Jul 2024 12:20:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1897486#M9279</guid>
      <dc:creator>RushikeshK_DC</dc:creator>
      <dc:date>2024-07-02T12:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT1.5 DIO and PWM not working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1906286#M9292</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235647"&gt;@RushikeshK_DC&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The interrupt handlers enablement is necessary for ensuring that the generated code can handle real-time events efficiently and reliably: the &lt;STRONG&gt;eMIOS&lt;/STRONG&gt; modules often generate interrupts to signal the CPU about events like timer overflows, input capture, output compare matches, or edge detection on input signals. Enabling interrupt handlers ensures that these events are appropriately handled, allowing for real-time processing and response.&lt;/P&gt;
&lt;P&gt;Hope this helps,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 11:42:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/1906286#M9292</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2024-07-11T11:42:42Z</dc:date>
    </item>
  </channel>
</rss>

