<?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: ECSPI using DMA as master and slave in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-using-DMA-as-master-and-slave/m-p/447406#M69066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;Thanks for sharing your solution with the Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2015 16:01:00 GMT</pubDate>
    <dc:creator>CarlosCasillas</dc:creator>
    <dc:date>2015-06-12T16:01:00Z</dc:date>
    <item>
      <title>ECSPI using DMA as master and slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-using-DMA-as-master-and-slave/m-p/447403#M69063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to get the ECSPI running with the DMA I get stuck.&lt;/P&gt;&lt;P&gt;Just a short overview. I am using two imx6q processors which should share data via the SPI (SPI5 CS1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all I tried the example of the SDK which uses the loopback test function. This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to define one processor as master and the other one as slave. So far so good.&lt;/P&gt;&lt;P&gt;But I don’t get the desired result. Just add a screen of the logic analyzer which I use as sniffer between both processors. &lt;span class="lia-inline-image-display-wrapper" image-alt="SPI_MASTER_SLAVE_DMA.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33523iF0FC79214D08AD88/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI_MASTER_SLAVE_DMA.JPG" alt="SPI_MASTER_SLAVE_DMA.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The dummy data is received by the slave correctly. But transmitting from the slave fails. It seems that the master does not receive any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration of the master:&lt;/P&gt;&lt;P&gt;CONREG: 0x01F4 7829 (EN, SMC, CM = 2, POST = 8, PRE = 7 CS = 1, BL = 0x1F)&lt;/P&gt;&lt;P&gt;CONFIGREG: 0x0000 0200&lt;/P&gt;&lt;P&gt;INTREG: 0x0000 0000&lt;/P&gt;&lt;P&gt;DMAREG: 0x0083 00A0&lt;/P&gt;&lt;P&gt;STATREG: 0x0000 0003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The configuration of the slave:&lt;/P&gt;&lt;P&gt;CONREG: 0x01F4 0001&lt;/P&gt;&lt;P&gt;CONFIGREG: 0x0000 2200&lt;/P&gt;&lt;P&gt;INTREG: 0x0000 0000&lt;/P&gt;&lt;P&gt;DMAREG: 0x0083 00A0&lt;/P&gt;&lt;P&gt;STATREG: 0x0000 0003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any hint.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 12:53:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-using-DMA-as-master-and-slave/m-p/447403#M69063</guid>
      <dc:creator>peterw</dc:creator>
      <dc:date>2015-06-10T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI using with DMA as master and slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-using-DMA-as-master-and-slave/m-p/447404#M69064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first problem is solved ;-) &lt;/P&gt;&lt;P&gt;I can receive data from the slave via DMA. It was a fault in the IOMUX of my configuration. The SPI5 of the imx6 has ha Daisy register which has to configure different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I can receive a part of the dummy data. Like in the screenshot. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SPI_MASTER_SLAVE_DMA2.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30851iAD1F33F459832856/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI_MASTER_SLAVE_DMA2.JPG" alt="SPI_MASTER_SLAVE_DMA2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The first 2 words are not transmitted from the slave to the master. Only the last 2 words are received correctly from the master. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:32:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-using-DMA-as-master-and-slave/m-p/447404#M69064</guid>
      <dc:creator>peterw</dc:creator>
      <dc:date>2015-06-11T13:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI using DMA as master and slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-using-DMA-as-master-and-slave/m-p/447405#M69065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;Also the Daisy of the chip select was different. Adjusting that + removing the SS_POL bit from the slave, everythink works fine. (until now ;-) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 11:59:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-using-DMA-as-master-and-slave/m-p/447405#M69065</guid>
      <dc:creator>peterw</dc:creator>
      <dc:date>2015-06-12T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI using DMA as master and slave</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-using-DMA-as-master-and-slave/m-p/447406#M69066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;Thanks for sharing your solution with the Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 16:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-using-DMA-as-master-and-slave/m-p/447406#M69066</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2015-06-12T16:01:00Z</dc:date>
    </item>
  </channel>
</rss>

