<?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>S32K中的主题 Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly</title>
    <link>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408462#M60697</link>
    <description>&lt;P class=""&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please find attached the ZIP file containing the modified LPSPI transfer test project for the S32K142EVB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Could you please check the project and let me know if the LPSPI transfer configuration is correct or if any changes are required?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Thanks for your support.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resham&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2026 09:55:07 GMT</pubDate>
    <dc:creator>Resham_Bhattad</dc:creator>
    <dc:date>2026-08-26T09:55:07Z</dc:date>
    <item>
      <title>S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408163#M60657</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;Hello NXP Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I am using the &lt;/SPAN&gt;NXP lpspi_transfer_s32k142 example&lt;SPAN&gt; with &lt;/SPAN&gt;LPSPI0 in Master mode&lt;SPAN&gt; on an S32K142 board, without major changes to the example configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;My issue is that the &lt;/SPAN&gt;SCK/Clock waveform is not toggling correctly&lt;SPAN&gt;. I am monitoring SCK, MOSI, MISO and PCS with a logic analyzer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;For an &lt;/SPAN&gt;8-bit (1-byte) transfer, I expect 8 SCK clock pulses&lt;SPAN&gt;, but the logic analyzer shows an abnormal/continuous-looking clock waveform instead of the expected pulses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;Configuration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;LPSPI0 – Master&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;500 kHz&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;8-bit frame&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;PCS0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;CPOL = Active High&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;CPHA = 1st edge&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Transfer type = Interrupt&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;I have attached the logic analyzer screenshot showing the SCK waveform.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Could someone please help me understand &lt;/SPAN&gt;why the SCK clock is not toggling correctly in the NXP example&lt;SPAN&gt; and what configuration I should check?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2026 09:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408163#M60657</guid>
      <dc:creator>Resham_Bhattad</dc:creator>
      <dc:date>2026-08-25T09:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408353#M60669</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;The image you uploaded is too blurry; I can't see the SPI waveform clearly.&lt;/P&gt;
&lt;P&gt;Did you modify the LPSPI0 configuration of &lt;STRONG&gt;lpspi_transfer_s32k142&lt;/STRONG&gt; to select &lt;STRONG&gt;PCS continuous&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lpspi_transfer_s32k142 LPSPI0 PCS continuous.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/395345iA530110F37212BE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="lpspi_transfer_s32k142 LPSPI0 PCS continuous.png" alt="lpspi_transfer_s32k142 LPSPI0 PCS continuous.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;lpspi_transfer_s32k142 LPSPI0 PCS continuous.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It is recommended to use arrows or text to mark where you think there is a problem on a clear SPI waveform.&amp;nbsp;This will help me quickly understand your question.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2026 05:21:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408353#M60669</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2026-08-26T05:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408367#M60675</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Hi Robin,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thank you for your response.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In my current configuration, PCS continuous is unchecked, and the generated configuration has:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;.isPcsContinuous = false&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I have not modified this setting.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In the uploaded waveform, I am also not getting the expected clean SPI timing. For a 1-byte transfer, I expect 8 SCK clock pulses while PCS is asserted for the complete transfer (PCS active → 8 clock pulses → PCS inactive). However, my logic analyzer capture does not show this expected behavior clearly. The SCK pulses appear irregular, and the PCS/Enable signal is not showing the expected high/low behavior around the complete SPI frame.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I have attached the current waveform for reference.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Could you please confirm whether this PCS and SCK behavior is expected with the LPSPI_DRV_MasterTransferBlocking() API and the current LPSPI configuration?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I will also test with PCS continuous enabled and share the result.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Resham&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2026 05:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408367#M60675</guid>
      <dc:creator>Resham_Bhattad</dc:creator>
      <dc:date>2026-08-26T05:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408372#M60678</link>
      <description>&lt;P&gt;If possible, I suggest you send me the modified test project so that I can quickly reproduce the problem you encountered on the S32K142EVB.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2026 06:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408372#M60678</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2026-08-26T06:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408462#M60697</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please find attached the ZIP file containing the modified LPSPI transfer test project for the S32K142EVB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Could you please check the project and let me know if the LPSPI transfer configuration is correct or if any changes are required?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Thanks for your support.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Resham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2026 09:55:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408462#M60697</guid>
      <dc:creator>Resham_Bhattad</dc:creator>
      <dc:date>2026-08-26T09:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408686#M60708</link>
      <description>&lt;P&gt;Why can't I see the .mex file in the SPI.zip you sent? Without the .mex file, I have no way of knowing how you configured LPSPI. Which version of S32DS are you using? I imported your project, and it tells me you are using S32K1 SDK RTM 4.0.1. Please confirm the version of S32DS and SDK so I can install them for testing.&lt;/P&gt;
