ST7MDTU5-EMU2B STMicroelectronics, ST7MDTU5-EMU2B Datasheet

no-image

ST7MDTU5-EMU2B

Manufacturer Part Number
ST7MDTU5-EMU2B
Description
EMULATOR REAL TIME ST7
Manufacturer
STMicroelectronics
Series
ST7-EMU2Br
Type
Microcontrollerr
Datasheet

Specifications of ST7MDTU5-EMU2B

Contents
Main Emulation Board (MEB), Target Emulation Board (TEB), Cables, Power Supply and Documentation
For Use With/related Products
ST7265x
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
ST7MDTU5-EMU2B
HDS2 Series Emulator
User Manual
Release 1.4
June 2002
Ref: DOC-ST7MDTU5-EMU2B

Related parts for ST7MDTU5-EMU2B

ST7MDTU5-EMU2B Summary of contents

Page 1

... ST7MDTU5-EMU2B HDS2 Series Emulator User Manual Ref: DOC-ST7MDTU5-EMU2B Release 1.4 June 2002 ...

Page 2

... Please refer to relevant safety information. USE IN LIFE SUPPORT DEVICES OR SYSTEMS MUST BE EXPRESSLY AUTHORIZED. STMicroelectronics PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF STMicroelectronics. As used herein: 1. Life support devices or systems are those ...

Page 3

Chapter 1: Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 4

Emulation functional limitations and discrepancies .................................... 55 Appendix A: EMC Conformity and Safety Requirements . . . . . . . . . . . . . . . . 57 Appendix B: Troubleshooting . . . . . ...

Page 5

... Glossary First off, check that the ST7 MCU that you have picked for your application is in the list of devices supported by this version of the ST7MDTU5-EMU2B emulator: The Emulator Package is made up of two main parts: • The Hardware Development System (ST7 HDS2), which is the common mainframe to all ST7 emulators. • ...

Page 6

... Figure 1: ST7MDTU5-EMU2B general configuration 1.1 Emulator configuration Figure 1 shows the configuration for the ST7MDTU5-EMU2B emulator kit. The main ST7 HDS2 box is connected to your PC via the parallel port. Two flat cables connect the ST7 HDS2 box to the ST7MDTU5-Active Probe. The ST7 Generic 6/71 ST7MDTU5-EMU2B User Manual connection to PC’ ...

Page 7

... ST7MDTU5-EMU2B User Manual Probe is connected to the ST7MDTU5-TEB, to which a device adapter can be fixed so that you can connect the emulator to your application board. The emulator is operated from your host PC using STVD7, a state-of-the-art, integrated development environment, from which you can configure and control the emulator, debug, edit and rebuild your application program. ...

Page 8

... Bold italic text denotes menu commands (or sequence of commands), options, buttons or checkboxes which you must click in order to perform an action. Italicized text highlights document names, variable strings, column names and field names. 8/71 on page 11. Chapter 3: STVD7 on page 21. ST7MDTU5-EMU2B User Manual Chapter 4: Emulator ...

Page 9

... ST7MDTU5-EMU2B User Manual Code font designates file names, programming commands, path names and any text you must type. The > symbol is used in a sequence of commands to mean “then”. For example, to open an application in Windows, we would write: “Click Start>Programs>ST7 Tool Chain>....”. 1.5 Getting assistance ...

Page 10

... Introduction 10/71 ST7MDTU5-EMU2B User Manual ...

Page 11

... Minimum RAM (64 MB recommended). • free hard disk space to install all of the ST7 tools. 2.2 Delivery checklist The emulator kit (ref.: ST7MDTU5-EMU2B), is delivered with the following (refer to Figure 2): 1 One emulator box containing the ST7 HDS2 main board (ref.: MB176) and two 50-wire flat cables to connect the ST7 HDS2 main board to the generic emulation probe ...

Page 12

... Getting Started 12 The following documentation and software (not shown): - This manual CD-ROM containing ST7 software and documentation, including ST7 Visual Debug, the ST7 Assembler Toolchain and a Windows Figure 2: Main components of ST7MDTU5-EMU2B emulator kit 12/71 (1) (3) (5) (7) ST7MDTU5-EMU2B User Manual ® Epromer. ...

Page 13

... ST7MDTU5-EMU2B User Manual Figure 2: Main components of ST7MDTU5-EMU2B emulator kit 2.3 Installing the hardware The ST7 HDS2 emulator is connected through the parallel port computer which runs the control software (ST7 Visual Debug) as explained later. To connect your ST7 HDS2 emulator, you will have to follow these general ...

