<?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のトピックRe: S32K312 SPI + DMA</title>
    <link>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1713852#M26606</link>
    <description>&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that isn't the same case. I will try to explain in more detail.&lt;BR /&gt;I want SPI x4 with DMA. But I have only 6 DMAs for SPI. Every SPI has Tx and Rx so I need 8DMAs.&lt;/P&gt;&lt;P&gt;I only need DMA for Tx channels so my idea is work with 4 SPIs Tx with DMA and Rx without DMA, by simple interrupt. But the S32Design Studio configurator doesn't allowed it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any possible solution without change microcontroller to get this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- SPI Tx with DMA x4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- SPI Rx x4 (DMA not needed)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sergi.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 08:15:52 GMT</pubDate>
    <dc:creator>sergiverdaguerelausa</dc:creator>
    <dc:date>2023-08-30T08:15:52Z</dc:date>
    <item>
      <title>S32K312 SPI + DMA</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1696843#M25668</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I amb working on SPI with DMA.&lt;/P&gt;&lt;P&gt;Without using DMA with “Lpspi_Ip_SyncTransmit” the transmission works properly but when I use “Lpspi_Ip_AsyncTransmit” only 6 bytes are sent and the transmission never ends.&lt;/P&gt;&lt;P&gt;I attach code:&lt;/P&gt;&lt;P&gt;uint8 u8_frame_reset [] = {102, 170, 170, 170, 170, 170, 166, 166, 255};&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int&lt;/STRONG&gt; &lt;STRONG&gt;main&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* &lt;U&gt;Initalized&lt;/U&gt; clock */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clock_Ip_Init(&amp;amp;Clock_Ip_aClockConfig[0]);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* &lt;U&gt;Initalized&lt;/U&gt; pin */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize interrupt */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IntCtrl_Ip_Init(&amp;amp;IntCtrlConfig_0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IntCtrl_Ip_ConfigIrqRouting(&amp;amp;intRouteConfig);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize DMA IP} Driver */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;STRONG&gt;void&lt;/STRONG&gt;)Dma_Ip_Init(&amp;amp;Dma_Ip_xDmaInitPB);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* &lt;U&gt;Initalized&lt;/U&gt; &lt;U&gt;spi&lt;/U&gt; using instance &lt;U&gt;lpspi&lt;/U&gt; as a &lt;U&gt;spi&lt;/U&gt; slave */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lpspi_Ip_Init(&amp;amp;Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_0_Instance_0_BOARD_InitPeripherals);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; error = Lpspi_Ip_AsyncTransmit(&amp;amp;MASTER_EXTERNAL_DEVICE, u8_frame_reset, NULL, &lt;STRONG&gt;sizeof&lt;/STRONG&gt;(u8_frame_reset), spi_callback);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;while&lt;/STRONG&gt;(1){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;return&lt;/STRONG&gt; 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And configuration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sergiverdaguerelausa_0-1690903222854.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234583iADD11BF5DA357FD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sergiverdaguerelausa_0-1690903222854.png" alt="sergiverdaguerelausa_0-1690903222854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sergiverdaguerelausa_1-1690903222889.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234584i967B3D23317E9097/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sergiverdaguerelausa_1-1690903222889.png" alt="sergiverdaguerelausa_1-1690903222889.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to send 2 bytes, the bytes are sent but the transmision never ends.&lt;/P&gt;&lt;P&gt;No callbacks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1696843#M25668</guid>
      <dc:creator>sergiverdaguerelausa</dc:creator>
      <dc:date>2023-08-01T15:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 SPI + DMA</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1697721#M25715</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;See the discussion in &lt;A href="https://community.nxp.com/t5/S32K/LPSPI-Chip-Select-always-is-LOW-active-state/td-p/1563159" target="_self"&gt;LPSPI Chip Select always is LOW (active state)&lt;/A&gt;, where the project &lt;A href="https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/S32K/19783/1/Lpspi_Flexio_Ip_Transfer_S32K344_Update.7z" target="_self"&gt;Lpspi_Flexio_Ip_Transfer_S32K344_Update.7z&lt;/A&gt; may help.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 14:37:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1697721#M25715</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-08-02T14:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 SPI + DMA</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1698422#M25738</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is related to TX and RX of SPI.&lt;BR /&gt;Is allowed config TX with DMA and RX as interrupt?&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;&lt;P&gt;Sergi&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1698422#M25738</guid>
      <dc:creator>sergiverdaguerelausa</dc:creator>
      <dc:date>2023-08-03T08:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 SPI + DMA</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1702821#M25940</link>
      <description>&lt;P&gt;I'm sorry for the delay, I have been overloaded the last couple of days.&lt;/P&gt;
&lt;P&gt;If you only need to send but not receive (you fill &lt;STRONG&gt;NULL&lt;/STRONG&gt; for RxBuffer), then you can&lt;SPAN&gt;&amp;nbsp;use half duplex transfers(refer to Lpspi_Ip_HalfDuplexTransfer_S32K312).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 09:20:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1702821#M25940</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-08-10T09:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 SPI + DMA</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1713852#M26606</link>
      <description>&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that isn't the same case. I will try to explain in more detail.&lt;BR /&gt;I want SPI x4 with DMA. But I have only 6 DMAs for SPI. Every SPI has Tx and Rx so I need 8DMAs.&lt;/P&gt;&lt;P&gt;I only need DMA for Tx channels so my idea is work with 4 SPIs Tx with DMA and Rx without DMA, by simple interrupt. But the S32Design Studio configurator doesn't allowed it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any possible solution without change microcontroller to get this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- SPI Tx with DMA x4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- SPI Rx x4 (DMA not needed)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sergi.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 08:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1713852#M26606</guid>
      <dc:creator>sergiverdaguerelausa</dc:creator>
      <dc:date>2023-08-30T08:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: S32K312 SPI + DMA</title>
      <link>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1716547#M26752</link>
      <description>&lt;P&gt;But the S32CT will report &lt;EM&gt;Issue: The &lt;STRONG&gt;SpiPhyUnitAsyncUseDma&lt;/STRONG&gt; is checked, it implies that the DMA channels are activated and selected. Please enable &lt;STRONG&gt;SpiPhyTxDmaChannel&lt;/STRONG&gt;, &lt;STRONG&gt;SpiPhyRxDmaChannel&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Please enable SpiPhyTxDmaChannel, SpiPhyRxDmaChannel.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239415iE6D4FC9EB7608B90/image-size/large?v=v2&amp;amp;px=999" role="button" title="Please enable SpiPhyTxDmaChannel, SpiPhyRxDmaChannel.png" alt="Please enable SpiPhyTxDmaChannel, SpiPhyRxDmaChannel.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 14:46:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K312-SPI-DMA/m-p/1716547#M26752</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-09-04T14:46:59Z</dc:date>
    </item>
  </channel>
</rss>

