<?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: Anyone used the 'sf' command in more recent versions of u-boot? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226274#M16143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio/Otavio,&lt;/P&gt;&lt;P&gt;Thanks for the responses.&amp;nbsp; I apologize for some of the poorly formatted replies above.&amp;nbsp; For some reason I was unable to access this site via HTTP, so I replied to the email directly.&lt;/P&gt;&lt;P&gt;Anyway, things are back now, and I think I finally understand the issue.&amp;nbsp; Otavio, note that I had tried running with the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;u-boot-2013.04 and found that I had the same issues as with the mainline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The following comments are based on using the u-boot-2013.04 tar ball...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;After looking and digging for a few days, I believe I understand why it was not working for me...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LONG STORY (skip to SHORT STORY if not interested):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I had this working in Micromonitor and the uboot-2009.08, so I knew the hardware was good. The update to u-boot-2013.04 is where it broke for me. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;After studying the new SPI control code (uboot-2013.04 is significantly different than uboot-2009.08 from LTIB), I believe the problem is that the new code only works if the SPI chip select is driven by GPIO.&amp;nbsp; If the chip select is driven by the ECSPI controller directly, then things break (IMHO).&amp;nbsp; This is what I was doing, and I have now changed over to running the SPI-CS line with GPIO and things are working.&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So, I can't absolutely confirm this to be true, but a&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;s far as I can tell, the SPI code in uboot for iMX6/ECSPI controller does not work when ECSPI controls CS for devices that require the CS to remain low for the entire READ_DEVICE_ID protocol (write-command, read-id block).&amp;nbsp; The toggling of CS for this transaction did not allow me to retrieve the AT25DF321 device ID.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SHORT STORY:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I was trying to use the ECSPI-controlled chip select to my SPI flash. &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I changed the code so that the chip select line is controlled through GPIO and things now work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its possible that I just had something wrong in my pin configuration when I was running in ECSPI-controlled CS; so if someone else has successfully used this interface in that mode with this code I'd like to know that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions, I think this is finally resolved for me,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2013 20:59:21 GMT</pubDate>
    <dc:creator>EdSutter</dc:creator>
    <dc:date>2013-10-30T20:59:21Z</dc:date>
    <item>
      <title>Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226266#M16135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the sf command in the u-boot that comes with LTIB, but have since updated to u-boot-2013.10.&lt;/P&gt;&lt;P&gt;The code is quite different, and now the 'sf' command and the ability to configure SPI-flash as the&lt;/P&gt;&lt;P&gt;environment space doesn't work for me. &lt;/P&gt;&lt;P&gt;Before I start digging too deep, it would be nice to know if anyone else has used the "sf" command&lt;/P&gt;&lt;P&gt;(or set up SPI-flash as the environment storage area) on SABRESD for a recent u-boot version.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 11:48:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226266#M16135</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-10-23T11:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226267#M16136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ed Sutter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I ever used u-boot imx_v2013.04, the 'sf' command was working just fine, but the setup of SPI-flash as environment was broken due to wrong setting of sector size, now we already had a patch to fix it in our internal tree, 3328e2b9d8a74f7348a959650cfbad4e63b8eed6. Not sure whether you can see this patch from external git, but 'sf' command did work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 08:40:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226267#M16136</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2013-10-28T08:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226268#M16137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I'll back off to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;u-boot-2013.&lt;/SPAN&gt;04 and see if I have similar results.&lt;/P&gt;&lt;P&gt;Will post results shortly.&amp;nbsp; Thanks much,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 14:52:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226268#M16137</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-10-29T14:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226269#M16138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried the same with u-boot-2013.04 (from denx ftp).&lt;/P&gt;&lt;P&gt;I'm seeing the same issue.&amp;nbsp; The probe fails because the ID always reads back as 0xff.&lt;/P&gt;&lt;P&gt;I've verified that pins are configured properly, and I see on the scope that 0x9F (CMD_READ_ID_)&lt;/P&gt;&lt;P&gt;is written, but there's no response unless I change the code so that the function spi_xchg_single()&lt;/P&gt;&lt;P&gt;only accesses the SPI data fifo with a bitcount of 32.&lt;/P&gt;&lt;P&gt;Did you have to modify any of the underlying SPI controller code (beyond just changing the sector size)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I assume when you refer to "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;imx_v2013.04&lt;/SPAN&gt;" you're talking about the u-boot-2013.04 from denx ftp site right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 14:36:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226269#M16138</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-10-30T14:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226270#M16139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just tested 2013.10 on a mx6qsabrelite board:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U-Boot &amp;gt; sf probe&lt;/P&gt;&lt;P&gt;SF: Detected SST25VF016B with page size 256 Bytes, erase size 4 KiB, total 2 MiB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mx6qsabresd does not have the SPI NOR flash support on 2013.10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be simple to add it though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share the patch you are using in order to add SPI support for mx6qsabresd at the U-boot list so that we can help you from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 16:49:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226270#M16139</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-10-30T16:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226271#M16140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;Thanks for responding.  This is kicking my butt...&lt;/P&gt;&lt;P&gt;I've written the driver code for this interface in my own boot monitor&lt;/P&gt;&lt;P&gt;and I also had it working in the LTIB-uboot distribution (quite old); so &lt;/P&gt;&lt;P&gt;I &lt;STRONG&gt;think&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I understand the interface.  This tells me that my hardware is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently updated kernel and uboot, and now uboot doesn't work with&lt;/P&gt;&lt;P&gt;the same SPI flash device and I see that the underlying SPI interface &lt;/P&gt;&lt;P&gt;code has&lt;/P&gt;&lt;P&gt;changed (since 2009 version) significantly.  I'm using an ATMEL part, &lt;/P&gt;&lt;P&gt;but the&lt;/P&gt;&lt;P&gt;error occurs before and device specific code is even used (the &lt;/P&gt;&lt;P&gt;CMD_ID_READ in&lt;/P&gt;&lt;P&gt;the probe fails).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the control lines on a scope and I see the 9F (CMD_ID_READ) &lt;/P&gt;&lt;P&gt;issued to the&lt;/P&gt;&lt;P&gt;device with CS low; however, the only way I can get it to respond with &lt;/P&gt;&lt;P&gt;something other&lt;/P&gt;&lt;P&gt;than FF's is if I seriosly hack the spi_xchg_single() function. With &lt;/P&gt;&lt;P&gt;this hack, I can see&lt;/P&gt;&lt;P&gt;the device send back the ID.   This at least tells me that I have the &lt;/P&gt;&lt;P&gt;IOMUX stuff set up&lt;/P&gt;&lt;P&gt;right (plus, as I said, I got this working in the 2009 version of uboot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, could you do me a big favor and build your u-boot with...&lt;/P&gt;&lt;P&gt;#define debug printf&lt;/P&gt;&lt;P&gt;put at the top of ...&lt;/P&gt;&lt;P&gt;drivers/spi/mxc_spi.c&lt;/P&gt;&lt;P&gt;and then run your sf probe command and send me that output?&lt;/P&gt;&lt;P&gt;That may help me see where my problem lies?&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;BTW... I'm emailing because for some reason I can't get to the community &lt;/P&gt;&lt;P&gt;website right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;  Freescale Community &amp;lt;https://community.freescale.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;    Anyone used the 'sf' command in more recent versions of u-boot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Fabio Estevam &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/people/FabioEstevam?et=watches.email.thread&amp;gt; &lt;/P&gt;&lt;P&gt;in /i.MX Community/ - View the full discussion &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/message/359521?et=watches.email.thread#359521&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 17:08:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226271#M16140</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-10-30T17:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226272#M16141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;One other quick question...&lt;/P&gt;&lt;P&gt;I'm running with the raw u-boot-2013.10 from &lt;/P&gt;&lt;P&gt;&lt;A href="http://ftp.denx.de/pub/u-boot/u-boot-2013.10.tar.bz2" target="test_blank"&gt;http://ftp.denx.de/pub/u-boot/u-boot-2013.10.tar.bz2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Are there any patches that need to be applied to that?&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;  Freescale Community &amp;lt;https://community.freescale.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;    Anyone used the 'sf' command in more recent versions of u-boot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Fabio Estevam &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/people/FabioEstevam?et=watches.email.thread&amp;gt; &lt;/P&gt;&lt;P&gt;in /i.MX Community/ - View the full discussion &lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/message/359521?et=watches.email.thread#359521&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 17:41:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226272#M16141</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-10-30T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226273#M16142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From Fabio's comment (and code inspection) it seems the support has not been send to U-Boot mainline yet. It is easy to port&amp;nbsp; from U-Boot i.MX 2013.04 to mainline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first patch adding support for it, in Freescale tree, was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit/?h=imx_v2013.04_3.10.9_1.0.0_alpha&amp;amp;id=20f5f1f8f166731f3cfc9f1e6e24e732ccacfa97" title="http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/commit/?h=imx_v2013.04_3.10.9_1.0.0_alpha&amp;amp;id=20f5f1f8f166731f3cfc9f1e6e24e732ccacfa97"&gt;uboot-imx.git - Freescale i.MX u-boot Tree&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can port it to U-Boot 2013.10 and send the patch to U-Boot mailing list.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 19:18:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226273#M16142</guid>
      <dc:creator>OtavioSalvador</dc:creator>
      <dc:date>2013-10-30T19:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226274#M16143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio/Otavio,&lt;/P&gt;&lt;P&gt;Thanks for the responses.&amp;nbsp; I apologize for some of the poorly formatted replies above.&amp;nbsp; For some reason I was unable to access this site via HTTP, so I replied to the email directly.&lt;/P&gt;&lt;P&gt;Anyway, things are back now, and I think I finally understand the issue.&amp;nbsp; Otavio, note that I had tried running with the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;u-boot-2013.04 and found that I had the same issues as with the mainline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The following comments are based on using the u-boot-2013.04 tar ball...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;After looking and digging for a few days, I believe I understand why it was not working for me...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LONG STORY (skip to SHORT STORY if not interested):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I had this working in Micromonitor and the uboot-2009.08, so I knew the hardware was good. The update to u-boot-2013.04 is where it broke for me. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;After studying the new SPI control code (uboot-2013.04 is significantly different than uboot-2009.08 from LTIB), I believe the problem is that the new code only works if the SPI chip select is driven by GPIO.&amp;nbsp; If the chip select is driven by the ECSPI controller directly, then things break (IMHO).&amp;nbsp; This is what I was doing, and I have now changed over to running the SPI-CS line with GPIO and things are working.&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So, I can't absolutely confirm this to be true, but a&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;s far as I can tell, the SPI code in uboot for iMX6/ECSPI controller does not work when ECSPI controls CS for devices that require the CS to remain low for the entire READ_DEVICE_ID protocol (write-command, read-id block).&amp;nbsp; The toggling of CS for this transaction did not allow me to retrieve the AT25DF321 device ID.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SHORT STORY:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I was trying to use the ECSPI-controlled chip select to my SPI flash. &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I changed the code so that the chip select line is controlled through GPIO and things now work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its possible that I just had something wrong in my pin configuration when I was running in ECSPI-controlled CS; so if someone else has successfully used this interface in that mode with this code I'd like to know that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions, I think this is finally resolved for me,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 20:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226274#M16143</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-10-30T20:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226275#M16144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just sent a patch adsing SPI NOR flash support for mx6sabresd:&lt;/P&gt;&lt;P&gt;&lt;A href="http://marc.info/?l=u-boot&amp;amp;m=138393491401050&amp;amp;w=2" title="http://marc.info/?l=u-boot&amp;amp;m=138393491401050&amp;amp;w=2"&gt;http://marc.info/?l=u-boot&amp;amp;m=138393491401050&amp;amp;w=2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 18:36:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226275#M16144</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-11-08T18:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226276#M16145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;Great!&amp;nbsp; This is essentially the same thing I did in my local copy; but in my case I had to use a device that would connect to ECSPI5 so that I could use is as the boot device (U14 cannot boot the iMX6 as is).&amp;nbsp; I didn't submit the patch because the wiring we did required that the ACCL_INT_IN pin of the accelerometer be lifted to avoid outputs conflicting.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 19:11:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226276#M16145</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-11-08T19:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226277#M16146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;Note also, that I still think the u-boot code does not properly support the ability to use the ECSPI controller to activate the chip select.&amp;nbsp; That's ok, but still worth noting because I wasted a few days because of that (I was trying to use the CS as controlled through ECSPI instead of GPIO).&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 19:13:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226277#M16146</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2013-11-08T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226278#M16147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm also not getting an active chip select on eCSPI3 for an i.MX6Solo-based board, stalling the initial transfer.&amp;nbsp; Is this GPIO technique a workaround for an errata?&amp;nbsp; That is, I'd prefer to use the controller for CS, but sounds like this was not working for the OP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 20:48:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226278#M16147</guid>
      <dc:creator>artyeffem</dc:creator>
      <dc:date>2014-02-10T20:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone used the 'sf' command in more recent versions of u-boot?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226279#M16148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't think this is any chip-errata workaround.&amp;nbsp; I had been using ECSPI to control the chip select in Micromonitor and it worked just fine.&amp;nbsp; As far as I can tell, this is just the way it is implemented in u-boot.&amp;nbsp; I may have something configured incorrectly that causes this but I don't think so.&amp;nbsp; Observing the code, it appears to really only work if the CS pin is GPIO-driven instead of ECSPI-driven.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 21:07:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Anyone-used-the-sf-command-in-more-recent-versions-of-u-boot/m-p/226279#M16148</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-02-10T21:07:36Z</dc:date>
    </item>
  </channel>
</rss>