Page 14

... Connect one end of the parallel cable to the emulator’s rear panel 25-pin SUB- D connector and the other end to one of the PC’s parallel ports (LPT1 to LPT2)—refer to 14/71 Figure PC Parallel Port 4 2 TQFP64 (14x14) socket Figure 3: ST7MDTU5-EMU2B connection flow Figure 4. ST7MDTU5-EMU2B User Manual 3. Each installation step is described Parallel Cable 1 ST7 HDS2 Emulator Casing ST7MDTU5-TEB ...

Page 15

... ST7MDTU5-EMU2B User Manual Note: Be sure to use the parallel cable provided with the emulator—using a longer parallel cable may cause emulator malfunctions. 2.3.2 Step 2: Connecting the emulator to the probe 1 Ensure that the application and the emulator are powered-off. 2 Plug the two 50-wire flat cables into the J1 and J2 connections on the probe, as described below (refer also to ST7-HDS2 Emulator (ref ...

Page 16

... Place these ferrites as close to the emulator window as possible. Three ferrites are provided in the package. See to attach the ferrites. ST7 HDS2 Emulator Side View Flat Cables 16/71 Ferrites Side View Figure 6: Making your probes EMC-compliant ST7MDTU5-EMU2B User Manual Figure 6 for an illustration of where Probe + Application Board ...

Page 17

... ST7MDTU5-EMU2B User Manual 2.3.3 Step 3: Connecting the probe to your application board If you are using the TQFP64 14x14 package, proceed as follows (see Figure 7): For the TQFP64 package, you must assemble the ST7MDTU5-Active Probe, which is made generic ST7 emulation probe connected to a Target Emulation Board, which is in turn connected to a TQFP64 (14 x 14) device adapter ...

Page 18

... Now use the four screws supplied to fasten this entire assembly together through the holes located on the TQFP64 flex cable connector as indicated in Figure 8. 18/71 ST7 Generic Probe (ref.: DB467 TQFP64 flex cable (ref.: DB520) TQFP64 (10 x 10) socket base ST7MDTU5-EMU2B User Manual 4 1 Application Board ...

Page 19

... ST7MDTU5-EMU2B User Manual 2.3.4 Step 4: Connecting the emulator power supply Note: Make sure that both the ST7MDTU5-EMU2B and the application are OFF before making any connections. 1 Connect the external power supply provided with the emulator to the rear panel of the mainframe using a 5-pin DIN connector. ...

Page 20

... Getting Started 20/71 ST7MDTU5-EMU2B User Manual ...

Page 21

... ST7MDTU5-EMU2B User Manual 3 STVD7 STVD7 is an integrated development environment that allows you to edit, debug and rebuild your application all from within STVD7. The following sections tell you: • Section 3.1—how to install the STVD7 software, • Section 3.2—how to launch STVD7, • ...

Page 22

... From your Chain>Development Tools>STVD7 HDS2 emulator. 2 The first time you open a version of STVD7 you will be prompted to enter the toolchain paths to be used by STVD7’s integrated development environment. 22/71 Windows desktop, select Figure 9: Toolchain Path dialog box ST7MDTU5-EMU2B User Manual Start>Programs>ST7 Tool ...

Page 23

... ST7MDTU5-EMU2B User Manual Enter the paths for the toolchains that you use (i.e. any or all of the Hiware, Cosmic or ST7 ASM toolchains) and click OK. (The default paths for each toolchain are shown below you choose Cancel, you will be prompted again to enter the toolchain paths the next time you launch STVD7 ...

Page 24

... MCU emulated, memory mapping, etc.) are kept separately in the same *.wsp file for each STVD7 version.This allows you to use the same workspace file to debug the same application for two different MCUs or MCU configurations on different STVD7 versions. 24/71 3.5). Section 3.12). ST7MDTU5-EMU2B User Manual ...

Page 25

... ST7MDTU5-EMU2B User Manual Visual environment information (such as the location of debug windows, the appearance of toolbars, and other aspects of STVD7’s graphical interface) is saved in separate files for each of the two contexts of STVD7. Graphical interface preferences while in Build context are saved in a *.wed interface preferences while in Debug context are saved in a *.wdb file. Each of these files is attached to a given workspace ...

Page 26

... Sample Make and/or Batch files (with default path .../spim11/spim11.bat .../c/cosmic/sample.bat .../c/hiware/build.mak .../c/hiware/rebuild.mak Forces a recom- C:/Program Files/Stm/st7toolchain/stvd7/ Table 2 summarizes the way each toolchain ST7MDTU5-EMU2B User Manual Table 1. Description of 1 Make/Batch File ) Batch file that forces a recompile of the application. Batch file that forces a recompile of the application ...

Page 27

... ST7MDTU5-EMU2B User Manual and intermediate file types necessary to exploit fully the STVD7 capabilities are listed. Table 2: Toolchain steps and their output files Toolchain: Compile or Assemble Step: Source File .asm Types Required asm -li macrost7.asm Options Resulting File .obj, .lst Types Linker Step: Required lyn macrost7 ...

Page 28

... STVD7 3.6 Creating a workspace 1 Select File>New Workspace. This command opens the New Workspace window where you define the name of your workspace and the directory in which you want to work. 28/71 Figure 10: New Workspace window ST7MDTU5-EMU2B User Manual ...

Page 29

... ST7MDTU5-EMU2B User Manual 2 Then, click Next>. The New Workspace: Project Settings dialog box appears: Here you enter your software toolchain, your executable filename and your build parameters either by typing or using the drop boxes. 3 Select the toolchain and enter the name of your application’s executable file. ...

Page 30

... STVD7. These samples are listed in 1 From the main menu, select File>Open Workspace. This command opens a window where you can browse to any folder you wish, and select an existing workspace. 30/71 Table 1). Here we have chosen build.mak as Table Figure 12: Open Workspace window ST7MDTU5-EMU2B User Manual Section 3.13). 1. ...

