<?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: MCUXpresso code relocated in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926424#M4196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，Alice_Yang&lt;/P&gt;&lt;P&gt;Thank you for your answer,I successed generated a S19 file with ram address,but now there's still flash code in the S19 file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90354i2945EA91E04B57E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2019 02:50:27 GMT</pubDate>
    <dc:creator>feigao</dc:creator>
    <dc:date>2019-07-04T02:50:27Z</dc:date>
    <item>
      <title>MCUXpresso code relocated</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926421#M4193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，I'm working on a project that I need relocate some code into ram,and I successed,after that I want to generate a S19 file only have this segment with ram address . I changed the linker file ,the address in the S19 file is still the flash address.What I should do to generate the right S19 file only cantain the code segment with the ram address without other code.The mcu is MK64,Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90097iE2009080B840E0E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 07:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926421#M4193</guid>
      <dc:creator>feigao</dc:creator>
      <dc:date>2019-07-02T07:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso code relocated</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926422#M4194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="304124" data-username="feigao" href="https://community.nxp.com/people/feigao"&gt;fei Gao,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, after relocate code into RAM, the code should still in FLASH, it is just executed from RAM.&lt;/P&gt;&lt;P&gt;Or after re-power , the code disappeared.&lt;/P&gt;&lt;P&gt;And S19 only includes code and data in FLASH.&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:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&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;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 08:57:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926422#M4194</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-07-03T08:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso code relocated</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926423#M4195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &amp;nbsp;&lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="304124" data-objecttype="3" href="https://community.nxp.com/people/feigao"&gt;fei Gao,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't immediately see how this can be done as part of a build step - the relocation items are just part(s) a binary that will change during development.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you may already have done this but I would suggest you take a look at the MCUXpresso IDE User Guide V11.0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- 18.13 Placement of specific code/data items&lt;/P&gt;&lt;P&gt;&amp;nbsp;- 18.15 FreeMarker Linker Script Template Examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These options may simplify the generation (and placement) of code to be relocated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One rather crude option might be to save the RAM section after the relocation has been performed.&amp;nbsp; The default Memory view in MCUXpresso IDE supports Export and Import options - once done the binary file could be converted to srecord format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MCUXpresso IDE v11.0.0, the new Image Information feature should make it easier to locate the address range of the relocated area to capture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 09:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926423#M4195</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2019-07-03T09:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso code relocated</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926424#M4196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，Alice_Yang&lt;/P&gt;&lt;P&gt;Thank you for your answer,I successed generated a S19 file with ram address,but now there's still flash code in the S19 file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90354i2945EA91E04B57E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 02:50:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926424#M4196</guid>
      <dc:creator>feigao</dc:creator>
      <dc:date>2019-07-04T02:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso code relocated</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926425#M4197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support. I rewrite the linker file, now I can get a S19 file with the ram address that I relocated,But,there's still flash code in the S19 file. I tried deleted the other section in the linker file ,but that would get some errors occured. I found the reason is that in the startup file defined some section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check the User Guide again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90360i0AA24FFD972EF293/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 02:59:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926425#M4197</guid>
      <dc:creator>feigao</dc:creator>
      <dc:date>2019-07-04T02:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso code relocated</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926426#M4198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I successed got a S19 file only with the ram address that I relocated.I modified the startup file,deleted some code.I found the code didn't referenced by main wouldn't be c&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;ompile.How can I change the compile option in MCUXpresso.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;Thank you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 01:53:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-code-relocated/m-p/926426#M4198</guid>
      <dc:creator>feigao</dc:creator>
      <dc:date>2019-07-05T01:53:45Z</dc:date>
    </item>
  </channel>
</rss>

