<?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>MPC5xxx中的主题 Re: How do I always start the code from the Bootloader?</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-always-start-the-code-from-the-Bootloader/m-p/1001848#M15091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is copied from the reference manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99776iB186A533DBF69FDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;That means the RCHW of your bootloader must be at lower address than RCHW of the application. First valid RCHW is always taken.&lt;/P&gt;&lt;P&gt;So, if you place the bootloader at beginning of flash at 0x0 then it will be executed after each reset and then it can call the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2020 12:28:37 GMT</pubDate>
    <dc:creator>lukaszadrapa</dc:creator>
    <dc:date>2020-01-27T12:28:37Z</dc:date>
    <item>
      <title>How do I always start the code from the Bootloader?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-always-start-the-code-from-the-Bootloader/m-p/1001847#M15090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hello,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I am using mpc5644a. I have two different projects: bootloader and user application. I am installing the user application with bootloader. But even if the user application is running, &lt;STRONG&gt;I want the code to start again from the bootloader every time the power is turned off and on&lt;/STRONG&gt;. How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank you for your help...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2020 06:06:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-always-start-the-code-from-the-Bootloader/m-p/1001847#M15090</guid>
      <dc:creator>tgc-yilmaz</dc:creator>
      <dc:date>2020-01-27T06:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I always start the code from the Bootloader?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-always-start-the-code-from-the-Bootloader/m-p/1001848#M15091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is copied from the reference manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99776iB186A533DBF69FDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;That means the RCHW of your bootloader must be at lower address than RCHW of the application. First valid RCHW is always taken.&lt;/P&gt;&lt;P&gt;So, if you place the bootloader at beginning of flash at 0x0 then it will be executed after each reset and then it can call the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2020 12:28:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-always-start-the-code-from-the-Bootloader/m-p/1001848#M15091</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-01-27T12:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I always start the code from the Bootloader?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-always-start-the-code-from-the-Bootloader/m-p/1001849#M15092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank you for your answer...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I set the RCHW address the same in both my projects, can I not do this in the __startup () function? If I can, how can I do this, how should I change the __startup () function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2020 13:37:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-always-start-the-code-from-the-Bootloader/m-p/1001849#M15092</guid>
      <dc:creator>tgc-yilmaz</dc:creator>
      <dc:date>2020-01-27T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I always start the code from the Bootloader?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-do-I-always-start-the-code-from-the-Bootloader/m-p/1001850#M15093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should not use the same RCHW address in both projects. Please read whole section 3 and section 4 in:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN5319.pdf" title="https://www.nxp.com/docs/en/application-note/AN5319.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN5319.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note-software/AN5319SW.zip" title="https://www.nxp.com/docs/en/application-note-software/AN5319SW.zip"&gt;https://www.nxp.com/docs/en/application-note-software/AN5319SW.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This application note is written for MPC5748G but the principles are the same. I also shared draft of app note for MPC56xx devices but it was not finished. If you are interested:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/servlet/JiveServlet/download/427962-1-279359/bootloader.zip"&gt;https://community.nxp.com/servlet/JiveServlet/download/427962-1-279359/bootloader.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 05:54:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-do-I-always-start-the-code-from-the-Bootloader/m-p/1001850#M15093</guid>
      <dc:creator>lukaszadrapa</dc:creator>
      <dc:date>2020-01-28T05:54:33Z</dc:date>
    </item>
  </channel>
</rss>

