<?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 S32DS SPI CS_VIA_GPIO in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2205273#M54500</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I can see in the&amp;nbsp; Sbc_Fs26_HLD example that there is an option in the Spi component (MCAL) to set a CS pin, which allows manual control over the CS pin&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Djuric_0-1763133632091.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365736i7B6BB675F67EF25C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Djuric_0-1763133632091.png" alt="Djuric_0-1763133632091.png" /&gt;&lt;/span&gt;&lt;BR /&gt;But I'm not clear where that option is if I don't want to use a MCAL layer.&lt;BR /&gt;So, not working according to a AUTOSAR framework.&lt;BR /&gt;&lt;BR /&gt;In the same type of example but in the version Sbc_fs26_example_IP , which is not according to AUTOSAR standard, I don't have that option.&lt;BR /&gt;&lt;STRONG&gt;Where is SPI CS as GPIO pin control, option in the non autosar example?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Djuric_1-1763134045440.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365737iED9CFEF436E11A49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Djuric_1-1763134045440.png" alt="Djuric_1-1763134045440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2025 15:28:42 GMT</pubDate>
    <dc:creator>Djuric</dc:creator>
    <dc:date>2025-11-14T15:28:42Z</dc:date>
    <item>
      <title>S32DS SPI CS_VIA_GPIO</title>
      <link>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2205273#M54500</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I can see in the&amp;nbsp; Sbc_Fs26_HLD example that there is an option in the Spi component (MCAL) to set a CS pin, which allows manual control over the CS pin&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Djuric_0-1763133632091.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365736i7B6BB675F67EF25C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Djuric_0-1763133632091.png" alt="Djuric_0-1763133632091.png" /&gt;&lt;/span&gt;&lt;BR /&gt;But I'm not clear where that option is if I don't want to use a MCAL layer.&lt;BR /&gt;So, not working according to a AUTOSAR framework.&lt;BR /&gt;&lt;BR /&gt;In the same type of example but in the version Sbc_fs26_example_IP , which is not according to AUTOSAR standard, I don't have that option.&lt;BR /&gt;&lt;STRONG&gt;Where is SPI CS as GPIO pin control, option in the non autosar example?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Djuric_1-1763134045440.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365737iED9CFEF436E11A49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Djuric_1-1763134045440.png" alt="Djuric_1-1763134045440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 15:28:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2205273#M54500</guid>
      <dc:creator>Djuric</dc:creator>
      <dc:date>2025-11-14T15:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: S32DS SPI CS_VIA_GPIO</title>
      <link>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2205375#M54508</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232904"&gt;@Djuric&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unlike the SPI driver (MCAL), the LPSPI driver (IP) does not provide an explicit option to indicate whether the CS will be managed via GPIO or by the HW engine. For the IP driver, handling CS through GPIO must be implemented in code, and in ConfigTool you need to configure the desired pin as a GPIO.&lt;/P&gt;
&lt;P&gt;Additionally, please note that a low CLK pulse occurs when using the first workaround for ERR050456, which involves resetting the LPSPI module. If you select the second workaround, this low pulse will not appear.&lt;/P&gt;
&lt;P&gt;For more details&amp;nbsp;about how to enable the second workaround, refer to Section 3.6.8 of the User Manual for S32K3_S32M27x SPI Driver.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 19:05:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2205375#M54508</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-11-14T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32DS SPI CS_VIA_GPIO</title>
      <link>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2205378#M54509</link>
      <description>&lt;P&gt;Thanks for the answer.&lt;BR /&gt;How do I configure the CS pin in the S32DS tool to be a GPIO, when it is reserved for a Lpspi peripheral. There is a definition collision. One pin cannot be defined in two different components Lpspi and SIUL. Can you send me a screenshot of where this is exactly set up. I read the documentation, this chapter refers to settings in the AUTOSAR context.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 19:30:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2205378#M54509</guid>
      <dc:creator>Djuric</dc:creator>
      <dc:date>2025-11-14T19:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: S32DS SPI CS_VIA_GPIO</title>
      <link>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2205405#M54511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232904"&gt;@Djuric&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pin should be configured only as a GPIO, not as an SPI pin. For example, instead of defining it like this in the Pins Tool:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_0-1763152493107.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365750iB7D36FEE88D596A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_0-1763152493107.png" alt="VaneB_0-1763152493107.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It should be configured as follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VaneB_1-1763152562933.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365751i901293DC89FD3A6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VaneB_1-1763152562933.png" alt="VaneB_1-1763152562933.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then, control the state of the pin using the API Siul2_Dio_Ip_WritePin().&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 20:37:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2205405#M54511</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-11-14T20:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32DS SPI CS_VIA_GPIO</title>
      <link>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2207165#M54605</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I followed your advice and these are the steps I took:&lt;BR /&gt;&lt;BR /&gt;1) I unrouted a lpspi1_pcs0 pin from the LPSPI1 peripheral&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Djuric_1-1763510420151.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/366198iC7CF60683BD9960E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Djuric_1-1763510420151.png" alt="Djuric_1-1763510420151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2)&amp;nbsp;I routed the same pin and declared it as GPIO.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Djuric_2-1763510470230.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/366199i14723DF4F3214759/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Djuric_2-1763510470230.png" alt="Djuric_2-1763510470230.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3) Before initiating SPI communication with &lt;SPAN&gt;Lpspi_Ip_SyncTransmit&lt;/SPAN&gt;, I would first lower the pin (which simulates the CSB) with&amp;nbsp;&lt;SPAN&gt;Siul2_Dio_Ip_WritePin&lt;/SPAN&gt; and then raise it high again after &lt;SPAN&gt;Lpspi_Ip_SyncTransmit&lt;/SPAN&gt;.&lt;BR /&gt;It is Full Duplex communication, SpiPinConfiguration mode 3.&lt;BR /&gt;&lt;BR /&gt;4) SPI communication is not successful. Do I need to set something here (or somewhere else)?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Djuric_3-1763510648527.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/366202i4E2B13AA8A2F29DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Djuric_3-1763510648527.png" alt="Djuric_3-1763510648527.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you provide further instructions?&lt;BR /&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 00:07:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2207165#M54605</guid>
      <dc:creator>Djuric</dc:creator>
      <dc:date>2025-11-19T00:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32DS SPI CS_VIA_GPIO</title>
      <link>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2213859#M54644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232904"&gt;@Djuric&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tested a basic LPSPI example in polling mode, using a hardware loopback by connecting the master output to the master input. This setup was used to verify that both transmission and reception are functioning correctly.&lt;/P&gt;
&lt;P&gt;To help ensure that no configurations, initializations, or code elements are missing from your setup, I am attaching the .mex file and the main source file for your reference.&lt;/P&gt;
&lt;P&gt;Note: The code was developed using S32DS v3.6.2 with RTD 6.0.0 and tested on an S32K3X4EVB-T172.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 18:29:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2213859#M54644</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-11-19T18:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32DS SPI CS_VIA_GPIO</title>
      <link>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2214005#M54645</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 18:40:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32DS-SPI-CS-VIA-GPIO/m-p/2214005#M54645</guid>
      <dc:creator>Djuric</dc:creator>
      <dc:date>2025-11-19T18:40:13Z</dc:date>
    </item>
  </channel>
</rss>

