201/317
7 - Debugger and PROM Programmer Tutorial for ST72251
The top line is where we are now. The next line is where we came from. If we click on this
second line, and select the V iew/Source option, the window showing the
Main.asm
source-
pops up and line 45 is highlighted in blue. This is very convenient, especially in C language as
we shall see later.
7.3.3.7 Watching the execution trace
An emulator is used to watch a program executing, see which branches it takes, and the
values it reads and produces. The stepping method described above seems okay; but actu-
ally, it might not always be usable. The main two reasons for this are:
The piece of program to run is too long to be traced in a reasonable amount of time;
This particular piece of program deals with real events that cannot be slowed down, and the
program must run at full speed to correctly handle them.
The answer to this problem is the real-time trace.
Let us start the program at full speed, then either stop it by hand or let it stop at a breakpoint.
Now, choosing the Windows/Trace option, we can see a new window opening. It looks like the
following:
07-emu14.bmp
The display is made of lines that are successively red, blue and black.
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...