<?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 not responding</title>
    <link>https://community.nxp.com/t5/S32K/SPI-not-responding/m-p/1733197#M27537</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using S32K334 to implement a very responsive SPI slave, and Rasp Pi as the SPI master.&lt;BR /&gt;I initialized the SPI using&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;IntCtrl_Ip_EnableIrq(LPSPI1_IRQn);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;IntCtrl_Ip_InstallHandler(LPSPI1_IRQn, Lpspi_Ip_LPSPI_1_IRQHandler, NULL_PTR);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Lpspi_Ip_Init(&amp;amp;Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_0_Instance_0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Lpspi_Ip_Init(&amp;amp;Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_1_Instance_1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Lpspi_Ip_UpdateTransferMode(1, LPSPI_IP_INTERRUPT);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Lpspi_Ip_AsyncTransmit(&amp;amp;Lpspi_Ip_DeviceAttributes_SpiExternalDevice_1_Instance_1, spiSlaveTx, spiSlaveRx, CONNOR_SPI_SIZE, SPI_ISR_Callback);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;and I am using&amp;nbsp;&lt;STRONG&gt;SPI_ISR_Callback&lt;/STRONG&gt; to receive the SPI message from Pi.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noobsplzwin_0-1696343944994.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243484iCB894AC8A57C5158/image-size/medium?v=v2&amp;amp;px=400" role="button" title="noobsplzwin_0-1696343944994.png" alt="noobsplzwin_0-1696343944994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using Spidev library on the Pi side. The problem I am facing right now is I need to add a at least &lt;STRONG&gt;0.5ms&lt;/STRONG&gt; delay on the Pi side after each SPI transmission. Otherwise, S32K344 would start responding &lt;STRONG&gt;0xFFFFFF&lt;/STRONG&gt; after fewer successful SPI transactions. I tried to breakpoint in and noticed that S32K344 SPI ISR is not triggering after Pi SPI transmission, looks like S32k344 SPI is completely halted.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone give some advice here on whether I init the S32K3xx SPI properly? Can LPSPI do the job?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best regards and thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Oct 2023 14:44:48 GMT</pubDate>
    <dc:creator>noobsplzwin</dc:creator>
    <dc:date>2023-10-03T14:44:48Z</dc:date>
    <item>
      <title>SPI not responding</title>
      <link>https://community.nxp.com/t5/S32K/SPI-not-responding/m-p/1733197#M27537</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using S32K334 to implement a very responsive SPI slave, and Rasp Pi as the SPI master.&lt;BR /&gt;I initialized the SPI using&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;IntCtrl_Ip_EnableIrq(LPSPI1_IRQn);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;IntCtrl_Ip_InstallHandler(LPSPI1_IRQn, Lpspi_Ip_LPSPI_1_IRQHandler, NULL_PTR);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Lpspi_Ip_Init(&amp;amp;Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_0_Instance_0);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Lpspi_Ip_Init(&amp;amp;Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_1_Instance_1);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Lpspi_Ip_UpdateTransferMode(1, LPSPI_IP_INTERRUPT);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;Lpspi_Ip_AsyncTransmit(&amp;amp;Lpspi_Ip_DeviceAttributes_SpiExternalDevice_1_Instance_1, spiSlaveTx, spiSlaveRx, CONNOR_SPI_SIZE, SPI_ISR_Callback);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;and I am using&amp;nbsp;&lt;STRONG&gt;SPI_ISR_Callback&lt;/STRONG&gt; to receive the SPI message from Pi.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noobsplzwin_0-1696343944994.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/243484iCB894AC8A57C5158/image-size/medium?v=v2&amp;amp;px=400" role="button" title="noobsplzwin_0-1696343944994.png" alt="noobsplzwin_0-1696343944994.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using Spidev library on the Pi side. The problem I am facing right now is I need to add a at least &lt;STRONG&gt;0.5ms&lt;/STRONG&gt; delay on the Pi side after each SPI transmission. Otherwise, S32K344 would start responding &lt;STRONG&gt;0xFFFFFF&lt;/STRONG&gt; after fewer successful SPI transactions. I tried to breakpoint in and noticed that S32K344 SPI ISR is not triggering after Pi SPI transmission, looks like S32k344 SPI is completely halted.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone give some advice here on whether I init the S32K3xx SPI properly? Can LPSPI do the job?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best regards and thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 14:44:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-not-responding/m-p/1733197#M27537</guid>
      <dc:creator>noobsplzwin</dc:creator>
      <dc:date>2023-10-03T14:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: SPI not responding</title>
      <link>https://community.nxp.com/t5/S32K/SPI-not-responding/m-p/1733322#M27540</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/218699"&gt;@noobsplzwin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you take a look at the LPSPI example codes (Lpspi_Ip_HalfDuplexTransfer_S32K344 and&amp;nbsp;Lpspi_Flexio_Ip_Transfer_S32K344) to get familiar with the driver.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 18:42:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-not-responding/m-p/1733322#M27540</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-10-03T18:42:32Z</dc:date>
    </item>
  </channel>
</rss>

