<?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: Question about mpc85xx(P2040) startup using Nor Flash in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299944#M1063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alexander.yakovlev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Each core begins execution with the instruction at effective address 0x0_FFFF_FFFC.&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;What is the real address of 0x0_FFFF_FFFC translated by MMU? Does it pointed to u-boot&lt;/P&gt;&lt;P&gt;in Nor Flash? What's the Nor Flash mapping at system reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 07:34:09 GMT</pubDate>
    <dc:creator>jiaguo</dc:creator>
    <dc:date>2014-03-20T07:34:09Z</dc:date>
    <item>
      <title>Question about mpc85xx(P2040) startup using Nor Flash</title>
      <link>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299940#M1059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;I'm porting u-boot to P2040 based board these days.&lt;BR /&gt;&lt;BR /&gt;As u-boot/arch/powerpc/mpc85xx/start.s commented:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;EM&gt;The processor starts at 0xffff_fffc and the code is first executed in the last 4K page in flash/rom.&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;In u-boot/arch/powerpc/mpc85xx/resetvec.S:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;EM&gt;.section .resetvec,"ax"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;EM&gt;b _start_e500&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;And in u-boot.lds linker script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;EM style="font-family: verdana, sans-serif;"&gt;.resetvec RESET_VECTOR_ADDRESS :&lt;/EM&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;EM style="font-family: verdana, sans-serif;"&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;EM style="font-family: verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEEP(*(.resetvec))&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;EM&gt;} :text = 0xffff&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;The E500MCRM Chapter 6.6 mentioned:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;EM&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;This default TLB entry translates the first instruction fetch out of reset(at effective address 0xffff_fffc).&lt;/SPAN&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;EM&gt;This instruction should be a branch to the beginning of this page.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;So, if I configure the HCW to let powerpc boot from Nor Flash, &lt;STRONG&gt;why should I suppose that the Nor Flash's&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-size: small;"&gt;&lt;SPAN style="font-family: verdana, sans-serif;"&gt;&lt;STRONG&gt;last 4K is mapped to 0xffff_f000~0xffff_ffff?&lt;/STRONG&gt;&lt;/SPAN&gt; Since there're no LAW setup yet and the default BR0/OR0 of Local Bus&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-size: small;"&gt;does not match that range. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-size: small;"&gt;Best Regards,&lt;/P&gt;&lt;P class="gmail_default" style="color: #222222; font-size: small;"&gt;Hook Guo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 00:26:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299940#M1059</guid>
      <dc:creator>jiaguo</dc:creator>
      <dc:date>2014-03-20T00:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Question about mpc85xx(P2040) startup using Nor Flash</title>
      <link>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299941#M1060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the P2040RM, chapter 2.1, regarding “boot window”. Also check the note in 2.3.1 and the end of 2.3.5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 06:27:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299941#M1060</guid>
      <dc:creator>hwrobel</dc:creator>
      <dc:date>2014-03-20T06:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Question about mpc85xx(P2040) startup using Nor Flash</title>
      <link>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299942#M1061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;P2040 Refernce Manual, Section 4.3.3 "Boot Page Translation":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When each core comes out of reset, its MMU has one 4 KB page defined at&lt;/P&gt;&lt;P&gt;0x0_FFFF_Fnnn. Each core begins execution with the instruction at effective address&lt;/P&gt;&lt;P&gt;0x0_FFFF_FFFC. To get this instruction, the core's first instruction fetch is a burst read&lt;/P&gt;&lt;P&gt;of boot code from effective address 0x0_FFFF_FFE0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 06:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299942#M1061</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2014-03-20T06:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Question about mpc85xx(P2040) startup using Nor Flash</title>
      <link>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299943#M1062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heinz,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background-color: #fafafa;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background-color: #fafafa;"&gt;The P2040RM says: The 8 Mbytes boot window is valid at core start up, and it's from 0xffc0_0000 to 0xffff_ffff. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background-color: #fafafa;"&gt;But why should I suppose that range is Nor Flash? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background-color: #fafafa;"&gt;Why is the .bootpg section located at the LAST page, which is mapped by MMU L2 TLB1 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background-color: #fafafa;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14px; background-color: #fafafa; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"&gt;Another question is: Does P2040 always have MMU enabled so as to translate 32-bit effective address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14px; background-color: #fafafa; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"&gt; to 36-bit real address even at u-boot stage? If so, beside accessing to CCSRBAR, all other address&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14px; background-color: #fafafa; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;"&gt;access should have TLB entry setup first.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 07:20:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299943#M1062</guid>
      <dc:creator>jiaguo</dc:creator>
      <dc:date>2014-03-20T07:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Question about mpc85xx(P2040) startup using Nor Flash</title>
      <link>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299944#M1063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alexander.yakovlev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Each core begins execution with the instruction at effective address 0x0_FFFF_FFFC.&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;What is the real address of 0x0_FFFF_FFFC translated by MMU? Does it pointed to u-boot&lt;/P&gt;&lt;P&gt;in Nor Flash? What's the Nor Flash mapping at system reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 07:34:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299944#M1063</guid>
      <dc:creator>jiaguo</dc:creator>
      <dc:date>2014-03-20T07:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Question about mpc85xx(P2040) startup using Nor Flash</title>
      <link>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299945#M1064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alexander.yakovlev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ I think I'm nearly get the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When RCW set eLBC GPCM Nor Flash 16-bit as booting ROM, the Boot Window is pointed to eLBC, and processor starts at 0xFFFF_FFFC (which falls into the Boot Window), the real address is mapped to last 2 words of Nor Flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As P2040RM 13.4.2 mentioned:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On system reset, a global chip-select is available that provides a boot ROM chip-select LCS0_B prior to the system being fully configured.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last 2 words of Nor Flash is a branch instruction to _start_e500, which is at the start of .bootpg. Codes in .bootpg section setup more TLB entry to make reset of u-boot code take effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more question:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;When each core comes out of reset, its MMU has one 4 KB page defined at&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0x0_FFFF_Fnnn. Each core begins execution with the instruction at effective address&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0x0_FFFF_FFFC. To get this instruction, the core's first instruction fetch is a burst read&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;of boot code from effective address 0x0_FFFF_FFE0.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ~~~~~~~~~~~~&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Why is 0x0_FFFF_FFE0? Please forgive my ignorance.:smileyblush:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Hook Guo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 13:53:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299945#M1064</guid>
      <dc:creator>jiaguo</dc:creator>
      <dc:date>2014-03-20T13:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Question about mpc85xx(P2040) startup using Nor Flash</title>
      <link>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299946#M1065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because of burst size. One burst transaction fetches all instructions from 0x0_FFFF_FFE0 to 0x0_FFFF_FFFF&lt;/P&gt;&lt;P&gt;&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>Tue, 25 Mar 2014 06:15:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Question-about-mpc85xx-P2040-startup-using-Nor-Flash/m-p/299946#M1065</guid>
      <dc:creator>alexander_yakov</dc:creator>
      <dc:date>2014-03-25T06:15:55Z</dc:date>
    </item>
  </channel>
</rss>

