<?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: Imx6 How to make all data transfer through dma when using spi communication in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871219#M132422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="323842" data-username="864535720@qq.com" href="https://community.nxp.com/people/864535720@qq.com"&gt;其东 刘&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find my comment in the below mentioned thread :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/1113939?commentID=1113939&amp;amp;et=notification.mention#comment-1113939"&gt;How does the IMX6 SPI use DMA to transfer data?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2019 10:25:30 GMT</pubDate>
    <dc:creator>radhikasomaiya</dc:creator>
    <dc:date>2019-02-20T10:25:30Z</dc:date>
    <item>
      <title>Imx6 How to make all data transfer through dma when using spi communication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871218#M132421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My kernel version is 3.14.52&lt;BR /&gt;My development board is imx6qsabresd&lt;BR /&gt;When I use spi to communicate, I find that when the data transmitted is greater than 64 bytes, spi uses dma transmission. When it is less than 64 bytes, it uses pio to transmit.&lt;BR /&gt;Check out the code inside spi-imx.c. In the spi_imx_transfer() function, whether to use dma transfer or pio transfer is selected according to the (transfer-&amp;gt;len &amp;gt; spi_imx_get_fifosize(spi_imx)) condition.&lt;BR /&gt;Now, I want all the data to be transmitted via dma.&lt;BR /&gt;I tried to change the ECSPIx_DMAREG register. Remove the conditional restriction (transfer-&amp;gt;len &amp;gt; spi_imx_get_fifosize(spi_imx)), forcing spi to use dma transmission. In this way, all data can be transmitted through dma, but the received data is wrong and confusing.&lt;/P&gt;&lt;P&gt;For example, the data I sent is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0x0 , 0x1 , 0x2 , 0x3 , 0x4 , 0x5 , &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x6 , 0x7 , 0x8 , 0x9 , 0xa , 0xb , &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0xc , 0xd , 0xe , 0xf , 0x10, 0x11, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x12, 0x13, 0x14, 0x15, 0x16, 0x17, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23, &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x24, 0x25, 0x26, 0x27, 0x28, 0x29,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data I receive is:&lt;/P&gt;&lt;P&gt;14 15 16 17 18 19 &lt;BR /&gt;1A 1B 1C 1D 1E 1F &lt;BR /&gt;20 21 22 23 24 25 &lt;BR /&gt;26 27 28 29 00 00 &lt;BR /&gt;00 00 00 00 00 00 &lt;BR /&gt;00 00 00 00 00 00 &lt;BR /&gt;00 00 00 00 00 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope everyone can help me.&lt;/P&gt;&lt;P&gt;thank。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 06:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871218#M132421</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2019-02-19T06:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Imx6 How to make all data transfer through dma when using spi communication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871219#M132422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="323842" data-username="864535720@qq.com" href="https://community.nxp.com/people/864535720@qq.com"&gt;其东 刘&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find my comment in the below mentioned thread :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/1113939?commentID=1113939&amp;amp;et=notification.mention#comment-1113939"&gt;How does the IMX6 SPI use DMA to transfer data?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 10:25:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871219#M132422</guid>
      <dc:creator>radhikasomaiya</dc:creator>
      <dc:date>2019-02-20T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Imx6 How to make all data transfer through dma when using spi communication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871220#M132423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that when you try to output the following dataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0x0 , 0x1 , 0x2 , 0x3 , 0x4 , 0x5 ,&lt;BR /&gt;0x6 , 0x7 , 0x8 , 0x9 , 0xa , 0xb ,&lt;BR /&gt;0xc , 0xd , 0xe , 0xf , 0x10, 0x11,&lt;BR /&gt;0x12, 0x13, 0x14, 0x15, 0x16, 0x17,&lt;BR /&gt;0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d,&lt;BR /&gt;0x1e, 0x1f, 0x20, 0x21, 0x22, 0x23,&lt;BR /&gt;0x24, 0x25, 0x26, 0x27, 0x28, 0x29,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;through SPI using DMA, the actual dataset that appears on the physical SPI output is as follows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;14 15 16 17 18 19&lt;BR /&gt;1A 1B 1C 1D 1E 1F&lt;BR /&gt;20 21 22 23 24 25&lt;BR /&gt;26 27 28 29 00 00&lt;BR /&gt;00 00 00 00 00 00&lt;BR /&gt;00 00 00 00 00 00&lt;BR /&gt;00 00 00 00 00 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 09:06:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871220#M132423</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2019-02-22T09:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Imx6 How to make all data transfer through dma when using spi communication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871221#M132424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;BR /&gt;This situation has been encountered in the process of debugging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 03:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871221#M132424</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2019-02-25T03:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Imx6 How to make all data transfer through dma when using spi communication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871222#M132425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell me what caused this situation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 03:39:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6-How-to-make-all-data-transfer-through-dma-when-using-spi/m-p/871222#M132425</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2019-02-25T03:39:25Z</dc:date>
    </item>
  </channel>
</rss>

