<?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のトピックSPI Master Slave communication with two EVB</title>
    <link>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1730102#M27410</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the S32K146EVB for LPSPI communication, In that I'm using the one EVB as a master and another EVB as a slave.&lt;/P&gt;&lt;P&gt;only half duplex is working.&lt;/P&gt;&lt;P&gt;Not getting the data from slave.&lt;/P&gt;&lt;P&gt;I also us&lt;SPAN&gt;ed the example code for master attached below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="community.PNG" style="width: 702px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/242832iE3D89E3F53452FC9/image-dimensions/702x377?v=v2" width="702" height="377" role="button" title="community.PNG" alt="community.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 08:43:45 GMT</pubDate>
    <dc:creator>P007</dc:creator>
    <dc:date>2023-09-27T08:43:45Z</dc:date>
    <item>
      <title>SPI Master Slave communication with two EVB</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1730102#M27410</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the S32K146EVB for LPSPI communication, In that I'm using the one EVB as a master and another EVB as a slave.&lt;/P&gt;&lt;P&gt;only half duplex is working.&lt;/P&gt;&lt;P&gt;Not getting the data from slave.&lt;/P&gt;&lt;P&gt;I also us&lt;SPAN&gt;ed the example code for master attached below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="community.PNG" style="width: 702px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/242832iE3D89E3F53452FC9/image-dimensions/702x377?v=v2" width="702" height="377" role="button" title="community.PNG" alt="community.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 08:43:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1730102#M27410</guid>
      <dc:creator>P007</dc:creator>
      <dc:date>2023-09-27T08:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master Slave communication with two EVB</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1730362#M27430</link>
      <description>&lt;P&gt;Hi Pankaj Unde,&lt;/P&gt;
&lt;P&gt;In that case, there is something wrong with the Slave device.&lt;/P&gt;
&lt;P&gt;Have you tried the SDK example instead?&lt;/P&gt;
&lt;P&gt;It utilizes both Master and Slave in the one project.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1695806794477.png" style="width: 802px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/242879i1E7A67F5FB712548/image-dimensions/802x567?v=v2" width="802" height="567" role="button" title="danielmartynek_0-1695806794477.png" alt="danielmartynek_0-1695806794477.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 09:27:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1730362#M27430</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-09-27T09:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master Slave communication with two EVB</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1730639#M27448</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the DS32 ARM for this.&lt;BR /&gt;I have tried that example code .&lt;BR /&gt;Used that code in both slave and master EVB,&lt;BR /&gt;but only it is giving the data on MOSI.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 15:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1730639#M27448</guid>
      <dc:creator>P007</dc:creator>
      <dc:date>2023-09-27T15:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master Slave communication with two EVB</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1730663#M27450</link>
      <description>&lt;P&gt;Did you connect the right pins?&lt;/P&gt;
&lt;P&gt;If you modified the example projects, please attached both projects here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or create a ticket if you don't want to share it publicly.&lt;/P&gt;
&lt;P&gt;Make sure the lpspi transfer API on the Slave device is called before the Master starts the transfer.&lt;/P&gt;
&lt;P&gt;The Slave must have data in the TX FIFO when the transfer starts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 15:37:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1730663#M27450</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-09-27T15:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master Slave communication with two EVB</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1731767#M27477</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attached example codes, which I am using for communicating EVB.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 08:55:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1731767#M27477</guid>
      <dc:creator>P007</dc:creator>
      <dc:date>2023-10-03T08:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Master Slave communication with two EVB</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1731831#M27479</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/223299"&gt;@P007&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You configured both MCUs as SPI Masters.&lt;/P&gt;
&lt;P&gt;And this is what you call in the Slave project you attached:&lt;/P&gt;
&lt;P&gt;for(;;)&lt;BR /&gt;{&lt;BR /&gt;LPSPI1_16bits_read = LPSPI1_receive_16bits(); /* Receive half word on LSPI1 */&lt;BR /&gt;LPSPI1_transmit_16bits(tx_16bits); /* Transmit half word (16 bits) on LPSPI1 */&lt;BR /&gt;counter++;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;As I have already mentioned, when the Master starts the transfer, the LPSPI TX FIFO on the Slave's side must be filled with data provided it is a full-duplex format. But your code is waiting for RX data instead.&lt;/P&gt;
&lt;P&gt;Please use the SDK or RTD drivers at least for the Slave device.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 07:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Master-Slave-communication-with-two-EVB/m-p/1731831#M27479</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-09-29T07:07:31Z</dc:date>
    </item>
  </channel>
</rss>

