
3-32
DINK32 PowerPC Debugger User’s Manual
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
Environment
3.20 Environment
The ‘env’ command manages the environment variables, which is simply a list of names
and corresponding definitions. DINK uses environment variables for the following
purposes:
System initialization
Mode selections
Command aliases
Environment variables are stored in non-volatile memory, the location and type of memory
used varies with each system, but is typically battery-backed SRAM or flash.
For YK/SP, NVRAM is used and preserved, and 4K bytes are available.
For MVP, NVRAM is used and preserved, and 256 bytes are available.
For Excimer and Maximer, the uppermost 1K of SRAM is used. The environment
will be lost if the command “env -s” is not issued to write the environment to flash.
Arguments
:
If one argument is given, the environment variable named is displayed, defined or deleted,
depending on the presence of the “-d” option and/or the “=” character in the name.
name
Display the value of “name”, if any.
name=val Set environment variable “name” to the value “val”. Quotes are often
required for variable definitions if special characters will be needed.
-c
Initialize and erase all environment variables.
-d name
Erases the named environment variable.
-s
Write the Excimer/Maximer environment variables in SRAM to the only
non-volatile storage available, flash. This command is for
Excimer/Maximer only. The environment is automatically preset from
flash if present; no command is needed.
If no argument is given, all current settings are displayed.
Table 3-3 lists the special environment names known to DINK, and their interpretations.
Command
env
Abbreviation
env
Syntax
env [-c][-d][-s][var[=value]]
Builds
All
Boards
Excimer, MVP, Sandpoint, Yellowknife
Processors
All
F
Freescale Semiconductor, Inc.
n
.