<?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: Bootloader K64 / Linker / Change application location in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-K64-Linker-Change-application-location/m-p/1160686#M58307</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/169053" target="_self"&gt;nxf54944&lt;/A&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes we can relocate the code through the MUC settings. For me i have choosen to change directly the linker file (.ld), like described below, and it works for me like charm . Anyway thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;/* Define each memory region */&lt;BR /&gt;PROGRAM_FLASH (rx) : ORIGIN = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0x10000&lt;/STRONG&gt;&lt;/FONT&gt;, LENGTH = 0x80000 /* 512K bytes (alias Flash) */&lt;BR /&gt;SRAM_UPPER (rwx) : ORIGIN = 0x20000000, LENGTH = 0x30000 /* 192K bytes (alias RAM) */&lt;BR /&gt;SRAM_LOWER (rwx) : ORIGIN = 0x1fff0000, LENGTH = 0x10000 /* 64K bytes (alias RAM2) */&lt;BR /&gt;FLEX_RAM (rwx) : ORIGIN = 0x14000000, LENGTH = 0x1000 /* 4K bytes (alias RAM3) */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Define a symbol for the top of each memory region */&lt;BR /&gt;__base_PROGRAM_FLASH = &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;0x10000&lt;/FONT&gt;&lt;/STRONG&gt; ; /* PROGRAM_FLASH */&lt;BR /&gt;__base_Flash = 0x10000 ; /* Flash */&lt;BR /&gt;__top_PROGRAM_FLASH = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0x10000&lt;/STRONG&gt;&lt;/FONT&gt; + 0x80000 ; /* 512K bytes */&lt;BR /&gt;__top_Flash = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0x10000&lt;/STRONG&gt; &lt;/FONT&gt;+ 0x80000 ; /* 512K bytes */&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;HRABI.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:41:03 GMT</pubDate>
    <dc:creator>ahmedhrabi</dc:creator>
    <dc:date>2020-09-29T12:41:03Z</dc:date>
    <item>
      <title>Bootloader K64 / Linker / Change application location</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-K64-Linker-Change-application-location/m-p/1152167#M58057</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'am trying to create a &lt;STRONG&gt;personnal bootloader on a K64&lt;/STRONG&gt; microcontroller using MCUexpresso 11.2.0.4120 and SDK 2.8.2.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My bootloader application is supposed to &lt;STRONG&gt;copy the new application binary on flash&lt;/STRONG&gt; (at adress &lt;STRONG&gt;0x1000&lt;/STRONG&gt;) &lt;STRONG&gt;then jump to the new application address in flash&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I tried to modify the ld file of the flashed application for that the ISR vector begins at the address &lt;STRONG&gt;0x1000&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The ld files are generated by MCUexpresso&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;You can see clearly on the attached map files that :&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The .isr_vector starts at address 0x00000 for bootloader.map file&lt;/LI&gt;&lt;LI&gt;The .isr_vector starts at address 0x10000 for flashapplication.map file&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;By using the Memory debugger of the MCUexpresso i verified that the binary is flashed correctly (after clearing flash with 0xFF) at the address 0x1000. Theni try to&lt;STRONG&gt; jump to the new application at address 0x1000 it restarts the bootloader application&lt;/STRONG&gt; &lt;STRONG&gt;instead of launching the flashed application.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can enybody check with me the ld files if they are well configured and tell me if there's another method to map the flash memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the .ld files attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ahmed HRABI.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 13:40:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-K64-Linker-Change-application-location/m-p/1152167#M58057</guid>
      <dc:creator>ahmedhrabi</dc:creator>
      <dc:date>2020-09-11T13:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader K64 / Linker / Change application location</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-K64-Linker-Change-application-location/m-p/1154317#M58127</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-II lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/128940" target="_self"&gt;&lt;SPAN class=""&gt;ahmedhrabi&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This post may be helpful to relocate the code: &lt;A href="https://community.nxp.com/t5/Kinetis-Design-Studio-Knowledge/Relocating-Code-and-Data-Using-the-MCUXpresso-IDE/ta-p/1103719" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Design-Studio-Knowledge/Relocating-Code-and-Data-Using-the-MCUXpresso-IDE/ta-p/1103719&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this is helpful, if you have questions do not hesitate to ask me.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Omar&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 18:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-K64-Linker-Change-application-location/m-p/1154317#M58127</guid>
      <dc:creator>Omar_Anguiano</dc:creator>
      <dc:date>2020-09-16T18:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bootloader K64 / Linker / Change application location</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-K64-Linker-Change-application-location/m-p/1160686#M58307</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/169053" target="_self"&gt;nxf54944&lt;/A&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes we can relocate the code through the MUC settings. For me i have choosen to change directly the linker file (.ld), like described below, and it works for me like charm . Anyway thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEMORY&lt;BR /&gt;{&lt;BR /&gt;/* Define each memory region */&lt;BR /&gt;PROGRAM_FLASH (rx) : ORIGIN = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0x10000&lt;/STRONG&gt;&lt;/FONT&gt;, LENGTH = 0x80000 /* 512K bytes (alias Flash) */&lt;BR /&gt;SRAM_UPPER (rwx) : ORIGIN = 0x20000000, LENGTH = 0x30000 /* 192K bytes (alias RAM) */&lt;BR /&gt;SRAM_LOWER (rwx) : ORIGIN = 0x1fff0000, LENGTH = 0x10000 /* 64K bytes (alias RAM2) */&lt;BR /&gt;FLEX_RAM (rwx) : ORIGIN = 0x14000000, LENGTH = 0x1000 /* 4K bytes (alias RAM3) */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Define a symbol for the top of each memory region */&lt;BR /&gt;__base_PROGRAM_FLASH = &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;0x10000&lt;/FONT&gt;&lt;/STRONG&gt; ; /* PROGRAM_FLASH */&lt;BR /&gt;__base_Flash = 0x10000 ; /* Flash */&lt;BR /&gt;__top_PROGRAM_FLASH = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0x10000&lt;/STRONG&gt;&lt;/FONT&gt; + 0x80000 ; /* 512K bytes */&lt;BR /&gt;__top_Flash = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0x10000&lt;/STRONG&gt; &lt;/FONT&gt;+ 0x80000 ; /* 512K bytes */&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;HRABI.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:41:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Bootloader-K64-Linker-Change-application-location/m-p/1160686#M58307</guid>
      <dc:creator>ahmedhrabi</dc:creator>
      <dc:date>2020-09-29T12:41:03Z</dc:date>
    </item>
  </channel>
</rss>

