ARMCC: LOCATE CONSTANTS TO FIXED LOCATIONS
Information in this article applies to:
I am using a Philips LPC2000 device. To read protect the chip, I want to locate a constant at a fixed memory location (0x1FC) in the Flash ROM.
What is the best way to do this?
To locate a constant at a fixed address you must create a small module that contains the constant, and modify the scatter file to reference that module. Here are the steps:
This will locate the constant in the file ABS_ADDRESS.C to memory location 0x1FC.
The linker will still remove unused sections. To avoid that you need to enter the directive --keep abs_address.o(.constdata) under Project — Options — Linker — Misc controls.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Wednesday, November 15, 2006
of your data.