ARM Technical Support Knowledge Articles

AVOIDING CODE IN INTERRUPT VECTOR SPACE

Applies to: L166 Linker/Locator

Answer


Information in this article applies to:


SYMPTOMS

The C166 Compiler puts program code in the interrupt vector memory area that is unused. How do I get the compiler to stop doing that?

CAUSE

The C166 Compiler attempts to use every bit of code space available. You may direct the linker to avoid the interrupt vector space by adjusting the starting address for program code in the Target Options dialog box in uVision.

RESOLUTION

  1. Select the Options for Target... item from the Project menu. The Options... dialog box displays.
  2. In the external memory section, set the start address of your first EPROM/FLASH device to 0x000200. This is already set to 0x000000.
  3. Adjust the size of the device DOWN by 0x200 bytes. For example, if the EPROM is a 64K EPROM, the adjusted size will be 0x00FE00.
  4. Rebuild the project and check the contents of the MAP file. The compile no longer places program code in the interrupt vector space.

MORE INFORMATION

Article last edited on: 2005-07-15 15:32:39

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential