Keil™, An ARM® Company

Technical Support

µ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 03, 2008


Did this article provide the answer you needed?
 
Yes
No
Not Sure