Keil™, An ARM® Company

Technical Support

C51: STARTING A FUNCTION AT A SPECIFIC ADDRESS


Information in this article applies to:

  • C51 Version 6.00 and later
  • µVision2 Version 2.04 and later

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 µVision2, 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

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, January 13, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure