<?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 DIO Configuration not setting output in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DIO-Configuration-not-setting-output/m-p/2053318#M10039</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is my first NXP Project using MBDT. I have the S32K311[NHTOMPAST] on a custom PCB that I am attempting to validate. There are a few output pins attached to LEDs I'd like to see turn on/off but have had mostly poor results; the pins in question are:&lt;/P&gt;&lt;P&gt;"HOLDUP" = PTD12 (has LED attached)&lt;/P&gt;&lt;P&gt;"LED_PWM" = PTA11 (should work as digital gpio, ignore tha PWM in the name)&lt;/P&gt;&lt;P&gt;"LED_01" = PTC12&lt;/P&gt;&lt;P&gt;"LED_02" = PTC13&lt;/P&gt;&lt;P&gt;"LED_03" = PTA14&lt;/P&gt;&lt;P&gt;"LED_04" = PTE12&lt;/P&gt;&lt;P&gt;"LED_05" = PTB0&lt;/P&gt;&lt;P&gt;Yesterday, in a configuration I have since lost, I had HOLDUP, LED1, and LED2 turning on, so I believe they are connected electrically correctly. Interestingly enough, when I would attempt to drive LED3-5 it would turn on LED2. I believe that was a configuration issue, but I no longer have it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The configuration attached, from my knowledge, does nothing with my model. I am simply attempting to turn on the LEDs and keep them on. I started with an example configuration, added my pins, and deleted the ones I was not using (deleted PWMs, CAN, SPI, etc as I have other pins connected to hardware on this PCB... relays were cycling at a very high frequency so I tried my best to remove them).&lt;/P&gt;&lt;P&gt;After hours of fixing errors related to the things I deleted, I can build my model and flash the board. The board has a very faint buzzing sound (nothing like the relays) which makes me think something unintended is occurring. The LEDs do not turn on. I have looked around the hardware settings, configuration settings, model settings, and the simulink blocks and I have run out of ideas.&lt;/P&gt;&lt;P&gt;I presume the issues are software related, although this is a test of the first PCB made. There is a chance the hardware has an issue, but I'd like to proceed thinking this is a software problem.&lt;/P&gt;&lt;P&gt;Any help is appreciated, I've also attached images if it makes it easier to review. Also note, I've attempted setting my outputs as input/outputs towards the end of my day- neither worked. I apologize for the mess of files, I started with EEETEst.mex but changed a setting in my hardware settings, it now generates a new .mex file when I build.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 22:49:47 GMT</pubDate>
    <dc:creator>CCaruana</dc:creator>
    <dc:date>2025-02-27T22:49:47Z</dc:date>
    <item>
      <title>DIO Configuration not setting output</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DIO-Configuration-not-setting-output/m-p/2053318#M10039</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is my first NXP Project using MBDT. I have the S32K311[NHTOMPAST] on a custom PCB that I am attempting to validate. There are a few output pins attached to LEDs I'd like to see turn on/off but have had mostly poor results; the pins in question are:&lt;/P&gt;&lt;P&gt;"HOLDUP" = PTD12 (has LED attached)&lt;/P&gt;&lt;P&gt;"LED_PWM" = PTA11 (should work as digital gpio, ignore tha PWM in the name)&lt;/P&gt;&lt;P&gt;"LED_01" = PTC12&lt;/P&gt;&lt;P&gt;"LED_02" = PTC13&lt;/P&gt;&lt;P&gt;"LED_03" = PTA14&lt;/P&gt;&lt;P&gt;"LED_04" = PTE12&lt;/P&gt;&lt;P&gt;"LED_05" = PTB0&lt;/P&gt;&lt;P&gt;Yesterday, in a configuration I have since lost, I had HOLDUP, LED1, and LED2 turning on, so I believe they are connected electrically correctly. Interestingly enough, when I would attempt to drive LED3-5 it would turn on LED2. I believe that was a configuration issue, but I no longer have it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The configuration attached, from my knowledge, does nothing with my model. I am simply attempting to turn on the LEDs and keep them on. I started with an example configuration, added my pins, and deleted the ones I was not using (deleted PWMs, CAN, SPI, etc as I have other pins connected to hardware on this PCB... relays were cycling at a very high frequency so I tried my best to remove them).&lt;/P&gt;&lt;P&gt;After hours of fixing errors related to the things I deleted, I can build my model and flash the board. The board has a very faint buzzing sound (nothing like the relays) which makes me think something unintended is occurring. The LEDs do not turn on. I have looked around the hardware settings, configuration settings, model settings, and the simulink blocks and I have run out of ideas.&lt;/P&gt;&lt;P&gt;I presume the issues are software related, although this is a test of the first PCB made. There is a chance the hardware has an issue, but I'd like to proceed thinking this is a software problem.&lt;/P&gt;&lt;P&gt;Any help is appreciated, I've also attached images if it makes it easier to review. Also note, I've attempted setting my outputs as input/outputs towards the end of my day- neither worked. I apologize for the mess of files, I started with EEETEst.mex but changed a setting in my hardware settings, it now generates a new .mex file when I build.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 22:49:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DIO-Configuration-not-setting-output/m-p/2053318#M10039</guid>
      <dc:creator>CCaruana</dc:creator>
      <dc:date>2025-02-27T22:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: DIO Configuration not setting output</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DIO-Configuration-not-setting-output/m-p/2054717#M10059</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247447"&gt;@CCaruana&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;First of all, the fact that your configuration with the model name is no longer generated is because you tried to use the referenced configuration functionality. This is a more complex functionality that allows you to share a configuration with multiple models (more details &lt;A href="https://www.mathworks.com/help/simulink/ug/referencing-configuration-sets.html" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;here&lt;/STRONG&gt;&lt;/A&gt;). But this is not your case.&amp;nbsp; To reset the location to the default value, please run the attached &lt;STRONG&gt;restoreRefConfigLocation.p&lt;/STRONG&gt; script, by right-clicking and running, when you have the Simulink model open. This way you will have the default value and you will no longer use this functionality.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditordragostoma_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled picture_ref.png" style="width: 545px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/326485iB8E28E36CDFFC77F/image-dimensions/545x115?v=v2" width="545" height="115" role="button" title="Untitled picture_ref.png" alt="Untitled picture_ref.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Secondly, the pin configuration you mentioned is correct, if the custom PCB is correctly configured from a hardware point of view, it should work. You can test the output of each pin after running the attached example and see the current behavior.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is impossible for me to test on the board, since you have a custom board, but from the checks made in the configuration project, things seem fine when it comes to pins.&lt;BR /&gt;Let us know if you make progress or if you encounter other difficulties.&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>Mon, 03 Mar 2025 12:27:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/DIO-Configuration-not-setting-output/m-p/2054717#M10059</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2025-03-03T12:27:56Z</dc:date>
    </item>
  </channel>
</rss>

