81 sta, Motload commands – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual

Page 162

Advertising
background image

MOTLoad Commands

MOTLoad Firmware Package User’s Manual (6806800C24D)

162

3.1.81 sta

Name

sta—loads and attaches the symbols from the specified address. 44 bytes are provided for each
symbol name. The MOTLoad symbol table format is as follows:

unsigned int symbolcount;
/* Number of symbols in this table. */
struct {
/* for each symbol... */
unsigned int symbolvalue;
/* value of this symbol */
char symbolname[44];
/* name of this symbol */
} symbols[];

Note: Symbols must be sorted in ascending order based on symbol value.

Once a symbol table has been attached, all displays of physical addresses are first looked up in
the symbol table to see if the address is in range of any of the symbols (symbol data). If the
address is in range, it is displayed with the corresponding symbol name and offset (if any) from
the symbol’s base address (symbol data). In addition to the display, any command line input
that supports an address as an argument can now take a symbol name for the address
argument. The address argument is first looked up in the symbol table to see if it matches any
of the addresses (symbol data) before conversion takes place.

It is the user’s responsibility to load the symbol table into memory.

Synopsis

sta [-a]

Parameters

-a Ph: Memory Address of Loaded Symbol Tables

Advertising