<?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 modify program start address during run-time in S32K</title>
    <link>https://community.nxp.com/t5/S32K/modify-program-start-address-during-run-time/m-p/1268892#M10690</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to update my bootloader with a new bootloader via CAN. The old bootloader starts from 0 --&amp;gt; 0x3000,&amp;nbsp; new bootloader 0 --&amp;gt;0x10000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My plan is to update via CAN with special firmware which erase the memory and flash ( 0--&amp;gt;0x10000) the new bootloader.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Old bootloader expect user program start address at 0x3000. Therefore user program "special" linker script starts at 0x3000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, how to change my program start address while running to 0x10000 instead?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So I was wondering if there is a Jump functions that I can use?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Nader&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;old bootloader linkerscript --&amp;gt; start address: 0x0 end: 0x3000&lt;/P&gt;&lt;P&gt;new bootloader --&amp;gt; start address: 0x0 end:0x10000&lt;/P&gt;&lt;P&gt;user program special to erase and flash new bootloader start: 0x3000&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 13:01:58 GMT</pubDate>
    <dc:creator>naderkhamess</dc:creator>
    <dc:date>2021-04-27T13:01:58Z</dc:date>
    <item>
      <title>modify program start address during run-time</title>
      <link>https://community.nxp.com/t5/S32K/modify-program-start-address-during-run-time/m-p/1268892#M10690</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to update my bootloader with a new bootloader via CAN. The old bootloader starts from 0 --&amp;gt; 0x3000,&amp;nbsp; new bootloader 0 --&amp;gt;0x10000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My plan is to update via CAN with special firmware which erase the memory and flash ( 0--&amp;gt;0x10000) the new bootloader.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Old bootloader expect user program start address at 0x3000. Therefore user program "special" linker script starts at 0x3000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, how to change my program start address while running to 0x10000 instead?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So I was wondering if there is a Jump functions that I can use?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Nader&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;old bootloader linkerscript --&amp;gt; start address: 0x0 end: 0x3000&lt;/P&gt;&lt;P&gt;new bootloader --&amp;gt; start address: 0x0 end:0x10000&lt;/P&gt;&lt;P&gt;user program special to erase and flash new bootloader start: 0x3000&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:01:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/modify-program-start-address-during-run-time/m-p/1268892#M10690</guid>
      <dc:creator>naderkhamess</dc:creator>
      <dc:date>2021-04-27T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: modify program start address during run-time</title>
      <link>https://community.nxp.com/t5/S32K/modify-program-start-address-during-run-time/m-p/1269457#M10696</link>
      <description>&lt;P&gt;Hello Nader,&lt;/P&gt;
&lt;P&gt;You didn't specify the MCU.&lt;/P&gt;
&lt;P&gt;But the S32K1xx execution always starts at 0x0, this cannot be changed to 0x3000.&lt;/P&gt;
&lt;P&gt;At least the stack top address and the reset vector must be at 0x0 - 0x4 and the flash configuration field at 0x400.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 07:37:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/modify-program-start-address-during-run-time/m-p/1269457#M10696</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-04-28T07:37:00Z</dc:date>
    </item>
  </channel>
</rss>

