<?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: Change the hex file address in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184189#M58841</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply Erich, Actually I am using Keil V5.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;And that you want to create an image at a that offset so it can be loaded with the bootloader, correct?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, your view is correct,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;check entry2.c why it tries to load the SP from address zero (this is the default in the vector table).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I didn't find the entry2.c in my project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;sivakrishna&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 03:26:21 GMT</pubDate>
    <dc:creator>durgasivakrishn</dc:creator>
    <dc:date>2020-11-17T03:26:21Z</dc:date>
    <item>
      <title>Change the hex file address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1183865#M58831</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using MK66FN2M0VLQ18, I would like to change the Flash address of the .hex file from 0x00000000 to 0x00000500 can anyone help me how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are the steps I followed but it didn't work and through an error.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="durgasivakrishn_4-1605530731074.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130141i7CE489889CC0209A/image-size/large?v=v2&amp;amp;px=999" role="button" title="durgasivakrishn_4-1605530731074.png" alt="durgasivakrishn_4-1605530731074.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;1. In IROM1 address is changed from 0 to ox500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="durgasivakrishn_5-1605530752982.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130142iC235E56B5B8936A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="durgasivakrishn_5-1605530752982.png" alt="durgasivakrishn_5-1605530752982.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. In the above window I enable the "Use Memory Layout from Target Dialog"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was getting below error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error: L6218E: Undefined symbol __initial_sp (referred from entry2.o).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sivakrishna&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 12:51:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1183865#M58831</guid>
      <dc:creator>durgasivakrishn</dc:creator>
      <dc:date>2020-11-16T12:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change the hex file address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1183873#M58832</link>
      <description>&lt;P&gt;It sounds you are using IAR tools? And that you want to create an image at a that offset so it can be loaded with the bootloader, correct?&lt;/P&gt;&lt;P&gt;My take is that yo need to change the settings in the linker settings.&lt;/P&gt;&lt;P&gt;Or use one of the bootloader example files of the MCUXpresso SDK which show how the target image is relocated to an offset.&lt;/P&gt;&lt;P&gt;As for the error message: check entry2.c why it tries to load the SP from address zero (this is the default in the vector table).&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 13:09:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1183873#M58832</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-11-16T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change the hex file address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184189#M58841</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply Erich, Actually I am using Keil V5.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;And that you want to create an image at a that offset so it can be loaded with the bootloader, correct?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Yes, your view is correct,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;check entry2.c why it tries to load the SP from address zero (this is the default in the vector table).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I didn't find the entry2.c in my project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;sivakrishna&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 03:26:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184189#M58841</guid>
      <dc:creator>durgasivakrishn</dc:creator>
      <dc:date>2020-11-17T03:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change the hex file address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184273#M58845</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;durgasivakrishn,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;You can modify your MK66F2M0XXX18_flash.scf, the start address to your desired address.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/130224i432284540115FBC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have questions about it, please kindly let me know!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 06:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184273#M58845</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-11-17T06:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change the hex file address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184283#M58847</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply Erich and Kerry,&lt;/P&gt;&lt;P&gt;As Kerry mentioned we can change the address location in the scatter file(.scf) I am able to generate a .hex file with my desired location but I want to do it on Keil Tool is it possible, Means I want to change the linker file from Keil tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sivakrishna&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 06:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184283#M58847</guid>
      <dc:creator>durgasivakrishn</dc:creator>
      <dc:date>2020-11-17T06:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change the hex file address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184286#M58849</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;durgasivakrishn,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;If you are using the SDK project, I suggest you use the .scf file directly, as it also complicate to the sdk driver.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;But if it your own created keil project, you also can use the keil tool gui method to modify the relocated address. As you know, that address modification also modify the keil project link file in default.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have questions about it, please kindly let me know!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-----------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 07:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184286#M58849</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-11-17T07:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Change the hex file address</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184323#M58852</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/154108"&gt;@durgasivakrishn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm not familiar with Keil, so I assume it might be part of the library which includes some startup code related things.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 07:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Change-the-hex-file-address/m-p/1184323#M58852</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-11-17T07:55:30Z</dc:date>
    </item>
  </channel>
</rss>

