entire file in another flash bank

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

entire file in another flash bank

1,274 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gvandenbosch on Tue Apr 26 21:41:12 MST 2016
Hello,

With the following link I saw how you can place functions in a different flashbank.

https://www.lpcware.com/content/faq/lpcxpresso/coderodata-different-flash-blocks

But when I have a lot functions this is quite some work to add this to all of them.
Would it also be possible to define for an entire file it has to go there?
Labels (1)
0 Kudos
Reply
6 Replies

1,262 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos
Reply

1,262 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gvandenbosch on Tue May 03 00:26:51 MST 2016
Thanks, works like a charm.
0 Kudos
Reply

1,262 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vtw.433e on Fri Apr 29 06:18:19 MST 2016
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:
./test/test.o(.text*)
0 Kudos
Reply

1,262 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gvandenbosch on Fri Apr 29 03:33:48 MST 2016
I am not using LPCXpresso IDE but Eclipse with own basic LD file in there.

From your answer I understand it is possible, do you maybe have a pointer how to do this within a LD file without LPCXpresso?

I tried the following, but once the code jumps there it breaks:
MEMORY
{
  ROM1 (xrw)     : ORIGIN = 0x1A000000, LENGTH = 512K
  ROM2 (xrw)     : ORIGIN = 0x1B000000, LENGTH = 512K
  RAM (xrw)       : ORIGIN = 0x10000000, LENGTH = 32K
  RAM2 (xrw)   : ORIGIN = 0x10080000, LENGTH = 40K
}

.text2 : 
  {
  . = ALIGN(4);
  _stext2 = .;        /* create a global symbol at data start */
  
  ./test/test.o 
  . = ALIGN(4);
    _etext2 = .;        /* define a global symbol at data end */
  } > ROM2


Cheers,
Gerard
0 Kudos
Reply

1,262 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Apr 28 05:12:01 MST 2016
If you are using LPCXpresso IDE, then please see:

https://www.lpcware.com/content/faq/lpcxpresso/freemarker-linker-script-templates

Regards,
LPCXpresso Support
0 Kudos
Reply

1,262 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dennislumiad on Thu Apr 28 01:32:58 MST 2016
Hello gvandenbosch,

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.

Does anyone experience with this? Would be of great help!

Thanks!
0 Kudos
Reply