Keil Logo

µVISION: Linker Control Files


Information in this article applies to:

  • µVision Version 2

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.

SEE ALSO

MORE INFORMATION

Last Reviewed: Wednesday, December 9, 2020


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.