<?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: S32K311 MBDT - Issues with LPSPI0 in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K311-MBDT-Issues-with-LPSPI0/m-p/2127228#M10323</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/251278"&gt;@beginner100&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Following an initial review of your .mex file, I noticed that while the LPSPI interrupt configurations have been updated, the MCU tab still enables clocks for incorrect LPSPI instances. Please ensure that the clock is also enabled for the instance you intend to use — specifically, &lt;STRONG&gt;LPSPI0&lt;/STRONG&gt;. You can find this setting at the following path: &lt;EM&gt;&lt;STRONG&gt;Mcu -&amp;gt; McuModuleConfiguration -&amp;gt; McuModeSettingConf -&amp;gt; McuPeripheral&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1751455935640.png" style="width: 503px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345751i6955FFE3FA0D7534/image-dimensions/503x193?v=v2" width="503" height="193" role="button" title="dragostoma_0-1751455935640.png" alt="dragostoma_0-1751455935640.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'll continue analyzing your file in more detail, but I recommend making this adjustment and testing again.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding S32 Configuration Tool (S32CT) resources, I’ll send you a list of relevant tutorials where you can see how it's typically used to configure pins, clocks, and peripherals.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Interacting-with-Digital-Inputs-Outputs-on-MR-CANHUBK344/ta-p/1746789" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Interacting-with-Digital-Inputs-Outputs-on-MR-CANHUBK344/ta-p/1746789&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Sending-data-via-UART-and-monitoring-signals-with-FreeMASTER/ta-p/1747896" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Sending-data-via-UART-and-monitoring-signals-with-FreeMASTER/ta-p/1747896&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Controlling-LED-intensity-with-ADC-and-PWM/ta-p/1747898" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Controlling-LED-intensity-with-ADC-and-PWM/ta-p/1747898&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Communicating-over-the-CAN-Bus/ta-p/1758456" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Communicating-over-the-CAN-Bus/ta-p/1758456&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me know if you need further assistance.&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>Wed, 02 Jul 2025 11:33:35 GMT</pubDate>
    <dc:creator>dragostoma</dc:creator>
    <dc:date>2025-07-02T11:33:35Z</dc:date>
    <item>
      <title>S32K311 MBDT - Issues with LPSPI0</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K311-MBDT-Issues-with-LPSPI0/m-p/2126627#M10321</link>
      <description>&lt;P&gt;I am using S32K311 for my project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured LPSPI0 as Master&amp;nbsp;to use with a Slave.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pins&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schitta_0-1751400870328.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345530i300FD8D67E4C4790/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schitta_0-1751400870328.png" alt="schitta_0-1751400870328.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Peripherals&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schitta_1-1751400953687.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345532i73B432BC082A0951/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schitta_1-1751400953687.png" alt="schitta_1-1751400953687.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Port - configured with no issues&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schitta_2-1751400980436.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345535i3E18E62A8D0B8163/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schitta_2-1751400980436.png" alt="schitta_2-1751400980436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Model: Reused example model SPI Asynchronous Interrupt Transfer S32CT, modified so that an LED Blinks after a successful job instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schitta_3-1751401135033.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345536i5542434A8EE2CB1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schitta_3-1751401135033.png" alt="schitta_3-1751401135033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what's inside the Initialize Block&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schitta_5-1751401413326.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345539i7FE0A3F0A33197CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schitta_5-1751401413326.png" alt="schitta_5-1751401413326.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There were issues building the model with regards to&amp;nbsp;Lpspi_Ip_LPSPI_1_IRQHandler and&amp;nbsp;Lpspi_Ip_LPSPI_2_IRQHandler.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I disabled those interrupts and enabled for LPSPI0 in S32CT - Platform component&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="schitta_4-1751401243962.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345537iDE0E0CE8974AA8EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="schitta_4-1751401243962.png" alt="schitta_4-1751401243962.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then I was able to build with no issues, but when I flashed the program, I don't see expected output. I previously used S32K312 EVB and was able to check data being sent on the scope but now, I only see a solid 5V going out on MOSI line.&lt;/P&gt;&lt;P&gt;Attached the mex file below.&lt;/P&gt;&lt;P&gt;Please let me know what other steps I might be missing. Let me know if you need any additional info.&lt;/P&gt;&lt;P&gt;Also, I am a new user of S32CT and if there are any resources to understand the S32CT in a detailed and better way, that would be very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 20:30:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K311-MBDT-Issues-with-LPSPI0/m-p/2126627#M10321</guid>
      <dc:creator>beginner100</dc:creator>
      <dc:date>2025-07-01T20:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: S32K311 MBDT - Issues with LPSPI0</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K311-MBDT-Issues-with-LPSPI0/m-p/2127228#M10323</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/251278"&gt;@beginner100&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Following an initial review of your .mex file, I noticed that while the LPSPI interrupt configurations have been updated, the MCU tab still enables clocks for incorrect LPSPI instances. Please ensure that the clock is also enabled for the instance you intend to use — specifically, &lt;STRONG&gt;LPSPI0&lt;/STRONG&gt;. You can find this setting at the following path: &lt;EM&gt;&lt;STRONG&gt;Mcu -&amp;gt; McuModuleConfiguration -&amp;gt; McuModeSettingConf -&amp;gt; McuPeripheral&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1751455935640.png" style="width: 503px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/345751i6955FFE3FA0D7534/image-dimensions/503x193?v=v2" width="503" height="193" role="button" title="dragostoma_0-1751455935640.png" alt="dragostoma_0-1751455935640.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'll continue analyzing your file in more detail, but I recommend making this adjustment and testing again.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding S32 Configuration Tool (S32CT) resources, I’ll send you a list of relevant tutorials where you can see how it's typically used to configure pins, clocks, and peripherals.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Interacting-with-Digital-Inputs-Outputs-on-MR-CANHUBK344/ta-p/1746789" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Interacting-with-Digital-Inputs-Outputs-on-MR-CANHUBK344/ta-p/1746789&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Sending-data-via-UART-and-monitoring-signals-with-FreeMASTER/ta-p/1747896" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Sending-data-via-UART-and-monitoring-signals-with-FreeMASTER/ta-p/1747896&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Controlling-LED-intensity-with-ADC-and-PWM/ta-p/1747898" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Controlling-LED-intensity-with-ADC-and-PWM/ta-p/1747898&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Communicating-over-the-CAN-Bus/ta-p/1758456" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Communicating-over-the-CAN-Bus/ta-p/1758456&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let me know if you need further assistance.&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>Wed, 02 Jul 2025 11:33:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K311-MBDT-Issues-with-LPSPI0/m-p/2127228#M10323</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2025-07-02T11:33:35Z</dc:date>
    </item>
  </channel>
</rss>

