173/317
6 - STMicroelectronics Programming Tools
The
Compiler
field that is currently set to
Clipper
selects the rules for decoding the assem-
bler or compiler report. It is used in conjunction with the
Capture Output
option that must
then be enabled.
When the assembler is launched, and the
Capture Output
option is enabled, the report gen-
erated by the assembler is captured, and on completion, is analyzed according to the speci-
fied rules. If error messages are generated, they will be displayed in the status box at the
bottom of the WinEdit window, and the line where the error stands is highlighted. This makes
the correction and assembly cycle a lot faster.
Once all the source files are error-free, the whole project must be built using the build com-
mand (the hammer button).
To launch the debugger from W inE dit, it is not sufficient to write its path in the Debug com-
mand field; you must also add a few parameters, so that the command to be placed in the
Debug Command box of the configuration parameters looks like the following text:
C:\ST7\WGDB7\WGDB7.EXE -target='emust7 lpt1 -dll st7hds2.dll'
This supposes that the debugger is installed in the directory
C:\ST7\WGDB7
.
The two files mentioned here are present in the companion software, so the settings above
need not be made by hand. You just have to select the
Project/Configure
option, then press
the
Open
button, to select the file
CATERPIL.WPJ
that does all this.
6.4.3.2 The main source file,
MAIN.ASM
and the timer source file,
TIMER500.ASM
The source files of the project are very short. They are shown below. They illustrate what has
been said about assembly language regarding addressing modes, declarations, segments,
etc.
Содержание 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 ...