<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: ROM code in one location, but all references to another location? RELOCATE_TO?</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/ROM-code-in-one-location-but-all-references-to-another-location/m-p/261997#M11717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for sharing Carl, please keep us posted!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 21:47:27 GMT</pubDate>
    <dc:creator>Monica</dc:creator>
    <dc:date>2013-04-15T21:47:27Z</dc:date>
    <item>
      <title>ROM code in one location, but all references to another location? RELOCATE_TO?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/ROM-code-in-one-location-but-all-references-to-another-location/m-p/261995#M11715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an external parallel flash chip that I cannot write to with my debugger. So, in production we have spare flash to store the code/constants etc, but the code is manually moved from this location to the external flash one first boot. Obviously the code is still linked to the original location, but needs to be linked to the external flash locations. I have done this in HC08 by using the linker command "relocate_to" (or something similar). How do I do this in Coldfire (MCF52259 on CW10.2 / CW10.3)?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. in my linker&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Production_Spare_Space&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX): ORIGIN = 0x00070000, LENGTH = 0x0000FFFF&amp;nbsp; #Blank space during production&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;.Image2_Page:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;For_Relocation_c.c (.data)&lt;/P&gt;&lt;P&gt;For_Relocation_c.c (.rodata)&lt;/P&gt;&lt;P&gt;For_Relocation_c.c (.text)&lt;/P&gt;&lt;P&gt;} Image2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what I want to do is something like you can in the hc08&lt;/P&gt;&lt;P&gt;Production_Spare_Space&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX): ORIGIN = 0x00070000, LENGTH = 0x0000FFFF&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;RELOCATE_TO&lt;/SPAN&gt; 0x10000000 #Blank space during production&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 06:13:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/ROM-code-in-one-location-but-all-references-to-another-location/m-p/261995#M11715</guid>
      <dc:creator>CarlFST60L</dc:creator>
      <dc:date>2013-04-11T06:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: ROM code in one location, but all references to another location? RELOCATE_TO?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/ROM-code-in-one-location-but-all-references-to-another-location/m-p/261996#M11716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the right way to do this is covered here in , although this example is not correct as it uses .data, I only want to use the flash. I will post it up tomorrow when the code is running in case someone finds this thread later searching for the same solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/soft_dev_tools/doc/app_note/AN4329.pdf" title="http://www.freescale.com/files/soft_dev_tools/doc/app_note/AN4329.pdf"&gt;http://www.freescale.com/files/soft_dev_tools/doc/app_note/AN4329.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section 5.2.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 06:48:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/ROM-code-in-one-location-but-all-references-to-another-location/m-p/261996#M11716</guid>
      <dc:creator>CarlFST60L</dc:creator>
      <dc:date>2013-04-11T06:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: ROM code in one location, but all references to another location? RELOCATE_TO?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/ROM-code-in-one-location-but-all-references-to-another-location/m-p/261997#M11717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for sharing Carl, please keep us posted!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 21:47:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/ROM-code-in-one-location-but-all-references-to-another-location/m-p/261997#M11717</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-04-15T21:47:27Z</dc:date>
    </item>
  </channel>
</rss>

