<?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: NAND BOOT imx537</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/NAND-BOOT-imx537/m-p/172830#M5943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;do you configure boot mode using GPIO pins or via fuses? If it's via GPIOs, it may be some of them are floating or are driven externally to wrong value at boot time, which causes confusion to boot code.&lt;/P&gt;
&lt;P&gt;br,&lt;/P&gt;
&lt;P&gt;Vladan&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 06:43:12 GMT</pubDate>
    <dc:creator>VladanJovanovic</dc:creator>
    <dc:date>2012-08-09T06:43:12Z</dc:date>
    <item>
      <title>NAND BOOT imx537</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NAND-BOOT-imx537/m-p/172829#M5942</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;&lt;/P&gt;
&lt;P&gt;I've been searching&amp;nbsp; some weeks now why an IMX537 often (but not always)... fails to boot from NAND.&lt;/P&gt;
&lt;P&gt;I tought it was hardware related BUT, today, I finally ended up into the bootloader ivt-tables and code...&lt;/P&gt;
&lt;P&gt;For some reason .. there is some code that seems to fail SOMETIMES (30% if works to boot from nand, 70% it fails)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmp r7, #0xF8000000 &lt;BR /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;bls return_sdp&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When I do remove the above lines from the UBOOT-code .. I'm always able to boot the imx537 form nand.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Anyone out there that can confirm / explain why register (r0 , that is copied to r7) contains bad data when booting from nand (CPU revision 0x21).&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Regards Noel&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;lt; CODE - SNIP &amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/* Here starts the plugin code */&lt;BR /&gt;plugin_start:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* Save the return address and the function arguments */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;push {r0-r6, lr}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* We should distinguish USB recovery mode(SDP mode) and internal boot mode.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If ROM runs in SDP mode, then it needn't load boot code from storage media.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If ROM runs in SDP mode, then r0 must be 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If ROM runs in internal boot mode, then r0 should be larger than IRAM base address. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mov r7, r0&lt;BR /&gt;&lt;BR /&gt;... some code removed....&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adr r0, DDR_DEST_ADDR&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adr r1, COPY_SIZE&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;adr r2, BOOT_DATA&lt;BR /&gt;before_calling_rom___pu_irom_hwcnfg_setup:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;/* We should distinguish USB recovery mode(SDP mode) and internal boot mode.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If ROM runs in SDP mode, then it needn't load boot code from storage media.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If ROM runs in SDP mode, then r0 must be 0x00&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If ROM runs in internal boot mode, then r0 should be larger than IRAM base address. */&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;cmp r7, #0xF8000000 &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;bls return_sdp &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 15:36:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NAND-BOOT-imx537/m-p/172829#M5942</guid>
      <dc:creator>Noel_V</dc:creator>
      <dc:date>2012-07-05T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: NAND BOOT imx537</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/NAND-BOOT-imx537/m-p/172830#M5943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;do you configure boot mode using GPIO pins or via fuses? If it's via GPIOs, it may be some of them are floating or are driven externally to wrong value at boot time, which causes confusion to boot code.&lt;/P&gt;
&lt;P&gt;br,&lt;/P&gt;
&lt;P&gt;Vladan&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 06:43:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/NAND-BOOT-imx537/m-p/172830#M5943</guid>
      <dc:creator>VladanJovanovic</dc:creator>
      <dc:date>2012-08-09T06:43:12Z</dc:date>
    </item>
  </channel>
</rss>

