<?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: entire file in another flash bank in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565606#M17129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gvandenbosch on Fri Apr 29 03:33:48 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not using LPCXpresso IDE but Eclipse with own basic LD file in there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From your answer I understand it is possible, do you maybe have a pointer how to do this within a LD file without LPCXpresso?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following, but once the code jumps there it breaks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
MEMORY
{
&amp;nbsp; ROM1 (xrw)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ORIGIN = 0x1A000000, LENGTH = 512K
&amp;nbsp; ROM2 (xrw)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ORIGIN = 0x1B000000, LENGTH = 512K
&amp;nbsp; RAM (xrw)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ORIGIN = 0x10000000, LENGTH = 32K
&amp;nbsp; RAM2 (xrw)&amp;nbsp;&amp;nbsp; : ORIGIN = 0x10080000, LENGTH = 40K
}

.text2 : 
&amp;nbsp; {
&amp;nbsp; . = ALIGN(4);
&amp;nbsp; _stext2 = .;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* create a global symbol at data start */
&amp;nbsp; 
&amp;nbsp; ./test/test.o 
&amp;nbsp; . = ALIGN(4);
&amp;nbsp;&amp;nbsp;&amp;nbsp; _etext2 = .;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* define a global symbol at data end */
&amp;nbsp; } &amp;gt; ROM2
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gerard&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:48:58 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:48:58Z</dc:date>
    <item>
      <title>entire file in another flash bank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565603#M17126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gvandenbosch on Tue Apr 26 21:41:12 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the following link I saw how you can place functions in a different flashbank.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Fcoderodata-different-flash-blocks" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/coderodata-different-flash-blocks&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I have a lot functions this is quite some work to add this to all of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it also be possible to define for an entire file it has to go there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:48:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565603#M17126</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: entire file in another flash bank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565604#M17127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dennislumiad on Thu Apr 28 01:32:58 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello gvandenbosch,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment i am struggeling with the same. We have a spifi flash memory where we want to put certain parts of our code. Actually i am looking for a solution where we can put whole files or maybe even folders (all files in it) to a certain flash area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone experience with this? Would be of great help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:48:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565604#M17127</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: entire file in another flash bank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565605#M17128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Apr 28 05:12:01 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using LPCXpresso IDE, then please see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Ffreemarker-linker-script-templates" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/faq/lpcxpresso/freemarker-linker-script-templates&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:48:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565605#M17128</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: entire file in another flash bank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565606#M17129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gvandenbosch on Fri Apr 29 03:33:48 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not using LPCXpresso IDE but Eclipse with own basic LD file in there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From your answer I understand it is possible, do you maybe have a pointer how to do this within a LD file without LPCXpresso?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following, but once the code jumps there it breaks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
MEMORY
{
&amp;nbsp; ROM1 (xrw)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ORIGIN = 0x1A000000, LENGTH = 512K
&amp;nbsp; ROM2 (xrw)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ORIGIN = 0x1B000000, LENGTH = 512K
&amp;nbsp; RAM (xrw)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ORIGIN = 0x10000000, LENGTH = 32K
&amp;nbsp; RAM2 (xrw)&amp;nbsp;&amp;nbsp; : ORIGIN = 0x10080000, LENGTH = 40K
}

.text2 : 
&amp;nbsp; {
&amp;nbsp; . = ALIGN(4);
&amp;nbsp; _stext2 = .;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* create a global symbol at data start */
&amp;nbsp; 
&amp;nbsp; ./test/test.o 
&amp;nbsp; . = ALIGN(4);
&amp;nbsp;&amp;nbsp;&amp;nbsp; _etext2 = .;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* define a global symbol at data end */
&amp;nbsp; } &amp;gt; ROM2
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gerard&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:48:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565606#M17129</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: entire file in another flash bank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565607#M17130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Fri Apr 29 06:18:19 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You have put the ENTIRE file into the text2 section (code and data). You need to do something like this, you to put just the code into that section:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;./test/test.o(.text*)&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:48:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565607#M17130</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: entire file in another flash bank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565608#M17131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gvandenbosch on Tue May 03 00:26:51 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, works like a charm.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:48:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565608#M17131</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: entire file in another flash bank</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565609#M17132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:09:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/entire-file-in-another-flash-bank/m-p/565609#M17132</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:09:20Z</dc:date>
    </item>
  </channel>
</rss>

