Keil C51 STARTING A FUNCTION AT A SPECIFIC ADDRESS 編譯函數到指定位址

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.

資料轉載 : http://www.keil.com/support/docs/1408.htm

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Google photo

您的留言將使用 Google 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s