Reserving flash memory for application

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

Reserving flash memory for application

757 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tcrussell on Thu Jan 07 17:07:45 MST 2010
I am planning to use some part of flash memory in the LPC1114 to store data and want to tell LPCXpresso not to place my code there.  How do I do this?  In IAR, I would edit a linker file.  There does seem to be an equivalent xx-mem.ld file, but it gets overwritten on each build.

Thanks,
Tom
0 Kudos
Reply
2 Replies

747 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Jan 08 06:34:41 MST 2010
Forgot to mention that you can find more information at:
http://lpcxpresso.code-red-tech.com/LPCXpresso/node/31
0 Kudos
Reply

747 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Jan 08 02:03:08 MST 2010
You need to switch off the automatic linker script generation.

To do this:
- Right-click on the project and select Properties
- Open C/C++ Build and select Settings
- Under MCU Linker, select Target
- Uncheck "Manage linker script"

Before editing the linker script files, I would also recommend that you use a different location for the linker script locations:
- Change the linker script name to "../script.ld"
and copy the 3 .ld files into the parent directory.

You can find full documentation on the linker scripts in the Help.
0 Kudos
Reply