<?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>MCU BootloaderのトピックRe: How does the ROM bootloader find the entry point to my code?</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/How-does-the-ROM-bootloader-find-the-entry-point-to-my-code/m-p/711893#M581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition, If you want to relocate your application to other place (for example: 0x1000), you should at least copy the first 8 bytes data of your application binary to 0x0 - 0x7, so CPU can get correct SP, PC after&amp;nbsp;reset&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Dec 2017 03:23:58 GMT</pubDate>
    <dc:creator>jay_heng</dc:creator>
    <dc:date>2017-12-25T03:23:58Z</dc:date>
    <item>
      <title>How does the ROM bootloader find the entry point to my code?</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/How-does-the-ROM-bootloader-find-the-entry-point-to-my-code/m-p/711891#M579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per a previous question (&lt;A _jive_internal="true" href="https://community.nxp.com/thread/460715"&gt;How to get blhost to talk to ROM bootloader on the FRDM-KL27Z?&lt;/A&gt;), I've set up the flash_config area on my KL27Z code to call into the bootloader at startup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a short delay, if I have not invoked blhost, the ROM bootloader times out and calls into my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I&amp;nbsp;have NOT created a Bootloader Configuration Area (BCA), how does the ROM bootloader discover the entry point for my application?&amp;nbsp; Is it hardwired to jump to 0x410?&amp;nbsp; (I'm asking because I plan to relocate my application to a non-standard place, and so I need to understand the linkage mechanism.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 11:18:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/How-does-the-ROM-bootloader-find-the-entry-point-to-my-code/m-p/711891#M579</guid>
      <dc:creator>robertpoor</dc:creator>
      <dc:date>2017-09-22T11:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How does the ROM bootloader find the entry point to my code?</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/How-does-the-ROM-bootloader-find-the-entry-point-to-my-code/m-p/711892#M580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I'm an expert at answering my own question: the ROM bootloader finds the entry point for my code at in the reset vector at address 0.&amp;nbsp; I was confused because I saw this in memory:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;00000000: 00300020&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;00000004: 49060000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;and forgot that this is stored as big-endian, so the correct interpretation is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;sp = 0x20003000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;pc = 0x00000649&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;... and sure enough, it turns out that 0x0649 is the Reset_Handler for my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 11:27:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/How-does-the-ROM-bootloader-find-the-entry-point-to-my-code/m-p/711892#M580</guid>
      <dc:creator>robertpoor</dc:creator>
      <dc:date>2017-09-22T11:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How does the ROM bootloader find the entry point to my code?</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/How-does-the-ROM-bootloader-find-the-entry-point-to-my-code/m-p/711893#M581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition, If you want to relocate your application to other place (for example: 0x1000), you should at least copy the first 8 bytes data of your application binary to 0x0 - 0x7, so CPU can get correct SP, PC after&amp;nbsp;reset&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Dec 2017 03:23:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/How-does-the-ROM-bootloader-find-the-entry-point-to-my-code/m-p/711893#M581</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2017-12-25T03:23:58Z</dc:date>
    </item>
  </channel>
</rss>

