<?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のトピックCan't Touch GPIOs in System Boot DCD?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-Touch-GPIOs-in-System-Boot-DCD/m-p/319501#M42540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to diagnose why a board does not appear to be launching U-Boot like all its siblings (turn it on, it just sits there, no activity anywhere).&amp;nbsp; To that end, I got the brainwave of raising a GPIO signal to turn on a LED on the board.&amp;nbsp; This way, even if nothing else worked, if the LED turned on, I'd know that the boot ROM was loading the U-Boot image and trying to do something with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To that end, I added the following entries to our board's Device Configuration Data (DCD) block in the U-Boot .cfg file, which is processed very early by the boot ROM (i.MX6DL register map):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14051120306667478" jivemacro_uid="_14051120306667478" modifiedtitle="true"&gt;
&lt;P&gt;/*&amp;nbsp; Try and turn on the LED attached to GPIO_2&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; Configure mux GPIO02 to output GPIO1_IO02&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;DATA 4, 0x020E0224, 0x00000005&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; Configure pad GPIO02 to no pullup, no keep, CMOS output, 50MHz, HI-Z, slow slew.&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;DATA 4, 0x020E05f4, 0x00000040&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; Configure GPIO1_IO2 as output.&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;DATA 4, 0x0209C004, 0x00000004&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; Set GPIO1_IO02 as high&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;DATA 4, 0x0209C000, 0x00000004&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then wrote the modified U-Boot to an SD card, put it into a known-working board, turned it on...&amp;nbsp; And it hung.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a process of elimination, I discovered that the writes to the GPIO registers were causing the hang (writes to 0x0209C000 and 0x0209C004).&amp;nbsp; If either of those entries is present, the system just lies there.&amp;nbsp; If I remove both of those entries, then the system boots normally.&amp;nbsp; (The writes to the IOMUX registers appear to be successful.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suspicion is that the GPIO block hasn't been enabled.&amp;nbsp; However, I can't find any evidence that it needs to be; U-Boot makes no special effort to turn it on.&amp;nbsp; GPIO is driven by ipg_clk_s, which is driven by ipg_clk_root.&amp;nbsp; This &lt;EM&gt;seems&lt;/EM&gt; to be running all the time, but the clock tree is very complicated, and I haven't been able to tease it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might I be missing?&amp;nbsp; I have this awful feeling it's something that should be obvious...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 21:12:52 GMT</pubDate>
    <dc:creator>leoschwab</dc:creator>
    <dc:date>2014-07-11T21:12:52Z</dc:date>
    <item>
      <title>Can't Touch GPIOs in System Boot DCD?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-Touch-GPIOs-in-System-Boot-DCD/m-p/319501#M42540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to diagnose why a board does not appear to be launching U-Boot like all its siblings (turn it on, it just sits there, no activity anywhere).&amp;nbsp; To that end, I got the brainwave of raising a GPIO signal to turn on a LED on the board.&amp;nbsp; This way, even if nothing else worked, if the LED turned on, I'd know that the boot ROM was loading the U-Boot image and trying to do something with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To that end, I added the following entries to our board's Device Configuration Data (DCD) block in the U-Boot .cfg file, which is processed very early by the boot ROM (i.MX6DL register map):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14051120306667478" jivemacro_uid="_14051120306667478" modifiedtitle="true"&gt;
&lt;P&gt;/*&amp;nbsp; Try and turn on the LED attached to GPIO_2&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; Configure mux GPIO02 to output GPIO1_IO02&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;DATA 4, 0x020E0224, 0x00000005&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; Configure pad GPIO02 to no pullup, no keep, CMOS output, 50MHz, HI-Z, slow slew.&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;DATA 4, 0x020E05f4, 0x00000040&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; Configure GPIO1_IO2 as output.&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;DATA 4, 0x0209C004, 0x00000004&lt;/P&gt;
&lt;P&gt;/*&amp;nbsp; Set GPIO1_IO02 as high&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;DATA 4, 0x0209C000, 0x00000004&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then wrote the modified U-Boot to an SD card, put it into a known-working board, turned it on...&amp;nbsp; And it hung.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a process of elimination, I discovered that the writes to the GPIO registers were causing the hang (writes to 0x0209C000 and 0x0209C004).&amp;nbsp; If either of those entries is present, the system just lies there.&amp;nbsp; If I remove both of those entries, then the system boots normally.&amp;nbsp; (The writes to the IOMUX registers appear to be successful.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suspicion is that the GPIO block hasn't been enabled.&amp;nbsp; However, I can't find any evidence that it needs to be; U-Boot makes no special effort to turn it on.&amp;nbsp; GPIO is driven by ipg_clk_s, which is driven by ipg_clk_root.&amp;nbsp; This &lt;EM&gt;seems&lt;/EM&gt; to be running all the time, but the clock tree is very complicated, and I haven't been able to tease it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might I be missing?&amp;nbsp; I have this awful feeling it's something that should be obvious...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 21:12:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-Touch-GPIOs-in-System-Boot-DCD/m-p/319501#M42540</guid>
      <dc:creator>leoschwab</dc:creator>
      <dc:date>2014-07-11T21:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Touch GPIOs in System Boot DCD?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-Touch-GPIOs-in-System-Boot-DCD/m-p/319502#M42541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in DCD one can access to limited number of modules&lt;/P&gt;&lt;P&gt;as mentioned in sect.Table 8-35 "Valid DCD Address Ranges"&lt;/P&gt;&lt;P&gt;i.MX6DQ Reference Manual (rev.1&amp;nbsp; 4/2013). GPIO is not valid address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;chip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 13:18:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-Touch-GPIOs-in-System-Boot-DCD/m-p/319502#M42541</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-07-12T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Touch GPIOs in System Boot DCD?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-t-Touch-GPIOs-in-System-Boot-DCD/m-p/319503#M42542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;*sigh*&lt;/EM&gt;&amp;nbsp; Yup, that's pretty straightforward.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 18:52:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-t-Touch-GPIOs-in-System-Boot-DCD/m-p/319503#M42542</guid>
      <dc:creator>leoschwab</dc:creator>
      <dc:date>2014-07-14T18:52:19Z</dc:date>
    </item>
  </channel>
</rss>

