<?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 clk polarity issue IMX6dq in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-clk-polarity-issue-IMX6dq/m-p/589406#M88997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks igor&amp;nbsp;&lt;BR /&gt;i have just figure out the problem in the configuration&amp;nbsp;&lt;BR /&gt;in the SCLK_CTL bits in the configuration register&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2016 08:54:12 GMT</pubDate>
    <dc:creator>khaledali</dc:creator>
    <dc:date>2016-09-05T08:54:12Z</dc:date>
    <item>
      <title>ECSPI clk polarity issue IMX6dq</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-clk-polarity-issue-IMX6dq/m-p/589403#M88994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;I'm facing an awkward problem with ecspi. I tried to change the polarity of the clk and read the configuration register to be sure.&amp;nbsp;&lt;BR /&gt;and i found that the polarity bit in my &amp;nbsp;channel has been changed but without any effect.&lt;BR /&gt;&lt;BR /&gt;are there any other bits to check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Sep 2016 14:00:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-clk-polarity-issue-IMX6dq/m-p/589403#M88994</guid>
      <dc:creator>khaledali</dc:creator>
      <dc:date>2016-09-04T14:00:12Z</dc:date>
    </item>
    <item>
      <title>Re:  ECSPI clk polarity issue IMX6dq</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-clk-polarity-issue-IMX6dq/m-p/589404#M88995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khaled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try to reset block and follow sect.21.5 Initialization&lt;/P&gt;&lt;P&gt;i.MX6DQ Reference Manual (rev.0&amp;nbsp; 2/2016)&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.nxp.com%2Ffiles%2Fsoft_dev_tools%2Fdoc%2Fsupport_info%2FiMX6DQPRM.pdf" rel="nofollow" target="_blank"&gt;http://cache.nxp.com/files/soft_dev_tools/doc/support_info/iMX6DQPRM.pdf&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>Sun, 04 Sep 2016 23:30:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-clk-polarity-issue-IMX6dq/m-p/589404#M88995</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-09-04T23:30:37Z</dc:date>
    </item>
    <item>
      <title>Re:  ECSPI clk polarity issue IMX6dq</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-clk-polarity-issue-IMX6dq/m-p/589405#M88996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks igor for you answer.&lt;BR /&gt;I tried to do the same initialization but if i tried to change the polarity the bit inside the &lt;BR /&gt;configuration register changed but the the idle state of the clk still low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this is my configurations I'm using the SDK driver after little modifications please see the configuration function&amp;nbsp;&lt;BR /&gt;I'm using ecspi instance&amp;nbsp;2&amp;nbsp;&lt;BR /&gt;with param variable :&lt;BR /&gt;.channel = 1.&lt;BR /&gt;.mode = 1&lt;BR /&gt;.ss_pol = 0&lt;BR /&gt;.sclk_pol = 1&lt;BR /&gt;.sclk_pha = 1&lt;BR /&gt;.pre_div = 14&lt;BR /&gt;.post_div = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;nbsp;configuration function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int ecspi_configure(dev_ecspi_e instance, const param_ecspi_t * param)&lt;BR /&gt;{&lt;BR /&gt; // Reset eCSPI controller &lt;BR /&gt; HW_ECSPI_CONREG(instance).B.EN = 0;&lt;BR /&gt; &lt;BR /&gt; // Enable the clock*&lt;BR /&gt; clock_gating_config(REGS_ECSPI_BASE(instance), CLOCK_ON);&lt;BR /&gt; &lt;BR /&gt; //Enable the ECSPI*&lt;BR /&gt; HW_ECSPI_CONREG(instance).B.EN = 1;&lt;BR /&gt; &lt;BR /&gt; // Configure IO signals &lt;BR /&gt; ecspi_iomux_config(instance);&lt;BR /&gt; &lt;BR /&gt; // Setup chip select &lt;BR /&gt; HW_ECSPI_CONREG(instance).B.CHANNEL_SELECT = param-&amp;gt;channel;&lt;/P&gt;&lt;P&gt;// Setup mode &lt;BR /&gt; uint32_t channelMask = 1 &amp;lt;&amp;lt; param-&amp;gt;channel;&lt;BR /&gt; uint32_t value = HW_ECSPI_CONREG(instance).B.CHANNEL_MODE;&lt;BR /&gt; BW_ECSPI_CONREG_CHANNEL_MODE(instance, param-&amp;gt;mode ? (value | channelMask) : (value &amp;amp; ~channelMask));&lt;/P&gt;&lt;P&gt;// Setup pre &amp;amp; post clock divider &lt;BR /&gt; HW_ECSPI_CONREG(instance).B.PRE_DIVIDER = (param-&amp;gt;pre_div == 0) ? 0 : (param-&amp;gt;pre_div - 1);&lt;BR /&gt; HW_ECSPI_CONREG(instance).B.POST_DIVIDER = param-&amp;gt;post_div;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Setup SCLK_PHA, SCLK_POL, SS_POL &lt;BR /&gt; value = HW_ECSPI_CONFIGREG(instance).B.SCLK_PHA;&lt;BR /&gt; HW_ECSPI_CONFIGREG(instance).B.SCLK_PHA = param-&amp;gt;sclk_pha ? (value | channelMask) : (value &amp;amp; ~channelMask);&lt;BR /&gt; &lt;BR /&gt; value = HW_ECSPI_CONFIGREG(instance).B.SCLK_POL;&lt;BR /&gt; HW_ECSPI_CONFIGREG(instance).B.SCLK_POL = param-&amp;gt;sclk_pol ? (value | channelMask) : (value &amp;amp; ~channelMask);&lt;BR /&gt; &lt;BR /&gt; value = HW_ECSPI_CONFIGREG(instance).B.SS_POL;&lt;BR /&gt; HW_ECSPI_CONFIGREG(instance).B.SS_POL = param-&amp;gt;ss_pol ? (value | channelMask) : (value &amp;amp; ~channelMask);&lt;BR /&gt; &lt;BR /&gt; HW_ECSPI_CONFIGREG(instance).B.SS_CTL |= channelMask;&lt;BR /&gt;&lt;BR /&gt; return SUCCESS;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 07:49:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-clk-polarity-issue-IMX6dq/m-p/589405#M88996</guid>
      <dc:creator>khaledali</dc:creator>
      <dc:date>2016-09-05T07:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: ECSPI clk polarity issue IMX6dq</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ECSPI-clk-polarity-issue-IMX6dq/m-p/589406#M88997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks igor&amp;nbsp;&lt;BR /&gt;i have just figure out the problem in the configuration&amp;nbsp;&lt;BR /&gt;in the SCLK_CTL bits in the configuration register&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 08:54:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ECSPI-clk-polarity-issue-IMX6dq/m-p/589406#M88997</guid>
      <dc:creator>khaledali</dc:creator>
      <dc:date>2016-09-05T08:54:12Z</dc:date>
    </item>
  </channel>
</rss>

