ARM Technical Support Knowledge Articles

STARTING A FUNCTION AT A SPECIFIC ADDRESS

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

How do I start my functions at a specific place in memory?

ANSWER

All you have to do is look at your map file to see what segment name your function is given. For example, if your segment name is ?PR?FUNCTION?TEXT2 then, in uVision2, go to the BL51 locate tab, under options for target. In the CODE input line, add ?PR?FUNCTION?TEXT2 (100h). This locates that function at address 100h. Rebuild your project and check your map file. You will notice that your function starts at address 0x100.

MORE INFORMATION

SEE ALSO

Article last edited on: 2006-01-13 08:38:14

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