Keil Logo


The SET command assigns a string to a predefined variable. It can also display the variable contents.

Syntax Description
SET envVar Displays the contents of the predefind variable envVar.
SET envVar = "string" Assigns the value string to the predefined variable envVar.

The following predefined variables can be used with the SET command.

Variable Name Description
SRC Contains the paths to search for source or listing files required for source-level debugging. One string at a time can be added.

When an object module is loaded, the paths are added to the SRC variable and used for searching.

>LOAD \OBJS\MEASURE         // Load mod.  MEASURE
>SET SRC                    // Display the paths assigned to SRC

You can add additional path specifications.

>SET SRC =.\lib\location\   // Add path
>SET SRC ="\my docs\"       // Use double-quotes with blanks
>SET SRC                    // Display the paths assigned to SRC
\my docs\ 


  • Use the command RESET to clear the variable contents.
  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.