&lt;P&gt;I'm unable to compile your project correctly using S32DS v3.4 with S32K1 SDK 4.0.2 and 4.0.3 installed.&amp;nbsp;I suspect your S32DS SDK is not installed correctly, which is why there is no .mex file in your project.&lt;BR /&gt;Did you obtain the project from another colleague? Is it mandatory to use the same SDK version for development?&lt;BR /&gt;Please determine which version of the S32K1 SDK you need to install.&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;S32K1 SDK 4.0.3&lt;/STRONG&gt; can be installed by&amp;nbsp;&lt;STRONG&gt;S32DS Extensions and Updates&lt;/STRONG&gt; in &lt;STRONG&gt;S32DS v3.4&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;As far as I know, &lt;STRONG&gt;S32K1 SDK 4.0.1&lt;/STRONG&gt; can currently only be available in&amp;nbsp;&lt;STRONG&gt;S32DS v3.3&lt;/STRONG&gt;.&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;S32K1 SDK 4.0.2&amp;nbsp;&lt;/STRONG&gt;(&lt;STRONG&gt;SW32K1_S32DS_3.4.1_D2106.zip&lt;/STRONG&gt;) can be installed in &lt;STRONG&gt;S32DS v3.4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;. For installation instructions, please refer to:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/S32-Design-Studio-v3-4-S32K1-Service-Pack-1-released/ta-p/1299799" target="_blank"&gt;S32 Design Studio v3.4 S32K1 Service Pack 1 released!&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2026 08:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2408686#M60708</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2026-08-27T08:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: S32K142 LPSPI0 Master (lpspi_transfer example): SCK clock not toggling correctly</title>
      <link>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2409108#M60735</link>
      <description>&lt;P&gt;&lt;SPAN&gt;After installing&amp;nbsp;&lt;STRONG&gt;S32K1 SDK 4.0.1 &lt;/STRONG&gt;by&amp;nbsp;&lt;STRONG&gt;S32DS Extensions and Updates &lt;/STRONG&gt;in&amp;nbsp;&lt;STRONG&gt;S32DS v3.3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, I was able to build the project correctly without errors.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="install S32K1 SDK 4.0.1 in S32DSv3.3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/395487iFC89CB314E4AAE62/image-size/large?v=v2&amp;amp;px=999" role="button" title="install S32K1 SDK 4.0.1 in S32DSv3.3.png" alt="install S32K1 SDK 4.0.1 in S32DSv3.3.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;install S32K1 SDK 4.0.1 in S32DSv3.3.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="install S32K1 SDK 4.0.1 in S32DSv3.3 S32DS Extensions and Updates.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/395488i055572D6A77B55CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="install S32K1 SDK 4.0.1 in S32DSv3.3 S32DS Extensions and Updates.png" alt="install S32K1 SDK 4.0.1 in S32DSv3.3 S32DS Extensions and Updates.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;install S32K1 SDK 4.0.1 in S32DSv3.3 S32DS Extensions and Updates.png&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Below are the SPI waveforms I obtained while debugging your SPI project on the LPSPI0 pin of the S32K142EVB. I used a logic analyzer to capture the SPI waveforms for the following pins:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;PTB0&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;PCS0&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;J4.5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;PTB2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;SCK0&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;J2.11&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;PTE1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;SIN0&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;J5.14&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;PTB4&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;SOUT0&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;J2.7&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;The SPI waveforms appear to match your configuration.&amp;nbsp;The logic analyzer I'm using is different from yours. I suggest you configure your logic analyzer according to the configuration shown in my screenshot.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="debug LPSPI0 S32K1 SDK 4.0.1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/395489iF167B3A4F3CC2579/image-size/large?v=v2&amp;amp;px=999" role="button" title="debug LPSPI0 S32K1 SDK 4.0.1.png" alt="debug LPSPI0 S32K1 SDK 4.0.1.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;debug LPSPI0 S32K1 SDK 4.0.1.png&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2026 08:12:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K142-LPSPI0-Master-lpspi-transfer-example-SCK-clock-not/m-p/2409108#M60735</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2026-08-28T08:12:03Z</dc:date>
    </item>
  </channel>
</rss>

