Keil Logo

Create a Library File

Enable Create Library in the dialog Options for Target — Output. µVision calls the Library Manager instead of the Linker/Locater. Since the code in the library will not be linked and located, the entries in the tabs Linker and Target are ignored.

Build the project. Once the library file has been created, it can be used in projects the same way as you add source files to a project.

By default, µVision loads only those library modules that are necessary for the application. In some rare cases it might be required to always include library modules.


  • If the library should be used on different directives, select a CPU listed under Generic in the Device Database.
  • For C166: Find out if you have to enter a value in Target — Data Threshold.
  • For C166: The directive NOFIXDPP should be entered in Options for Target — C166 — Misc, if the library is designed for applications with one of the following configurations:
    • More than 16KB ROM, or 16KB ROM are set for Target — Near Memory. In this case, the L166 DPPUSE directive will be applied. This directive requires that the C166 compiler makes no default assumptions for the DPP registers.
    • The User Stack is set to the memory class SDATA or IDATA. You can use the C166 directive USERSTACKDPP3 instead of NOFIXDPP, but NOFIXDPP is more generic, since no DPP register assumptions are made.
  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.