C51: STARTING A FUNCTION AT A SPECIFIC ADDRESS
Information in this article applies to:
How do I start my functions at a specific place in memory?
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.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Friday, January 13, 2006
of your data.