<?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: S32K3 DMA with SPI</title>
    <link>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/2043818#M45890</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195919"&gt;@cuongnguyenphu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;How can I use these functions with SPI defined as master mode?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MVR&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 19:37:38 GMT</pubDate>
    <dc:creator>MVR</dc:creator>
    <dc:date>2025-02-13T19:37:38Z</dc:date>
    <item>
      <title>S32K3 DMA with SPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/1510256#M17271</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;For our project we would like to use DMA with SPI, I read the example :&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\NXP\SW32K3_RTD_4.4_2.0.1\eclipse\plugins\Spi_TS_T40D34M20I1R0\examples\EBT\Spi_Transfer_S32K344&lt;/P&gt;&lt;P&gt;In the description the slave is used with DMA.&lt;/P&gt;&lt;P&gt;In configuration I see the configuration (MCL) the DMA logic channel for RX and TX.&lt;/P&gt;&lt;P&gt;But I don't understand how the DMA works here as we used Spi_WriteIB and&amp;nbsp;Spi_ReadIB to copy and read buffer for slave.&lt;/P&gt;&lt;P&gt;When DMA is "triggered" and from which buffer to/from which it transfer data ?&lt;/P&gt;&lt;P&gt;In main.c functions&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Copy transmitted data to internal buffer */&lt;BR /&gt;Spi_WriteIB(1u, TxChBuf1);&lt;/P&gt;&lt;P&gt;/* This sequence of slave: transferring 10 frame 16 bits using Dma */&lt;BR /&gt;Spi_AsyncTransmit(SpiConf_SpiSequence_SpiSequence_Slave);&lt;/P&gt;&lt;P&gt;/* Read received buffer with data length configured in configuration tool */&lt;BR /&gt;Spi_ReadIB(1u, RxChBuf1);&lt;/P&gt;&lt;P&gt;Sophie&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 14:35:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/1510256#M17271</guid>
      <dc:creator>sobo</dc:creator>
      <dc:date>2022-08-23T14:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 DMA with SPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/1513650#M17391</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/146287"&gt;@sobo&lt;/a&gt;&amp;nbsp;, sorry for late response&lt;BR /&gt;In this example, Channel 1 as Slave using FlexIO with DMA method:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Spi_WriteIB&lt;/STRONG&gt;(1u, TxChBuf1) will be used to copy transmit data from TxChBuf1 to Internal buffer:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cuongnguyenphu_0-1661841926688.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191742iF82B5336AC84997A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cuongnguyenphu_0-1661841926688.png" alt="cuongnguyenphu_0-1661841926688.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Then, when&amp;nbsp;&lt;STRONG&gt;Spi_AsyncTransmit&lt;/STRONG&gt;(SpiConf_SpiSequence_SpiSequence_Slave) is called, it will called until&amp;nbsp;&lt;STRONG&gt;Flexio_Spi_Ip_AsyncTransmit&lt;/STRONG&gt;(), and in this function, 2 Ip will be called to setup Dma parameter and value, then set command :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cuongnguyenphu_2-1661842161604.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191744i3D570DAA64868D9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cuongnguyenphu_2-1661842161604.png" alt="cuongnguyenphu_2-1661842161604.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;For Receive data, when using Spi_ReadIB(1u, RxChBuf1), data will be store in Rx buffer by Dma then copy to RxChBuf1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cuongnguyenphu_0-1661842818895.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191746iDFAF4DF93F634B07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cuongnguyenphu_0-1661842818895.png" alt="cuongnguyenphu_0-1661842818895.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 07:00:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/1513650#M17391</guid>
      <dc:creator>cuongnguyenphu</dc:creator>
      <dc:date>2022-08-30T07:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 DMA with SPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/1514444#M17425</link>
      <description>&lt;P&gt;Thank you for answer, it help me to better understand this part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 07:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/1514444#M17425</guid>
      <dc:creator>sobo</dc:creator>
      <dc:date>2022-08-31T07:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 DMA with SPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/2043818#M45890</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195919"&gt;@cuongnguyenphu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;How can I use these functions with SPI defined as master mode?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MVR&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 19:37:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/2043818#M45890</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2025-02-13T19:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 DMA with SPI</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/2068739#M47173</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/195919" target="_blank"&gt;@cuongnguyenphu&lt;/A&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I am also looking at how to configure both the Master and the Slave with DMA.&lt;BR /&gt;I cannot find anything on this online and in the user manuals.&lt;/P&gt;
&lt;P&gt;The only thing that works for me is when the Slave is configured to do Async Transmit with DMA, and the Master is configured Sync Transmit without DMA&lt;BR /&gt;&lt;BR /&gt;But I would like both to use DMA&lt;BR /&gt;&lt;BR /&gt;Is it possible?&lt;BR /&gt;&lt;BR /&gt;Thank you for your help,&lt;BR /&gt;BR&lt;BR /&gt;Léa&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 13:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-DMA-with-SPI/m-p/2068739#M47173</guid>
      <dc:creator>LeaP</dc:creator>
      <dc:date>2025-03-26T13:43:24Z</dc:date>
    </item>
  </channel>
</rss>

