<?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: SPI Lpspi_Ip_AsyncTransmit not work in S32K</title>
    <link>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1735226#M27629</link>
    <description>&lt;P&gt;Hi &lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961" target="_self"&gt;&lt;SPAN class=""&gt;PetrS&lt;/SPAN&gt;&lt;/A&gt;，do you mean the&amp;nbsp;AsyncTransmit must use interrupt "Lpspi_Ip_LPSPI_0_IrqRxDmaHandler" to check the&amp;nbsp;LPSPI_IP_IDLE status?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 08 Oct 2023 03:04:11 GMT</pubDate>
    <dc:creator>liqingfa</dc:creator>
    <dc:date>2023-10-08T03:04:11Z</dc:date>
    <item>
      <title>SPI Lpspi_Ip_AsyncTransmit not work</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1716314#M26736</link>
      <description>&lt;P&gt;my spi set as follows:&lt;/P&gt;&lt;DIV&gt;/* Initialize each Spi hardware units using*/&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lpspi_Ip_Init(&amp;amp;Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_0_Instance_0_VS_0);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Update Framesize */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lpspi_Ip_UpdateFrameSize(&amp;amp;MASTER_EXTERNAL_DEVICE, 8U);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Update Transfered Bit order */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lpspi_Ip_UpdateLsb(&amp;amp;MASTER_EXTERNAL_DEVICE, FALSE);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Update Transfer Mode */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lpspi_Ip_UpdateTransferMode(MASTER_EXTERNAL_DEVICE.Instance, LPSPI_IP_INTERRUPT);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* Master starts transfer, synchronous method is used */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lpspi_Ip_SyncTransmit(&amp;amp;MASTER_EXTERNAL_DEVICE, TxMasterBuffer, RxMasterBuffer, NUMBER_OF_BYTES, TIMEOUT);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;it work for &lt;SPAN&gt;SyncTransmit，but i want change to&amp;nbsp;AsyncTransmit，i just change function "Lpspi_Ip_SyncTransmit(&amp;amp;MASTER_EXTERNAL_DEVICE, TxMasterBuffer, RxMasterBuffer, NUMBER_OF_BYTES, TIMEOUT);" to "Lpspi_Ip_AsyncTransmit(&amp;amp;MASTER_EXTERNAL_DEVICE, TxMasterBuffer, RxMasterBuffer, NUMBER_OF_BYTES, (Lpspi_Ip_CallbackType)spi_callback);" . i think it should work, but it not work. what can i do ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 07:52:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1716314#M26736</guid>
      <dc:creator>liqingfa</dc:creator>
      <dc:date>2023-09-04T07:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Lpspi_Ip_AsyncTransmit not work</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1716508#M26750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;what does not work in fact?&lt;BR /&gt;The only difference between functions is a Sync one does not finish until transfer is finished or timeout happens, while Async one starts transfer and leave function. User should check for end of transfer either using a callback or calling GetStatus function, I think.&lt;BR /&gt;Also do you have LPSPI interrupt installed/initialized?&lt;/P&gt;
&lt;P&gt;BR, Petr&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 12:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1716508#M26750</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-09-04T12:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Lpspi_Ip_AsyncTransmit not work</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1735162#M27620</link>
      <description>&lt;P&gt;Hi，&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961" target="_self"&gt;&lt;SPAN class=""&gt;PetrS&lt;/SPAN&gt;&lt;/A&gt;，I means use function “Lpspi_Ip_SyncTransmit(&amp;amp;MASTER_EXTERNAL_DEVICE, TxMasterBuffer, RxMasterBuffer, NUMBER_OF_BYTES, TIMEOUT);” I can get the message with DMA, but&amp;nbsp;replace the function "Lpspi_Ip_AsyncTransmit(&amp;amp;MASTER_EXTERNAL_DEVICE, TxMasterBuffer, RxMasterBuffer, NUMBER_OF_BYTES, (Lpspi_Ip_CallbackType)spi_callback); ". I can not get the message with DMA. I have&amp;nbsp;&lt;SPAN&gt;LPSPI interrupt installed/initialized, such as"IntCtrl_Ip_InstallHandler(LPSPI0_IRQn, Lpspi_Ip_LPSPI_0_IRQHandler, NULL_PTR);&lt;BR /&gt;IntCtrl_Ip_EnableIrq(LPSPI0_IRQn);".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Oct 2023 12:03:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1735162#M27620</guid>
      <dc:creator>liqingfa</dc:creator>
      <dc:date>2023-10-07T12:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Lpspi_Ip_AsyncTransmit not work</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1735226#M27629</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961" target="_self"&gt;&lt;SPAN class=""&gt;PetrS&lt;/SPAN&gt;&lt;/A&gt;，do you mean the&amp;nbsp;AsyncTransmit must use interrupt "Lpspi_Ip_LPSPI_0_IrqRxDmaHandler" to check the&amp;nbsp;LPSPI_IP_IDLE status?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Oct 2023 03:04:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1735226#M27629</guid>
      <dc:creator>liqingfa</dc:creator>
      <dc:date>2023-10-08T03:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Lpspi_Ip_AsyncTransmit not work</title>
      <link>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1736575#M27730</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;as I wrote, for async function you need to wait for end of transfer. Function just prepare transmission/reception and leave. So either you will check module status using&amp;nbsp;Lpspi_Ip_GetStatus, it returns IDLE after transfer is finished. Or if you define callback within Async function, this callback will be called with event LPSPI_IP_EVENT_END_TRANSFER after transfer is done.&lt;/P&gt;
&lt;P&gt;BR, Petr&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 12:41:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-Lpspi-Ip-AsyncTransmit-not-work/m-p/1736575#M27730</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-10-10T12:41:39Z</dc:date>
    </item>
  </channel>
</rss>

