<?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>MCUXpresso IDEのトピックRe: Relocating Program Flash</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Relocating-Program-Flash/m-p/706845#M925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;1. "main() function SCB-&amp;gt;VTOR = 0X1000; ", does the main() from bootloader project or application ?&lt;/P&gt;&lt;P&gt;2. About&amp;nbsp; Relocating , you can have a look at &lt;A href="https://community.nxp.com/docs/DOC-335283"&gt;Relocating Code and Data Using the MCUXpresso IDE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Please pay attention , the project run from bootloader(0x0000), then jump to APP(0x10000) through SCB-&amp;gt;VTOR = 0x1000;&lt;/P&gt;&lt;P&gt;If still have question about this, please share your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 17 Oct 2017 09:11:51 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2017-10-17T09:11:51Z</dc:date>
    <item>
      <title>Relocating Program Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Relocating-Program-Flash/m-p/706844#M924</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;We are using MCUXpresso and the SDK with the FRDM_K66 board and would like to install a custom bootloader at address 0x0 in Program Flash.&amp;nbsp; To do this we have to move program flash and that means we have to deal with the application vector table being in a new location. This was discussed in another thread&amp;nbsp; concerning relocating the vector table and I also wonder why the vector table is not found by default in relation to the base of Program Flash.&amp;nbsp; But more important for us right now is that we are unable to get the debugger to execute our application.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;We have done the following:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;1. Change program flash to start at 0x1000 and changed length to 0x1ff000&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;2. Add a statement at beginning of main() function SCB-&amp;gt;VTOR = 0x1000;&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;The compile works fine, but execution ends with 'No source available for "__sys_appexit() at 0x69e0"'&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Have we attempted something obviously wrong here or is more information needed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:59:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Relocating-Program-Flash/m-p/706844#M924</guid>
      <dc:creator>jeremyanderson</dc:creator>
      <dc:date>2017-10-16T13:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Relocating Program Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Relocating-Program-Flash/m-p/706845#M925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;1. "main() function SCB-&amp;gt;VTOR = 0X1000; ", does the main() from bootloader project or application ?&lt;/P&gt;&lt;P&gt;2. About&amp;nbsp; Relocating , you can have a look at &lt;A href="https://community.nxp.com/docs/DOC-335283"&gt;Relocating Code and Data Using the MCUXpresso IDE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Please pay attention , the project run from bootloader(0x0000), then jump to APP(0x10000) through SCB-&amp;gt;VTOR = 0x1000;&lt;/P&gt;&lt;P&gt;If still have question about this, please share your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 17 Oct 2017 09:11:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Relocating-Program-Flash/m-p/706845#M925</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-10-17T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Relocating Program Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Relocating-Program-Flash/m-p/706846#M926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. I put the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SCB-&amp;gt;VTOR = 0X1000; in the application main()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;2. Yes, thank you.&amp;nbsp; This explains process very well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;3. So you are saying that to debug application with the flash moved to 0x1000 I will have to have a bootloader at 0x0000?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The project is just a demo project called frdmk66f_rtos_examples_freertos_uart that we got from the SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks for your help on this!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 14:58:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Relocating-Program-Flash/m-p/706846#M926</guid>
      <dc:creator>jeremyanderson</dc:creator>
      <dc:date>2017-10-17T14:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Relocating Program Flash</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Relocating-Program-Flash/m-p/706847#M927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;Yes, you need put the jump to application code (&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SCB-&amp;gt;VTOR = 0X1000&lt;/SPAN&gt;) into bootloader project .&lt;/P&gt;&lt;P&gt;The start address of kinetis is 0x0000, then jump to 0x1000.&lt;/P&gt;&lt;P&gt;About the bootloader and application , I recommend you have a look at this document under&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-328365"&gt;https://community.nxp.com/docs/DOC-328365&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 09:40:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Relocating-Program-Flash/m-p/706847#M927</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-10-18T09:40:26Z</dc:date>
    </item>
  </channel>
</rss>

