ARM Technical Support Knowledge Articles

SETTING THE SIZE OF CODE SPACE

Applies to: BL51 Code-banking Linker/Locator

Answer


Information in this article applies to:


QUESTION

Is there a way to get the linker to recognize a maximum size of 4K or 8K for code space?

ANSWER

By default, the linker recognizes that the address space of the CODE memory space is from 0x0000 to 0xFFFF or 64K. You may change the starting and ending address of the CODE space using the linker's CODE directive as follows:

BL51 PROG.OBJ   CODE ( 0 - 0x7FFF )

In uVision, you may open the "Options for Target" window, find the "Eprom" field and type the starting address and the memory size. For example, if you desire 32K for CODE space starting at address zero, you may type 0x0000 as the starting address and 0x8000 for memory size; this results in an address range from 0x0000 to 0x7FFF.

SEE ALSO

Article last edited on: 2004-06-17 13:39:21

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