<?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: S32K344 SPI slave mode in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1478791#M16040</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202579"&gt;@rey&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;This is application-dependent, you could use another IO signal to notify the Slave device, for example.&lt;/P&gt;&lt;P&gt;But as the RM states, "Before the PCS input asserts, the transmit FIFO must be filled with transmit&lt;BR /&gt;data, or the transmit error flag sets." (Section 67.3.2 Slave mode, RM rev.3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 06:55:50 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2022-06-23T06:55:50Z</dc:date>
    <item>
      <title>S32K344 SPI slave mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1477597#M16021</link>
      <description>&lt;P&gt;Hi，NXP team.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I’m using S32K3 as SPI slave.I have seen the demo，it seems to use loopback mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In demo code ，slave transfer API and master transfer API are implamented after SPI initialization.After that，the transfer will go on in SPI callback function.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I’d like to know when I should implamemt the first transfer API if another chip acts as master？&amp;nbsp;I can't predict when the master will send data.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Rey&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 16:41:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1477597#M16021</guid>
      <dc:creator>rey</dc:creator>
      <dc:date>2022-06-21T16:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 SPI slave mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1478791#M16040</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202579"&gt;@rey&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;This is application-dependent, you could use another IO signal to notify the Slave device, for example.&lt;/P&gt;&lt;P&gt;But as the RM states, "Before the PCS input asserts, the transmit FIFO must be filled with transmit&lt;BR /&gt;data, or the transmit error flag sets." (Section 67.3.2 Slave mode, RM rev.3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 06:55:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1478791#M16040</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-06-23T06:55:50Z</dc:date>
    </item>
    <item>
      <title>回复： S32K344 SPI slave mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1484101#M16186</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi @danielmartynek，&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for your repley，your suggestion is helpful. I prepare transmit buffer filled with dummy data at the beginning and wait for PCS assertion .Transmit buffer would been&amp;nbsp;refreshed in callback function. It works well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Another question , K3 software reset function "Power_Ip_CortexM_WarmReset" doesn't work. I also try CM7 standard function, it doesn't word either. Is there anything else that needs to be configured？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;BR!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Rey&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 14:04:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1484101#M16186</guid>
      <dc:creator>rey</dc:creator>
      <dc:date>2022-07-04T14:04:07Z</dc:date>
    </item>
    <item>
      <title>回复： S32K344 SPI slave mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1484109#M16188</link>
      <description>&lt;P&gt;Hi Rey,&lt;/P&gt;
&lt;P&gt;I'm glad it works,&lt;/P&gt;
&lt;P&gt;Can you open a new thread for the Power_Ip ?&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;</description>
      <pubDate>Mon, 04 Jul 2022 14:18:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1484109#M16188</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-07-04T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 SPI slave mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1537755#M18314</link>
      <description>&lt;P&gt;Hi rey,&lt;BR /&gt;&lt;BR /&gt;Thank you for your thread! I've learnt a lot from it.&lt;BR /&gt;&lt;BR /&gt;I'm using S32K3 as SPI slave too. And I want to make the S32K3 can receive SPI messages continuously as soon as possible, so I configured SPI5 as slave mode with DMA enabled.&lt;BR /&gt;&lt;BR /&gt;But &lt;STRONG&gt;when I send amount data to the S32K3, it will get into the (&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;LPSPI_IP_EVENT_FAULT = 1) error state.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;This is my SPI slave callback function.&amp;nbsp;Is my "SPI slave callback function" the same as yours?&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Flowing is my SPI slave callback function.&lt;BR /&gt;&lt;STRONG&gt;····································································································&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;// @brief spi slave receive code&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;char spi5_recv[50] = {0};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;const char spi5x_send[50] = {0};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;void Spi5SlaveDmaCallback(uint8&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Instance&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;, Lpspi_Ip_EventType&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Event&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;if (&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Instance&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;&amp;nbsp;== 5) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;switch (&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Event&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class=""&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;case LPSPI_IP_EVENT_END_TRANSFER:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Lpspi_Ip_AsyncTransmit(&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;amp;Lpspi_Ip_DeviceAttributes_SpiExternalDevice_5_BOARD_InitPeripherals,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;spi5x_send, spi5_recv, 32, Rt1176SpiAsyncRecvCallback);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;case LPSPI_IP_EVENT_FAULT://&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;rt_kprintf("e");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;break;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;default:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;break;&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;void StartSpi5SlaveDmaRecvData(void) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Lpspi_Ip_AsyncTransmit(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;amp;Lpspi_Ip_DeviceAttributes_SpiExternalDevice_5_BOARD_InitPeripherals,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;spi5x_send, spi5_recv, 32, Rt1176SpiAsyncRecvCallback);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;·····························································································&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Best regards,&lt;BR /&gt;autolan22&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:27:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SPI-slave-mode/m-p/1537755#M18314</guid>
      <dc:creator>Cheddar</dc:creator>
      <dc:date>2022-10-14T09:27:19Z</dc:date>
    </item>
  </channel>
</rss>

