<?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>i.MX ProcessorsのトピックRe: ECSPI Slave Mode TXFIFO problem</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967966#M144147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that but I do wonder if it is related to my problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My&amp;nbsp;application is quite high speed (144,000 32 bit transfers per second). The driver is running in an FIQ interrupt to keep up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I read TESTREG immediately after writing to the TXFIFO I do not get reliable results.&amp;nbsp;Does sound like a similar problem to ERR009165 on the i.MX6Q part?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2019 11:38:46 GMT</pubDate>
    <dc:creator>chris_f</dc:creator>
    <dc:date>2019-10-25T11:38:46Z</dc:date>
    <item>
      <title>ECSPI Slave Mode TXFIFO problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967962#M144143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having some trouble using the ECSPI on an i.MX6ULL in slave mode in a continuous streaming application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data received by the part is fine but I'm getting repetitions in the transmitted data i.e. words that have been written to ECSPI0_TXDATA only once are transmitted multiple times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post (&lt;A class="link-titled" href="https://lists.gt.net/linux/kernel/2265455" title="https://lists.gt.net/linux/kernel/2265455"&gt;Mailing List Archive: [PATCH v2 8/8] spi: imx: Add support for SPI Slave mode for imx53 and imx6 chips&lt;/A&gt;&amp;nbsp;) mentions a possible cause but I can't see it in errata.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4f4c49; background-color: #f6f6f6; font-size: 14px;"&gt;1. ECSPI has a HW issue when works in Slave mode, after 64&lt;/SPAN&gt;&lt;BR style="color: #4f4c49; background-color: #f6f6f6; font-size: 14px;" /&gt;&lt;SPAN style="color: #4f4c49; background-color: #f6f6f6; font-size: 14px;"&gt;words written to TXFIFO, even TXFIFO becomes empty,&lt;/SPAN&gt;&lt;BR style="color: #4f4c49; background-color: #f6f6f6; font-size: 14px;" /&gt;&lt;SPAN style="color: #4f4c49; background-color: #f6f6f6; font-size: 14px;"&gt;ECSPI_TXDATA keeps shift out the last word data,&lt;/SPAN&gt;&lt;BR style="color: #4f4c49; background-color: #f6f6f6; font-size: 14px;" /&gt;&lt;SPAN style="color: #4f4c49; background-color: #f6f6f6; font-size: 14px;"&gt;so we have to disable ECSPI when in slave mode after the&lt;/SPAN&gt;&lt;BR style="color: #4f4c49; background-color: #f6f6f6; font-size: 14px;" /&gt;&lt;SPAN style="color: #4f4c49; background-color: #f6f6f6; font-size: 14px;"&gt;transfer completes&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Does this mean:&lt;/P&gt;&lt;P&gt;a) if I never&amp;nbsp;&lt;EM&gt;completely fill&lt;/EM&gt; the TXFIFO it will be OK?&lt;/P&gt;&lt;P&gt;b) never fill and never let it completely empty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion for a work-around would be welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 08:06:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967962#M144143</guid>
      <dc:creator>chris_f</dc:creator>
      <dc:date>2019-10-25T08:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI Slave Mode TXFIFO problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967963#M144144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chris_f&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can check ERR009535 ecspi slave erratum in&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/errata/IMX6ULLCE.pdf" target="_blank"&gt;&lt;STRONG&gt;Chip Errata for the i.MX 6ULL&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Software support is described in &lt;A href="https://www.nxp.com/webapp/Download?colCode=imx-yocto-L4.14.98_2.0.0_ga" target="_blank"&gt;Linux L4.14.98_2.0.0 Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/93578i80F20A5843A0CCEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.jpg" alt="pastedImage_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 09:46:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967963#M144144</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-10-25T09:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI Slave Mode TXFIFO problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967964#M144145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a custom kernel driver because slave mode was not implemented yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems there is a HW&amp;nbsp;problem that for some reason is &lt;EM&gt;still&lt;/EM&gt; not mentioned in the errata. This is from six years ago:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/315194"&gt;TX Issue on i.MX6 ECSPI (Slave)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this described anywhere? Is there a work-around without using DMA?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 11:26:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967964#M144145</guid>
      <dc:creator>chris_f</dc:creator>
      <dc:date>2019-10-25T11:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI Slave Mode TXFIFO problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967965#M144146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems mentioned link is for i.MX6Q, not i.MX6ULL.&lt;/P&gt;&lt;P&gt;Slave mode example can be found in MX6ULL FreeRTOS&amp;nbsp; SDK&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/welcome" title="https://mcuxpresso.nxp.com/en/welcome"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 11:32:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967965#M144146</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-10-25T11:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI Slave Mode TXFIFO problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967966#M144147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see that but I do wonder if it is related to my problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My&amp;nbsp;application is quite high speed (144,000 32 bit transfers per second). The driver is running in an FIQ interrupt to keep up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I read TESTREG immediately after writing to the TXFIFO I do not get reliable results.&amp;nbsp;Does sound like a similar problem to ERR009165 on the i.MX6Q part?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 11:38:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967966#M144147</guid>
      <dc:creator>chris_f</dc:creator>
      <dc:date>2019-10-25T11:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI Slave Mode TXFIFO problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967967#M144148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TXFIFO and TESTREG behaviour is as expected if the i.MX6ULL is the&amp;nbsp;&lt;EM&gt;only&lt;/EM&gt; slave on the SPI bus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much like the problem of MISO not being going hi-Z when CS is high, the SPI module is&amp;nbsp;&lt;EM&gt;all over the place&lt;/EM&gt; if it is one of multiple slaves on the bus. e.g. write one 32 bit word to an unrelated slave on the same bus and the TXFIFO drops 6 entries. Go figure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 16:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-Slave-Mode-TXFIFO-problem/m-p/967967#M144148</guid>
      <dc:creator>chris_f</dc:creator>
      <dc:date>2019-11-15T16:36:53Z</dc:date>
    </item>
  </channel>
</rss>

