<?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>Model-Based Design Toolbox (MBDT)中的主题 Re: MBDT SIMULINK</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1958674#M9535</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul_ephraim_13_0-1726821682393.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300323i56BB19B9359E4F62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paul_ephraim_13_0-1726821682393.png" alt="paul_ephraim_13_0-1726821682393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thankyou mam for your information, but it seems that the port pins&amp;nbsp; are already configured by default in the port component.&lt;BR /&gt;Actually, what i am going through is that when Iinitially build the simulink model into the target (s32k312), the light does glow according to the initial setup, but when i change that in the model like in the below demonstrated image(blue to red) and building it once agaiin to the target, it seems to stick around with the initial build-up.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul_ephraim_13_1-1726821988841.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300325i5558286C67F81225/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paul_ephraim_13_1-1726821988841.png" alt="paul_ephraim_13_1-1726821988841.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have also attached my model, please consider, you could also provide some manuals for the setup procedure!&lt;BR /&gt;Sorry to keep pstig my queries! cause i am pretty new to this area!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2024 09:28:07 GMT</pubDate>
    <dc:creator>paul_ephraim_13</dc:creator>
    <dc:date>2024-09-20T09:28:07Z</dc:date>
    <item>
      <title>MBDT SIMULINK</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1957545#M9520</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i have an issue, if i interchange the rgb leds i am unable to see the change even after building it to the microprocessor.&lt;/P&gt;&lt;P&gt;My question is apart from led configuration shoud we configure any other peripherals to see that in effect.&lt;/P&gt;&lt;P&gt;I have replicated this in the nxps32k312 please clarify!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is the reference link that i used to build or simply configured to the s32k312 mcu&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Interacting-with-Digital-Inputs-Outputs-on-MR-CANHUBK344/tac-p/1957504#M285" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Interacting-with-Digital-Inputs-Outputs-on-MR-CANHUBK344/tac-p/1957504#M285&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 09:33:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1957545#M9520</guid>
      <dc:creator>paul_ephraim_13</dc:creator>
      <dc:date>2024-09-19T09:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT SIMULINK</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1957630#M9522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240145"&gt;@paul_ephraim_13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using MBDT for S32K3 v1.5.0, besides the Pins Tool configuration, where you should configure the pins used inside the application, you would also need to ensure the same pins configuration inside the Port component.&lt;/P&gt;
&lt;P&gt;This is because, during the initialization sequence, the &lt;STRONG&gt;Port_Init&lt;/STRONG&gt; function is called. Hence, not having the pin configured there as well, won't produce your expected results.&lt;/P&gt;
&lt;P&gt;This linkage between the Pins Tool and the Port component is mandatory, as specified by the RTD (Real-Time Drivers) implementation. MBDT uses this software drivers for ensuring hardware configuration and access from the Simulink environment.&lt;/P&gt;
&lt;P&gt;Please check the S32K3 Release Notes document - Section 3.6 where you could find details on the correspondence between the Port component and the Pins tool (attached a snippet from the section in discussion).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_0-1726742592507.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300015iCE15F1944CD171A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_0-1726742592507.png" alt="Irina_Costachescu_0-1726742592507.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know if this helps, or please provide any additional information that could help us identify the issue you are currently encountering.&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 10:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1957630#M9522</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2024-09-19T10:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT SIMULINK</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1958674#M9535</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul_ephraim_13_0-1726821682393.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300323i56BB19B9359E4F62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paul_ephraim_13_0-1726821682393.png" alt="paul_ephraim_13_0-1726821682393.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thankyou mam for your information, but it seems that the port pins&amp;nbsp; are already configured by default in the port component.&lt;BR /&gt;Actually, what i am going through is that when Iinitially build the simulink model into the target (s32k312), the light does glow according to the initial setup, but when i change that in the model like in the below demonstrated image(blue to red) and building it once agaiin to the target, it seems to stick around with the initial build-up.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paul_ephraim_13_1-1726821988841.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300325i5558286C67F81225/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paul_ephraim_13_1-1726821988841.png" alt="paul_ephraim_13_1-1726821988841.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have also attached my model, please consider, you could also provide some manuals for the setup procedure!&lt;BR /&gt;Sorry to keep pstig my queries! cause i am pretty new to this area!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 09:28:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1958674#M9535</guid>
      <dc:creator>paul_ephraim_13</dc:creator>
      <dc:date>2024-09-20T09:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT SIMULINK</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1958706#M9536</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240145"&gt;@paul_ephraim_13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I downloaded the model you gave me and tested it on the board. I notice that it was configured to toggle &lt;STRONG&gt;RGBLED0_BLUE&lt;/STRONG&gt;, as it appears from the generated code.&lt;BR /&gt;After that, I modified the DIO block to toggle the RED color, on the &lt;STRONG&gt;RGBLED0_RED&lt;/STRONG&gt; channel. Everything worked correctly, the led being red this time.&lt;/P&gt;