Page 31

... ST7MDTU5-EMU2B User Manual 2 The Workspace window opens. When a workspace is opened, all of the predefined project settings are loaded into the STVD7. The Workspace window will show a structured representation of the project. For example, mywork.wsp shows that it uses build.mak as the make file and sample.abs as the executable file. ...

Page 32

... Double Click here... folder. The Add Source Directory window pops up allowing you to enter or browse for a new directory, and filter out the file types of interest. You may also choose to specify a 32/71 Figure 14: Source Directories tab ST7MDTU5-EMU2B User Manual ...

Page 33

... ST7MDTU5-EMU2B User Manual directory that is relative to the workspace directory by clicking on the Path relative to the Workspace directory option load the executable file, as well as any intermediate files, click the Debug icon or the Reset Chip icon loaded. Before you can start debugging, you must set the target hardware device by configuring the MCU ...

Page 34

... Launch STVD7 and select Debug>Start Debugging from the main menu or click on 2 Open the Memory window by selecting View>Start Debugging from the main menu . 3 With the cursor in the Memory window, right-click the mouse to open the Memory contextual menu. 34/71 Figure 16: Open Workspace window . ST7MDTU5-EMU2B User Manual ...

Page 35

... ST7MDTU5-EMU2B User Manual 4 In the Memory contextual memory, select File>Restore Layout. The Load File to Memory window opens. 5 Browse to the folder where your programmable file is stored, and select either the Motorola format (*.s19) or the Intel format (*.hex) in the Files of type field. 6 Select your programmable file (*.hex or *.s19) and click Open. ...

Page 36

... STVD7 debugging. You may also access your project or toolchain settings in the event you wish to change them. From the main menu, select Project>Project Settings. 36/71 Figure 18: Project menu Figure 19: Project Settings window ST7MDTU5-EMU2B User Manual ...

Page 37

... ST7MDTU5-EMU2B User Manual You can change your settings here and continue running your application. When you exit STVD7, the system will ask you if you want to save these settings in the workspace you have been working in. If you choose yes, these will become your new workspace settings ...

Page 38

... Toolbars and Commands). By default (i.e. when saved automatically) the workspace is saved as file <application>.wsp. The name of the file corresponds to the name used for the executable file (for example, <application>.abs for a Hiware executable file). 38/71 Figure 21: Workpace tab of Options window ST7MDTU5-EMU2B User Manual ...

Page 39

... ST7MDTU5-EMU2B User Manual Note: Using the Configuration Setup dialog box (available from the MCU Configuration dialog box), you can also control what type of MCU configuration information is restored from a workspace file (*.wsp). 3.12 Debug context and Build context There are two STVD7 contexts, the build context and the debug context. Until now, in creating a workspace, and defining your project settings, you have been in the build context. To proceed step— ...

Page 40

