The table below lists the supported HIWARE commands followed by:
The following columns represent the status in the CodeWarrior Eclipse IDE:
| Command | Status | Description |
|---|---|---|
| HIWARE | ||
| VER | S-CW | Lists the version of all loaded commands Syntax about |
| AUTOSIZE | NA | Selects window sizing mode |
| OPENIO | NA | Loads an IO simulation component |
| OPENPROJECT | U | Opens an existing project |
| OPEN | NA | Opens a component window |
| SET | U | Loads a target component |
| LOAD | U | Loads an application (Code & Symbols) |
| LOADCODE | U | Loads an application (Code only) |
| LOADSYMBOLS | S-CW | Loads an application (Symbols only) Syntax loadsym <filename> |
| FONT | U | Changes font in component windows |
| BCKCOLOR | U | Changes background color of component windows |
| SLAY | NA | Saves the layout and options of all components |
| ACTIVATE | NA | Activates a window component (in/out focus) |
| CLOSE | NA | Closes a component window |
| SYSTEM | S-CW | Executes an external application Syntax system <command> |
| EXIT | S-CW | Terminates this application Syntax quitIDE |
| RESET | S-CW | Resets the target MCU SyntaxReset |
| HELP | S-CW | Lists available commands; to get help on a specific command, use the command followed by '?' Syntax help help <command><command> ? |
| HIWARE Engine | ||
| LF | S-CW | Opens a log file Syntax (for command) log c <file> Syntax (for session) log s <file> |
| NOLF | S-CW | Closes a log file Syntax (for command) log off c Syntax (for session) log off s |
| CR | U | Records all commands to a file |
| NOCR | U | Stops recording commands to a file |
| LOG | S-CW | Specifies items to be logged Syntax (for command) log c <file> Syntax (for session) log s <file> |
| BS | P | Sets breakpoint Syntax bp [-{hw|sw|auto}] {<func>|[<ms>:]<addr>|<file> <line> [<column>]} bp all|#<id>|<func>|<addr> enable|disable|{ignore <count>} bp #<id> cond <c-expr> |
| SAVEBP | U | Saves breakpoints into a file |
| STEPINTO | S-CW | Step Into Syntax step [asm|src] into |
| STEPOUT | S-CW | Step out Syntax step [asm|src] out |
| STEPOVER | S-CW | Step over Syntax step [asm|src] over |
| RESTART | S-CW | Restart execution Syntax restart |
| DDEPROTOCOL | U | DDE Protocol options |
| DEFINEVALUEDLG | U | Opens a GUI to define a value for the symbol/variable given as parameter |
| BC | S-CW | Clears breakpoint Syntax bp all|#<id>|<func>|<addr> off |
| BD | S-CW | Lists breakpoints Syntax bp |
| GO | S-CW | Starts execution (Go) Syntax go |
| STOP | S-CW | Stops execution (Halt) Syntax stop |
| P | S-CW | Executes an instruction (Flat step) Syntax stepi |
| T | S-CW | Executes CPU instructions Syntax stepi |
Configuration Example
|
||
| WB | S-CW | Writes byte(s) into target memory Syntax mem <addr-spec> [<range>] [-s|-ns] [%<conv>] =<value> |
| WW | S-CW | Writes word(s) into target memory (2 bytes) Syntax mem <addr-spec> [<range>] [-s|-ns] [%<conv>] =<value> |
| WL | S-CW | Writes long(s) into target memory (4 bytes) Syntax mem <addr-spec> [<range>] [-s|-ns] [%<conv>] =<value> |
| MS | S-CW | Writes byte(s) into target memory (same as WB) Syntax mem <addr-spec> [<range>] [-s|-ns] [%<conv>] =<value> |
| RD | S-CW | Lists registers Syntax reg all |
| RS | S-CW | Sets registers Syntax reg <reg-spec>{..<reg>|#<n>} [-s|-ns] [%<conv>] =<value> |
| MEM | U | Lists memory map |
| DASM | S-CW | Disassembles target memory Syntax disassemble pc|[<ms>:]<addr> [<count>] |
| DB | S-CW | Lists byte(s) from target memory Syntax mem <addr-spec> [<range>] [-s|-ns] [%<conv>] [-np] |
| DW | S-CW | Lists words from target memory (2 bytes) Syntax mem <addr-spec> [<range>] [-s|-ns] [%<conv>] [-np] |
| DL | S-CW | Lists long(s) from target memory (4 bytes ) Syntax mem <addr-spec> [<range>] [-s|-ns] [%<conv>] [-np] |
| CD | S-CW | Lists or changes directory Syntax cd |
| E | S-CW | Evaluates an expression and lists its result Syntax evaluate [#<format>] [-l] [<var|expr>] |
| A | S-CW | Evaluates an expression and assigns its result to an existing variable Syntax var <var-spec> [-s|-ns] [%<conv>]=[evaluate [#<format>] [-l] [<var|expr>]] Example var myVar = [evaluate 1+1] - assigns value "2" to "myVar" |
| PRINTF | U | Display a string on the window using printf like format |
| FPRINTF | U | Write a string to a file using fprintf like format |
| NB | S-CW | Changes or displays the default number base for the value of expressions Syntax evaluate [#<format>] [-l] [<var|expr>] |
| LS | U | Lists also global variables and procedures of the loaded application |
| SREC | P | Loads of Motorola S-records from a specified file Syntax restore -h *.lod [[<ms>:]<addr>|+<offset>] [8bit|16bit|32bit|64bit] restore -b *.lod [<ms>:]<addr> [8bit|16bit|32bit|64bit] |
| SAVE | S-CW | Saves a specified block of memory to a specified file in Motorola S-record format Syntax save -h|-b [<ms>:]<addr>... <filename> [-a|-o] [8bit|16bit|32bit|64bit] |
| PAUSETEXT | NA | Displays a modal message box for testing purpose |
| TESTBOX | NA | Displays a modal message box with a given string |
| REGFILE | U | Loads the I/O register descriptions from a 'register file' |
| REGBASE | U | Sets the base address of the on-chip I/O registers |
| ANDB | U | Bitwise-AND with target memory byte |
| ANDW | U | Bitwise-AND with target memory word (2 bytes) |
| ANDL | U | Bitwise-AND with target memory long (4 bytes) |
| NANDB | U | Bitwise-NAND with target memory byte |
| NANDW | U | Bitwise-NAND with target memory word (2 bytes) |
| NANDL | U | Bitwise-NAND with target memory long (4 bytes) |
| ORB | U | Bitwise-OR with target memory byte |
| ORW | U | Bitwise-OR with target memory word (2 bytes) |
| ORL | U | Bitwise-OR with target memory long (4 bytes) |
| NORB | U | Bitwise-NOR with target memory byte |
| NORW | U | Bitwise-NOR with target memory word (2 bytes) |
| NORL | U | Bitwise-NOR with target memory long (4 bytes) |
| EXORB | U | Bitwise-EXOR with target memory byte |
| EXORW | U | Bitwise-EXOR with target memory word (2 bytes) |
| EXORL | U | Bitwise-EXOR with target memory long (4 bytes) |
| MEMCOPY | S-CW | Copies the target memory |
| MEMBITCOPY | S-CW | Copies one bit from one memory address to another bit to another memory address Syntax copy [<ms>:]<addr>[..<addr>|#<bytes>] [<ms>:]<addr> |
| DEFINE | S-CW | Defines a symbol and associates a value Syntax set varName ?value? <Tcl command> |
| UNDEF | S-CW | Removes a symbol definition Syntax unset varName <Tcl command> |
| RETURN | U | Terminates the current command processing level |
| GOTO | U | Goes to the line following the label |
| GOTOIF | U | Goes to the line following the label if condition is TRUE |
| WHILE | S-Tcl | Executes commands as long as the condition is true |
| FOR | S-Tcl | Executes commands up to a predefined number of times |
| REPEAT | S-Tcl | Executes commands until a certain condition is true |
| IF | S-Tcl | Executes different command sections depending on the conditions |
| FOCUS | NA | Assigns a component as the destination for all subsequent commands |
| WAIT | S-CW | Waits by time tenths of a second Syntax wait |
| AT | U | Executes the next command at time (in ms) |
| CF | S-CW | Executes commands in the specified command file |
| CALL | S-CW | Executes commands in the specified command file Syntax source |
| Source | ||
| SPC | NA | Highlights the statement corresponding to the code address |
| SMEM | NA | Highlights the statements corresponding to the code address range |
| SMOD | NA | Loads the corresponding module's source text |
| SPROC | NA | Highlights the statement of the procedure that is in the procedure chain |
| FOLD | NA | Hides source text for clearness at program block level |
| UNFOLD | NA | Exhibits the contents of folded source text blocks |
| SLINE | NA | Displays the line |
| FINDPROC | NA | Find the Procedure |
| FIND | NA | Searches an arbitrary pattern in the currently loaded source file |
| ATTRIBUTES | NA | Sets up the display |
| Assembly | ||
| SPC | NA | Lists the specified address |
| SMEM | NA | Lists the specified address |
| ATTRIBUTES | NA | Sets up the display |
| Procedure | ||
| ATTRIBUTES | NA | Sets up the display |
| Register | ||
| ATTRIBUTES | NA | Sets up the display |
| Memory | ||
| SPC | NA | Lists the address given as an argument |
| SMEM | NA | Lists the memory range given as an argument |
| SMOD | NA | Lists the first global variable of the module |
| FILL | S-CW | Fills a memory range with the given value Syntax mem <addr-spec> [<range>] [-s|-ns] [%<conv>] =<value> |
| UPDATERATE | NA | Sets the update rate |
| ATTRIBUTES | NA | Sets up the display |
| COPYMEM | S-CW | Copies a memory range to a specified location Syntax copy [<ms>:]<addr>[..<addr>|#<bytes>] [<ms>:]<addr> |
| SEARCHPATTERN | NA | Search a pattern in memory |
| REFRESHMEMORY | S-CW | After releasing caches, refreshes the memory Syntax refresh |
| Data | ||
| SPROC | NA | Displays local or global variables of the procedure given as parameter |
| ADDXPR | NA | Adds a new expression in the data component |
| PTRARRAY | NA | Switches on or off the pointer as array displaying |
| SMOD | NA | Displays global variables of the module given as parameter |
| ZOOM | NA | Exhibits the member fields of structures by 'diving' into the structure |
| UPDATERATE | NA | Sets the update rate of the data component |
| DUMP | P | Dumps the content of the data component to the command line Syntax display |
| ATTRIBUTES | NA | Sets up the display |
| REFRESHDATA | S-CW | After releasing caches, refreshes the display Syntax refresh |
| Command | ||
| CLR | S-CW | Clears the Command window Syntax cls |
| ATTRIBUTES | NA | Sets up the display |