&lt;P&gt;As a note, if sometimes the application is not in sync with the latest changes, try to view the generated C code, it is possible that sometimes, even if you change settings in blocks, the code remains from the previous version. I think this happened in your case.&lt;/P&gt;
&lt;P&gt;You can view the generated code directly in Simulink, by accessing the &lt;STRONG&gt;Apps&lt;/STRONG&gt; section, followed by the &lt;STRONG&gt;Embedded Coder&lt;/STRONG&gt; section.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1726826362887.png" style="width: 742px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300365iBA929DF480C23386/image-dimensions/742x99?v=v2" width="742" height="99" role="button" title="dragostoma_0-1726826362887.png" alt="dragostoma_0-1726826362887.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;C Code&lt;/STRONG&gt; tab will open and you can access the generated code by pressing the &lt;STRONG&gt;View Code&lt;/STRONG&gt; button. By clicking on a block in Simulink, you can see the generated code related to that block and thus you can see if the parameters are updated or not.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. RGBLED0_BLUE&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-1726826383939.png" style="width: 830px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300366iFD5014C7F5B17637/image-dimensions/830x420?v=v2" width="830" height="420" role="button" title="dragostoma_1-1726826383939.png" alt="dragostoma_1-1726826383939.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. 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_2-1726826446641.png" style="width: 734px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/300367i8DF7DDFE5AA473B5/image-dimensions/734x178?v=v2" width="734" height="178" role="button" title="dragostoma_2-1726826446641.png" alt="dragostoma_2-1726826446641.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Additionally, you can open the generated code in text format, from the following location: &lt;EM&gt;&lt;STRONG&gt;model_name_ert_rtw folder -&amp;gt; model_name.c.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;In this case would be&amp;nbsp;&lt;EM&gt;temp_2_ert_rtw -&amp;gt;&amp;nbsp;temp_2.c&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;If you notice discrepancies between the model and the generated code, you can do a cleanup and delete the&amp;nbsp;&lt;STRONG&gt;ert_rtw&lt;/STRONG&gt; folder, where the generated code is located, and building the model again, the new code will be generated and thus make sure that it is in sync with the latest version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 10:06:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1958706#M9536</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2024-09-20T10:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT SIMULINK</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1965620#M9586</link>
      <description>&lt;P&gt;The problem still occurs!&amp;nbsp; only after deleting the&amp;nbsp;ert file after every modification the change seems to be reflected in the s32k312evb! is there any additional configurations&amp;nbsp; to be done for it to work seamlessly after every bulid&amp;nbsp; apart from DIO and Port configurations.&lt;BR /&gt;please clarify!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 10:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-SIMULINK/m-p/1965620#M9586</guid>
      <dc:creator>paul_ephraim_13</dc:creator>
      <dc:date>2024-10-02T10:58:54Z</dc:date>
    </item>
  </channel>
</rss>

