µVision4 User's Guide

SET

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

SyntaxDescription
SET envVarDisplays 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 NameDescription
SRCContains the paths to search for source or listing files required for source-level debugging. One string at a time can be added.
Examples

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
\objs

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
\objs
.\lib\location\ 
\my docs\ 

Note

  • Use the command RESET to clear the variable contents.