Reserving flash memory for application

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Reserving flash memory for application

778 次查看
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 项奖励
回复
2 回复数

768 次查看
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 项奖励
回复

768 次查看
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 项奖励
回复