... The first time you enter into the Debug context after having created a new workspace, the MCU Configuration window will be opened automatically. 2 Select Tools>MCU Configuration from the main menu. The MCU Configuration window will open. 40/71 ST7MDTU5-EMU2B User Manual Chapter 3. . (STVD7 has ...

Page 41

... ST7MDTU5-EMU2B User Manual An example of a typical MCU Configuration window is shown in MCU Name field Option configuration fields Note: The options shown in the above example may not be available for your particular target MCU. 3 Set the Target MCU. In the MCU name field, select the target device for which the application is intended from the dropdown box ...

Page 42

... The right column indicates the memory type of each zone. Depending on your target MCU, the available memory types may be: Peripherals, RAM, ROM, Stack, System, EEPROM, Reserved, Vectors, 42/71 Graphic memory configuration viewer Figure 24: Memory mapping ST7MDTU5-EMU2B User Manual page 43 for ...

Page 43

... ST7MDTU5-EMU2B User Manual Application. Some of these zones can have their type and size modified, others cannot be modified. Their definitions and properties are explained as follows: • Peripherals: Microcontroller internal or rebuilt peripherals registers. Their properties are defined as in the microcontroller datasheet. This memory cannot be modified. • ...

Page 44

... You can change a boundary address by dragging and dropping the triangle with the mouse to its new location. The triangle can be moved either up or down, left or right in the graphical viewer. 44/71 Figure 25: New MCU memory range ST7MDTU5-EMU2B User Manual ...

Page 45

... ST7MDTU5-EMU2B User Manual The MCU configuration that you specify will, by default, be saved in a workspace file (*.wsp) for the project. The next time the application is opened, the STVD will automatically set the MCU configuration (as well as the layout of opened windows and other debug information) to the same conditions you had when you left the last debugging session ...

Page 46

... STVD7 46/71 ST7MDTU5-EMU2B User Manual ...

Page 47

... ST7MDTU5-EMU2B User Manual 4 EMULATOR FEATURES 4.1 Main features of the ST7 HDS2 emulator series The features described below are common to all ST7 HDS2 emulators: • Real-time emulation capability (internal frequency from internal 0.5 MHz MHz). • Full memory emulation ( KB). • Real-time trace with 3 event conditions allowing selective recording. ...

Page 48

... Emulator Features 4.3 Emulator architecture The ST7MDTU5-EMU2B emulator is composed of 2 parts: The ST7 HDS2 (Hardware Development System) contains all of the common resources necessary to emulate any ST7 device (such as memory and the link interfaces with the PC). This board is connected to the PC via a parallel link and to the second part by two 50-pin connectors ...

Page 49

... ST7MDTU5-EMU2B User Manual • Hardware breakpoint control logic to manage breakpoints from the 16-bit address bus. • Logical analyser control logic to manage sophisticated recording and break events in the trace. • PC link: parallel interface for communication with PC. • ST7MDTU5-Active Probe interface—3 buses connect the ST7 HDS2 to ...

Page 50

... ST7-Addresses ST7 Generic Probe 50/71 follower: The probe emulation MCU is supplied with the CC ST7-ACTIVE PROBE Data PLD Automaton Data Control Decoder Emulation Signals Addresses Power Supply Application Follower ST7MDTU5-EMU2B User Manual ST7 Device Emulation I/O I/O, Peripherals Periph. Adapter MCU ST7MDTU5-TEB ...

Page 51

... ST7MDTU5-EMU2B User Manual 4.4 Output triggers Your ST7 HDS2 emulator has two output triggers, OUT1 and OUT2. The OUT1 and OUT2 outlets are available via SUB-click connectors located on the front panel of the ST7 HDS2 emulator box. OUT1 Trigger output ST7 HDS2 Emulator ...

Page 52

... A positive impulse is emitted on OUT1 and OUT2 when a specific condition is met. This impulse lasts for one Clock cycle. 52/71 ST7MDTU5-EMU2B User Manual ...

Page 53

... ST7MDTU5-EMU2B User Manual 4.5 Analyser probe input signals The ST7 HDS2 allows you to use 4 external input signals (TTL level). These signals are on pins 6,7,8,9 of the Analyser Probe connector located on the front panel of the emulator as shown below.You can view these probe inputs using ST7 Visual Debug. From the main menu, select View> ...

Page 54

... Run (Yellow)—indicates that the ST7 is running (not in RESET, WFI and HALT mode). • System (Red)—not used with this emulator. • Reset (Red)—not used with this emulator. ST7 ulator 54/71 Pow er Run U nused R eset Figure 28: Front panel of HDS2 emulator ST7MDTU5-EMU2B User Manual Analyser Probe Triggers ...

Page 55

... ST7MDTU5-EMU2B User Manual 4.7 On-chip peripherals You can configure certain on-chip peripherals in ST7 Visual Debug’s MCU Configuration dialog box (refer to so that the emulator accurately emulates your target device. The on-chip peripheral options supported by the emulator are: Fosc The emulator supports only the 12 MHz Fosc value that is generated by the emulator clock source ...

Page 56

... Emulator Features 56/71 ST7MDTU5-EMU2B User Manual ...

Page 57

... ST7MDTU5-EMU2B User Manual APPENDIX A: EMC CONFORMITY AND SAFETY REQUIREMENTS This emulator respects the EMC requirements of the European guideline 89/336/ EEC under the following conditions: • Any tester, equipment, or tool used at any production step or for any manipulation of semi-conductor devices must have its shield connected to ground. • ...

Page 58

... Appendix A: EMC Conformity and Safety Requirements 58/71 ST7MDTU5-EMU2B User Manual ...

Page 59

... Under certain circumstances, you may receive the following error message: "Connection Error (LPT1/LPT2): Interconnection failure. Verify your input/output cable." This may mean that the setup of the LPT1 or LPT2 port on your PC is not compatible with the ST7MDTU5-EMU2B. Appendix B: Troubleshooting THEN... Ensure that: • ...

Page 60

... Warning: Be cautious in performing a Hardware Test on the emulator while an application is open. The opened application WILL BE corrupted by the hardware testing process. If you find that your application has been corrupted, simply close the application, and reopen it. 60/71 ST7MDTU5-EMU2B User Manual Compatible Parallel Port Modes Bidirectional or Centronics (Nibble) Product Support on page 65). ...

Page 61

... ST7MDTU5-EMU2B User Manual The Hardware Test dialog box shows a list of different tests that can be performed on the emulator. Check the box of each test that you wish to perform (they are all checked by default) and click Apply to start the hardware test. The Hardware tests ...

Page 62

... Appendix B: Troubleshooting 62/71 ST7MDTU5-EMU2B User Manual ...

Page 63

... ST7MDTU5-EMU2B User Manual APPENDIX C: GLOSSARY Application Board This is the printed circuit board onto which you wish to connect the target ST7 MCU. It should include a socket or footprint so that you can connect the application board to your emulator or development kit using the probe and the appropriate device adapter ...

Page 64

... TEB Target Emulation Board. This is the interface between the emulator and the application board directly plugged into the HDS2 Generic Probe and connected to the application board via an adapter. User Application Board Designates your application board. 64/71 ST7MDTU5-EMU2B User Manual ...

Page 65

... ST7MDTU5-EMU2B User Manual PRODUCT SUPPORT If you experience any problems with this product or if you need spare parts or repair, contact the distributor or ST sales office where you purchased the product. Getting prepared before you call Collect the following information about the product before contacting ST or your ...

Page 66

... Below is a list of manufacturers and dealers of SMB and BNC connectors that can be used with our product. European manufacturer and product references: The EXTERNAL clock male connector on the emulation probe has the following commercial reference SMB range: Ref.: 114665. 66/71 ST7MDTU5-EMU2B User Manual Radiall For worldwide sales locations, visit Radiall’s website at: www.radiall.com ...

Page 67

... ST7MDTU5-EMU2B User Manual Adaptable Female connectors that fit this connector are: - SMB upright range Ref.: 114005 for cable 2,6. Ref.: 114003 for cable 4,2. Ref.: 114009 for cable 3,8. - SMB kneed range Ref.: 114165 for cable 2,6. Ref.: 114163 for cable 4,2. ...

Page 68

... Product Support 68/71 ST7MDTU5-EMU2B User Manual ...

Page 69

A Active Probe architecture ........................................... 49 hardware ............................................... 49 analyser probe signals .................................. 53 C clock selecting frequency ............................... 55 selecting source .................................... 55 configuration analyser probe input signals ................. 53 output triggers ....................................... 51 connections emulator power supply.......................... 19 ...

Page 70

... R RAM minimum ............................................... 11 ROM size ...................................................... 42 S safety requirements ...................................... 57 software updates ................................................. 66 ST7MDTU5 EMU2B architecture ........................................... 48 main features of .................................... 47 specific features of ................................ 47 STVD7 about ..................................................... 23 build context.......................................... 39 contexts................................................. 39 creating a workspace ............................ 28 debug mode .......................................... 39 installing ................................................ 21 main features ........................................ 23 MCU configuration ................................ 40 opening binary files ............................... 33 opening workspaces ...

Page 71

... No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. ...

Related keywords