Chapter 4: Using the Emulator
Using Processor Run Controls
Using Processor Run Controls
When you don't use an emulator, run control can be difficult. Usually, you're
limited to starting the processor from reset, and then entering data values that
vector program execution to the routines you want to test. Reaching those routines
may be difficult or impossible if the data values are boundary conditions or if the
program logic is faulty.
By using the emulator, you can run the processor from the current program counter
or any desired address. If you want to examine the system after each program
instruction, you can use the step command to step through the program. You can
break to the monitor program to examine on-chip resources such as RAM and
registers, and you can reset the processor from the emulator.
To run a program
• Choose Execution→Run and select the desired starting point from the submenu, or
select until() to specify the ending point. Enter the starting or ending address in the
entry buffer before you choose a command that contains from() or until().
• Using the command line, enter commands as follows:
•
run
•
run from <—EXPR—>
Where <—EXPR—> is a valid address expression that may include symbols.
•
run from reset
•
150
To run a program from the current program counter (PC) value, enter:
To run a program from a specific address, enter:
To run a program from the reset vector, enter:
To run a program from its transfer address, enter: