µVISION: LINKER CONTROL FILES

QUESTION

How do I use linker response files with the µVision IDE?

ANSWER

The linker command (or response) file contains only linker directives. The .OBJ files and .LIB files that are to be linked are not listed in the command file. These are obtained by µVision automatically from your project file.

The best way to start using a linker command file is to have µVision create one for you automatically and then begin making the necessary changes.

To generate a Command File from µVision...

  1. Go to the Project menu and select the Options for Target item.
  2. Click on the L166 Misc or L51 Misc tab to open the miscellaneous linker options.
  3. Check the use linker control file checkbox.
  4. Click on the Create... button. This creates a linker control file.
  5. Click on the Edit... button. This opens the linker control file for editing.
  6. Edit the command file to include the directives you need.

When you create a linker command file, the file created includes the directives you currently have selected. For example, the following command file lists the directives necessary for the MEASURE example:

TO "Measure"CLASSES (ICODE (0x0-0x7FFF), NCODE (0x0-0x7FFF),FCONST (0x0-0x7FFF), HCONST (0x0-0x7FFF),XCONST (0x0-0x7FFF), NCONST (0x4000-0x7FFF),NDATA (0x8000-0xBFFF), NDATA0 (0x8000-0xBFFF),SDATA (0xC000-0xEFFF, 0xF600-0xFDFF), SDATA0 (0xC000-0xEFFF, 0xF600-0xFDFF),IDATA (0xF600-0xFDFF), IDATA0 (0xF600-0xFDFF),FDATA (0x8000-0xEFFF), FDATA0 (0x8000-0xEFFF),HDATA (0x8000-0xEFFF), HDATA0 (0x8000-0xEFFF),XDATA (0x8000-0xEFFF), XDATA0 (0x8000-0xEFFF))CINITTAB (0x0-0x7FFF)

Note that the files included in the link are not listed. These are obtained from the list of files included in the project.

举例:
MStar的MST720的cartv.lin如下:
BankArea(0x4000,0xFFFF)
PRINT("..\..\1out\CarTV_128.m51") RAMSIZE(256)
CODE(?PR?*?ISR(0x002E),?PR?*?DSP_MARIA,?PR?VD_AGC_MONITORSTATUS?M2_VD_AGC_LIB)
BANK0(?CO?DevVD(0x4000),?CO?Mode,?CO?mStar)
BANK1(?CO?msOSD(0x4000),?CO?Menu,?CO?MenuStr)
XDATA(0X0400-0X07FF)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值