219/317
7 - Debugger and PROM Programmer Tutorial for ST72251
7.7 RUNNING THE APPLICATION
This application is assembled and built as already described in the previous chapter:
Open WinEdit
Select File/Configure (if no previous configuration is loaded) or Project/Configure (if there is
a current configuration), click on Open, then find the file
Project.wpj
in the directory
\ST7\Work\Multitsk
Here, it is possible to assemble one or several sources files one at a time, as follows:
Open all the required source files (
.ASM
)
Select the option Window/Tile to see them all
Click on the top left window to activate it
Click on the Funnel tool to assemble it
Select the next window, assemble it, and repeat until all the windows have been assembled
However the build command does all this at once, using the batch files that in addition to the
assembly of all files, also perform the linking, the hex file conversion and the back annotation
of all files:
Click on the hammer tool to build the object file
Then start the debugger:
Click on the bug tool
Load the file
Multitsk.s19
and press Run.
Each potentiometer sets the blinking frequency of the corresponding LED, and it is easy to see
that varying the frequency of one channel does not affect the others.
If you want to execute the program step by step, there is a point to pay attention to.
Each of the tasks is contained in a single line of the source file, since it is written as one ex-
pansion of a macro defined at the beginning of the source file. Thus, stepping is not possible
at source level. To step in one task, first put a breakpoint on that task or stop the execution,
highlight the line of the source where the macro is located, and press the
Goto
button. Then,
turning to the disassembler window, you can step instruction by instruction using
Stepi
.
7.8 SUMMARY REMARKS
The function of the application is so obvious that is only serves to illustrate the advantages of
using a real time kernel. This very special way of programming is a good training ground for
learning to use the software tools and the emulator, before considering the more complex ap-
plications in the following chapters. You may experiment with the material supplied, try writing
the thing differently and see what happens, and explore the various commands of the emu-
Содержание 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 ...