<?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: SPI read/write with changing modes fail</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SPI-read-write-with-changing-modes-fail/m-p/929794#M139504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinandan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to avoid such issues one can try to follow sect.21.5 Initialization before each mode&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX6DQRM" target="_blank"&gt;&lt;STRONG&gt;i.MX 6Dual/6Quad Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&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>Tue, 17 Sep 2019 09:52:55 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2019-09-17T09:52:55Z</dc:date>
    <item>
      <title>SPI read/write with changing modes fail</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-read-write-with-changing-modes-fail/m-p/929793#M139503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am testing spi read and write in imx6 as master. The method of my testing includes testing read/write for all modes.&lt;/P&gt;&lt;P&gt;So, first I test read/write separately for SPI mode 0... then do the same read/write test for mode 1... then for mode 2 and finally mode 3.&lt;/P&gt;&lt;P&gt;But this sequence of changing modes and repeating the read/write test is failing.&lt;/P&gt;&lt;P&gt;A single test application is used to test the above sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we change the sequence of testing to SPI mode 1, mode 0 mode 3 and then mode 2 in the end,&amp;nbsp;it is found to be working fine and also this sequence is repeatable.&lt;/P&gt;&lt;P&gt;In all cases, frame size is 32bits and data length is 12 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the spi configuration used in imx6 dts&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi2 {&lt;BR /&gt;&amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi2&amp;gt;;&lt;BR /&gt;&amp;nbsp;fsl,spi-num-chipselects = &amp;lt;2&amp;gt;;&lt;BR /&gt;&amp;nbsp;cs-gpios = &amp;lt;&amp;amp;gpio2 26 0&amp;gt;, &amp;lt;&amp;amp;gpio2 27 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;dmas = &amp;lt;&amp;amp;sdma 5 7 1&amp;gt;, &amp;lt;&amp;amp;sdma 6 7 2&amp;gt;;&lt;BR /&gt;&amp;nbsp;dma-names = "rx", "tx";&lt;BR /&gt;&amp;nbsp;status = "okay";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;spi@0 {&lt;BR /&gt;&amp;nbsp;compatible = "spidev";&lt;BR /&gt;&amp;nbsp;spi-max-frequency = &amp;lt;50000000&amp;gt;;&lt;BR /&gt;&amp;nbsp;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;spi@1 {&lt;BR /&gt;&amp;nbsp;compatible = "spidev";&lt;BR /&gt;&amp;nbsp;spi-max-frequency = &amp;lt;50000000&amp;gt;;&lt;BR /&gt;&amp;nbsp;reg = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this behavior is expected in this testing.&lt;/P&gt;&lt;P&gt;If not, please point me to the recommended fix I can try out, so that all sequences works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 12:13:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-read-write-with-changing-modes-fail/m-p/929793#M139503</guid>
      <dc:creator>abhinandanbr</dc:creator>
      <dc:date>2019-09-16T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: SPI read/write with changing modes fail</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-read-write-with-changing-modes-fail/m-p/929794#M139504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinandan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to avoid such issues one can try to follow sect.21.5 Initialization before each mode&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX6DQRM" target="_blank"&gt;&lt;STRONG&gt;i.MX 6Dual/6Quad Applications Processor Reference Manual&lt;/STRONG&gt;&lt;/A&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>Tue, 17 Sep 2019 09:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-read-write-with-changing-modes-fail/m-p/929794#M139504</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-09-17T09:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: SPI read/write with changing modes fail</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-read-write-with-changing-modes-fail/m-p/929795#M139505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The section indicates code changes from the driver point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But from the application perspective, is it possible to follow the steps mentioned in the sect. 21.5?&lt;/P&gt;&lt;P&gt;I am using the SPI driver available as part of Yocto BSP18.1.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 10:33:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-read-write-with-changing-modes-fail/m-p/929795#M139505</guid>
      <dc:creator>abhinandanbr</dc:creator>
      <dc:date>2019-09-18T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: SPI read/write with changing modes fail</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SPI-read-write-with-changing-modes-fail/m-p/929796#M139506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinandan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;section indicates code changes from the hardware point of view.&lt;/P&gt;&lt;P&gt;So violating it may cause ecspi module malfunction.&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>Wed, 18 Sep 2019 13:28:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SPI-read-write-with-changing-modes-fail/m-p/929796#M139506</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-09-18T13:28:35Z</dc:date>
    </item>
  </channel>
</rss>

