Keil Logo

µVISION: ENVRIONMENT VARIABLES FOR BUILD PROCESS


Information in this article applies to:

  • µVision Version 3.00 or higher
  • C51 All Versions
  • C251 All Versions
  • C166 All Versions
  • RealView MDK All Versions

QUESTION

What information is available during the build process for user programs?

ANSWER

When the build process is started, µVision exports the following environment variables:

SET C51INC=C:\Keil\C51\INC\Intel\;C:\Keil\C51\INC\ 
SET C51LIB=C:\Keil\C51\LIB
SET CPU_TYPE=80C51FA
SET CPU_VENDOR=Intel
SET UV2_TARGET=Target 1
SET CPU_XTAL=0x02DC6C00

These variables provide the following information:

  • C51INC is the path to include file folders. This path is used by the C Compiler.
  • C51LIB is the path to include file folders. This path is used by the Linker/Locater to locate the run-time libraries.
  • CPU_TYPE is the name of the device selected from the device database. This variable is not used by Keil tools, but maybe used from external translators.
  • CPU_VENDOR is the name of the silicon vendor selected from the device database. This variable is not used by Keil tools, but maybe used from external translators.
  • UV2_TARGET is the project target selected in µVision. This variable is not used by Keil tools, but maybe used from external translators.
  • CPU_XTAL is the XTAL frequency selected in the dialog Project - Options - Target. This variable is not used by Keil tools, but maybe used from external translators.

MORE INFORMATION

SEE ALSO

Last Reviewed: Monday, March 3, 2008


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.