ST7MDT20-EVC/US STMicroelectronics, ST7MDT20-EVC/US Datasheet - Page 18

no-image

ST7MDT20-EVC/US

Manufacturer Part Number
ST7MDT20-EVC/US
Description
BOARD EVALUATION/TRAINING/PROGRM
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7MDT20-EVC/US

Module/board Type
Evaluation Board
For Use With/related Products
ST72124,7231x,72321,72334,72511,72512,72521
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
497-2897
TRAINING EXERCISES
3 TRAINING EXERCISES
3.1 EXERCISE 1: ASSEMBLER SYNTAX
The purpose of the first exercise is to improve your knowledge of ST7 Assembler syntax and
the STVD7 environment.
1. Launch the STVD7 Simulator:
I
I
2. Modify the files located in the following directory (C:\exercise\init\asm, see
rect the assembler syntax. Some syntax errors have been introduced by replacing correct di-
rectives or lines of code by ‘?????’.
3. When the file has been corrected, write the compile.bat batch file to assemble, link and
create a new *.s19 file (assign a new name to the file). The batch file also generates the S19,
SYM, MAP and OBJ files. For further assistance, please refer to the Technical Manual.
4. Then, click on “Project, Build”, or directly on the Build shortcut, to build your application.
5. Detected errors are listed in the Output window. Click on the error to display the line of code.
Correct the error and then rebuild.
6. To debug, simply click on the blue “D” displayed in the toolbar. Then select “Tools, MCU
Configuration” in order to configure the MCU (ST72334N4) and the option byte (Watchdog
software,...).
Now, the rest is up to you...
18/33
– Click on “File, New Workspace” and enter the requested information (see
– Click on the “Source Directory” tab in the Workspace window and double click on the di-
Configure the Toolchain paths as requested. The ST assembly toolchain path is already
entered. For Hiware, the correct path is C:\Hiware\prog and for Cosmic: C:\Program
Files\cosmic software\st7eval\cxst7 (if the default paths were selected during the installation
procedure). A Browse function is also available to find the correct path.
Create a new project:
rectory: the default user directory is selected by default.
Figure
Figure
6.) to cor-
7.)

Related parts for ST7MDT20-EVC/US