<?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: IMX6ULLEVK ECSPI3 loopback doesn't work in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1792914#M219007</link>
    <description>&lt;P&gt;Hello AldoG,&lt;/P&gt;&lt;P&gt;Thanks for your reply!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jakr13_0-1705917812657.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/259405i49516681EA4E7251/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jakr13_0-1705917812657.png" alt="jakr13_0-1705917812657.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I understood from the IMX6ULLEVK schematics of Arduino header J1703 above is&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;1. D0 of J1703 is connected to UART2_RXD (ALT8 is ECSPI3_SCLK)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;2. D1 of J1703 is connected to UART2_TXD (ALT8 is ECSPI3_SS)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;3. D2 of J1703 is connected to UART2_RTS_BB (ALT8 is ECSPI3_MISO)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;4. D3 of J1703 is connected to UART2_CTS_BB (ALT8 is ECSPI3_MOSI)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"&lt;STRONG&gt;UART2_CTS and UART2_RTS are not rooted to the arduino header. UART2_CTS_BB is rooted to UART3_TXD and UART2_RTS_BB to UART3"&lt;/STRONG&gt;.&lt;/EM&gt; --&amp;gt; Please can you explain a little bit more on this? where can I see this information?&lt;/P&gt;&lt;P&gt;Is it possible for you to give me the MUX configuration for ECSPI3 for doing SPI loopback test by connecting D2 and D3 of J1703?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !!!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2024 12:56:21 GMT</pubDate>
    <dc:creator>jakr13</dc:creator>
    <dc:date>2024-01-22T12:56:21Z</dc:date>
    <item>
      <title>IMX6ULLEVK ECSPI3 loopback doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1790346#M218814</link>
      <description>&lt;P&gt;I wanted to perform a SPI loopback test on ECSPI3 of the IMX6ULLEVK board to make sure my devicetree is correct and the SPI is working. I can see the /dev/spidev2.0 and I have shorted the MISO and MOSI on the IMX6ULLEVK's arduino header J1703, and when I run the spidev_test I am not receiving the string which I am sending as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P class="lia-indent-padding-left-30px"&gt;root@xxxx~# spidev_test -D /dev/spidev2.0 -v -p "Hello World"&lt;BR /&gt;spi mode: 0x0&lt;BR /&gt;bits per word: 8&lt;BR /&gt;max speed: 500000 Hz (500 kHz)&lt;BR /&gt;TX | 48 65 6C 6C 6F 20 57 6F 72 6C 64 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |Hello World|&lt;BR /&gt;RX | FF FF FF FF FF FF FF FF FF FF FF __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |...........|&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and my devicetree for the corresponding is below&lt;/P&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;iomuxc&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;pinctrl_ecspi3:&lt;/SPAN&gt; &lt;SPAN&gt;ecspi3grp&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-120px"&gt;&lt;SPAN&gt;fsl,pins&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-150px"&gt;&lt;SPAN&gt;MX6UL_PAD_UART2_RTS_B__ECSPI3_MISO&lt;/SPAN&gt; &lt;SPAN&gt;0x100b1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-150px"&gt;&lt;SPAN&gt;MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI&lt;/SPAN&gt; &lt;SPAN&gt;0x100b1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-150px"&gt;&lt;SPAN&gt;MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK&lt;/SPAN&gt; &lt;SPAN&gt;0x100b1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-150px"&gt;&lt;SPAN&gt;MX6UL_PAD_UART2_TX_DATA__ECSPI3_SS0&lt;/SPAN&gt; &lt;SPAN&gt;0x100b1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-120px"&gt;&lt;SPAN&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;ecspi3&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;pinctrl-names&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"default"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;pinctrl-0&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;pinctrl_ecspi3&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;status&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"okay"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;fsl,spi-num-chipselects&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;spidev&lt;/SPAN&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-120px"&gt;&lt;SPAN&gt;reg&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-120px"&gt;&lt;SPAN&gt;compatible&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"rohm,dh2228fv"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-120px"&gt;&lt;SPAN&gt;spi-max-frequency&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;20000000&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-90px"&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;P&gt;when I generate the iomux value for the ecspi3 using the nxpconfig tool, the values were&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;EM&gt;MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI &lt;STRONG&gt;0x000010B0&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MX6UL_PAD_UART2_RTS_B__ECSPI3_MISO &lt;STRONG&gt;0x000010B0&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK &lt;STRONG&gt;0x000010B0&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MX6UL_PAD_UART2_TX_DATA__ECSPI3_SS0 &lt;STRONG&gt;0x000010B0&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tried changing to the PAD values to &lt;STRONG&gt;0x000010B0&lt;/STRONG&gt;, still FF FF FF on the loopback test. Can someone lead me whether something is wrong or missing?&lt;/P&gt;&lt;P&gt;Info: Using linux-imx 5.15.71 kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 15:22:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1790346#M218814</guid>
      <dc:creator>jakr13</dc:creator>
      <dc:date>2024-01-19T15:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6ULLEVK ECSPI3 loopback doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1792237#M218945</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Please note that UART2_CTS and UART2_RTS are not rooted to the arduino header.&lt;BR /&gt;&lt;BR /&gt;UART2_CTS_BB is rooted to UART3_TXD and UART2_RTS_BB to UART3_RXD, so your device tree is not muxed correctly.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 19:11:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1792237#M218945</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2024-01-19T19:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6ULLEVK ECSPI3 loopback doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1792914#M219007</link>
      <description>&lt;P&gt;Hello AldoG,&lt;/P&gt;&lt;P&gt;Thanks for your reply!!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jakr13_0-1705917812657.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/259405i49516681EA4E7251/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jakr13_0-1705917812657.png" alt="jakr13_0-1705917812657.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I understood from the IMX6ULLEVK schematics of Arduino header J1703 above is&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;1. D0 of J1703 is connected to UART2_RXD (ALT8 is ECSPI3_SCLK)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;2. D1 of J1703 is connected to UART2_TXD (ALT8 is ECSPI3_SS)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;3. D2 of J1703 is connected to UART2_RTS_BB (ALT8 is ECSPI3_MISO)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;4. D3 of J1703 is connected to UART2_CTS_BB (ALT8 is ECSPI3_MOSI)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"&lt;STRONG&gt;UART2_CTS and UART2_RTS are not rooted to the arduino header. UART2_CTS_BB is rooted to UART3_TXD and UART2_RTS_BB to UART3"&lt;/STRONG&gt;.&lt;/EM&gt; --&amp;gt; Please can you explain a little bit more on this? where can I see this information?&lt;/P&gt;&lt;P&gt;Is it possible for you to give me the MUX configuration for ECSPI3 for doing SPI loopback test by connecting D2 and D3 of J1703?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !!!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 12:56:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1792914#M219007</guid>
      <dc:creator>jakr13</dc:creator>
      <dc:date>2024-01-22T12:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6ULLEVK ECSPI3 loopback doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1793214#M219031</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;As I said before, please note that UART2_CTS =/= UART2_CTS_BB, I don't know if this is documented, because UART2_CTS_BB is not an actual mux, UART2_CTS is, it's just a name conveniently used when designing the base board.&lt;BR /&gt;&lt;BR /&gt;You'll need to pay close attention to the actual pins and the muxed option, please take a look to the schematic SODIMM 200 connector:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AldoG_0-1705954952979.png" style="width: 700px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/259472i270DB1A7D11BEDB9/image-dimensions/700x126?v=v2" width="700" height="126" role="button" title="AldoG_0-1705954952979.png" alt="AldoG_0-1705954952979.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Also, I believe that using ECSPI3 on the EVK may be difficult since all its muxing options are already on use, if you wish to test ECSPI I would recommend using ECSPI4 instead and populate the 0ohm resistors.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AldoG_1-1705955086683.png" style="width: 688px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/259473i3335CBE8FF8F837E/image-dimensions/688x349?v=v2" width="688" height="349" role="button" title="AldoG_1-1705955086683.png" alt="AldoG_1-1705955086683.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 20:26:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1793214#M219031</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2024-01-22T20:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6ULLEVK ECSPI3 loopback doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1796069#M219245</link>
      <description>&lt;P&gt;Hello AldoG,&lt;/P&gt;&lt;P&gt;Thank you for the clear explanation and I misinterpreted the schematics.&lt;/P&gt;&lt;P&gt;I made the spi loopback test to work after switching from ecspi3 to ecspi4 also with removal of 0ohm resistors on R1633, R1634, R1635, R1636 and mounting them on R1724, R1725, R1726, R1727.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 12:48:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6ULLEVK-ECSPI3-loopback-doesn-t-work/m-p/1796069#M219245</guid>
      <dc:creator>jakr13</dc:creator>
      <dc:date>2024-01-26T12:48:27Z</dc:date>
    </item>
  </channel>
</rss>

