Page 1
ST7MDTU3-EMU2B HDS2 Series Emulator User Manual Release 1.1 January 2002 Ref: DOC-ST7MDTU3-EMU2B...
Page 2
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 2.
Thanks for choosing ST7! This manual will help you get started with the ST7MDTU3-EMU2B emulator kit. The ST7MDTU3-EMU2B emulator allows you to control the execution of programs that you have written for the ST7263BKX MCU and assists you in debugging your application hardware as well as your software.
Emulator Configuration Figure 1 shows the configuration for the ST7MDTU3-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 ST7MDTU3-Active Probe. The ST7...
ST7MDTU3-EMU2B Emulator User Manual 1 - Introduction Chapter 3: STVD7 on page 17, explains how to install ST7 Visual Debug on your PC, and set up the emulator configuration so that you can begin your debugging session. Once assembled and linked, the application software is ready to be downloaded into the ST7 emulator.
For more information, application notes, FAQs and software updates on all the ST microcontroller families, check out the CD-ROM or our website: http://mcu.st.com For assistance on all ST microcontroller subjects, or if you need help with using your emulator, use the contact list provided in Product Support on page 59.
21 MB of free hard disk space to install all of the ST7 tools. Delivery Checklist The emulator kit (ref.: ST7MDTU3-EMU2B), is delivered with the following (refer to Figure 2 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.
® Debug and a Windows Epromer. (Not shown.) Figure 2: Main Components of ST7MDTU3-EMU2B Emulator Kit Installing the Hardware The ST7 HDS2 emulator is connected through the parallel port to a PC computer which runs the control software (ST7 Visual Debug) as explained later.
Page 11
SO34 Socket Adapter Application Board Application Board Power Supply Figure 3: ST7MDTU3-EMU2B Connection Flow Step 1: Connecting the Emulator to your PC Shutdown and power-off the PC that is to be connected to the emulator. 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...
Page 12
2 - Getting Started ST7MDTU3-EMU2B Emulator User Manual Be sure to use the parallel cable provided with the emulator—using a longer parallel cable may cause emulator malfunctions. to LPT1 or LPT2 rear panel SUBD25 connector Figure 4: Connecting the Emulator to the PC Step 2: Connecting the Emulator to the Probe Ensure that the application and the emulator are powered-off.
Page 13
ST7MDTU3-EMU2B Emulator User Manual 2 - Getting Started EMC-Compliant Probes: In order to work under an EMC-compliant environment, you will have to clip two or three EMC-ferrites on the 50-wire flat cables linking the probe to the emulator box. Place these ferrites as close to the emulator window as Figure 6 possible.
Page 14
2 - Getting Started ST7MDTU3-EMU2B Emulator User Manual If you are using the SO34 package, proceed as follows: To connect the probe to its device adapter and then to your application, follow these steps (see Figure 7 Solder the SO34 device adapter (ref.: DB354 & DB355) to your application board.
Page 15
Figure 8: SDIP32 Package Connections Step 4: Connecting the emulator power supply Warning: Make sure that both the ST7MDTU3-EMU2B and the application are OFF before making any connections. Connect the external power supply provided with the emulator to the rear panel of the mainframe using a 5-pin DIN connector.
2 - Getting Started ST7MDTU3-EMU2B Emulator User Manual Power up the ST7 HDS2 emulator from the ON/OFF switch located on the rear panel. The LED labelled Power on the front panel should then light up. Power up your application. Debuggers Supporting the ST7 HDS2 Emulator Series ST7 Visual Debug (also known as STVD7) is the STMicroelectronics debugger currently supporting the ST7 HDS2 emulator.
Select Install Your Development Tools from the list of options. A new screen will appear listing the different families of STMicroelectronics MCUs. Use your mouse to place the cursor over the ST7 Tools option. Choose ST Tools , then ST7 Toolchain from the lists that appear. 17/63...
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual The install wizard will be launched. Follow the instructions that appear on the screen. You can choose to install the complete toolchain (i.e. the appropriate version of STVD7, STVP7 and the Assembler-Linker) for each type of development tool (development kit, HDS2 or EMU3 emulators or simulator), or perform a customized installation.
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 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.) If you choose Cancel, you will be prompted again to enter the toolchain paths the next time you launch STVD7.
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual Hardware Test for more information. • A powerful online help facility can be invoked at any time to give additional information about the commands, the processor or the emulator kit. Workspaces STVD7 organizes project development and debugging into workspaces.
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 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...
Page 22
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual linking or both. Default *.mak or *.bat files are often included with the toolchains—for example, maker.mak is included with the Hiware toolchain and simply recompiles your application if it detects that the file has been saved since the start of your debugging session.
Page 23
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 and intermediate file types necessary to exploit fully the STVD7 capabilities are listed. Table 2: Toolchain steps and their output files Toolchain: ST Macroassembler Hiware Cosmic Compile or Assemble Step: Source File .asm .c, .asm...
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual Creating a workspace 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. Figure 10: New Workspace window...
Page 25
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 Then, click Next> . The New Workspace: Project Settings dialog box appears: Figure 11: New workspace project settings Here you enter your software toolchain, your executable filename and your build parameters either by typing or using the drop boxes.
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual Finally, you must define a make file or a batch file. There are several sample files provided with STVD7 (see Table 1 ). Here we have chosen build.mak as the default make file, used when the Build command is issued, and rebuild.mak as the make file to use when the Rebuild command is issued.
Page 27
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 The Workspace window opens. Figure 13: Workspace window 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 28
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual If you click on the Source Directory tab, the window will show every source and intermediate file type (*.c, *.s, *.asm, *.h or *.o) in the selected directory. Figure 14: Source Directories tab...
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 directory that is relative to the workspace directory by clicking on the Path relative to the Workspace directory option. Figure 15: Add source directory To load the executable file, as well as any intermediate files, click the Debug...
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual The range of debugging features available will be more limited because the source files will not be accessible. Launch STVD7 and select File>Open Workspace from the main menu. Browse to the folder where your binary file is stored, and select ST7 Application files (*.abs, *.s19, *.hex, *.elf) in the Files of type field.
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 In the Memory contextual memory, select File>Restore Layout . The Load File to Memory window opens. 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.
Page 32
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual debugging. You may also access your project or toolchain settings in the event you wish to change them. Figure 18: Project menu From the main menu, select Project>Project Settings . Figure 19: Project Settings window...
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 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 34
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual Choose whether you wish your saved workspace to include either the visual environment or the debugging information or both. Select which windows will appear docked when a project is opened by checking the appropriate check boxes in the Floating windows in the main frame area.
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 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.
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual 3.12.3 Switching between contexts The switch between contexts usually occurs when the Start Debugging and Stop Debugging commands are used. From the main menu, choose Debug>Start Debugging or Stop Debugging or click on the Start Debugging or Stop Debugging icons shown in...
Page 37
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 Chapter 3 An example of a typical MCU Configuration window is shown in MCU Name field Memory configuration Graphic memory Option configuration fields configuration viewer fields Figure 23: MCU Configuration window Note: The options shown in the above example may not be available for your particular target MCU.
Page 38
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual Configuring the MCU Memory. The default memory settings depend on the MCU selected. However, you can configure the memory settings as you wish if your application requires non-default settings. This feature would enable you, for instance, to temporarily increase the ROM size during the development phase of your application.
Page 39
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 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.
Page 40
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual Click on the Modify button at the bottom of the window. A New MCU Memory Range dialog box will open, allowing you to change either the address range and/or the memory type of the memory zone.
ST7MDTU3-EMU2B Emulator User Manual 3 - STVD7 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 42
3 - STVD7 ST7MDTU3-EMU2B Emulator User Manual 42/63...
<4.0 V), the V default value is 4.0 V. Emulator Architecture The ST7MDTU3-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).
Page 44
4 - Emulator Features ST7MDTU3-EMU2B Emulator User Manual • The ST7MDTU3-Active Probe contains the specific resources necessary to emulate the ST72F63 MCU, and is used as a link between the ST7 HDS2 and your application. ST7MDTU3-EMU2B Generic ST7 HDS2 Flat Cables...
Page 45
ST7MDTU3-EMU2B Emulator User Manual 4 - Emulator Features • ST7MDTU3-Active Probe interface—3 buses connect the ST7 HDS2 to the ST7MDTU3-Active Probe: Address bus (16-bit) of the ST7 emulation chip used for RAM addressing and trace. DATA bus (8-bit) of the ST7 emulation chip.
Page 46
4 - Emulator Features ST7MDTU3-EMU2B Emulator User Manual ST7 core and gives access to all on-chip peripherals. • Control logic: Control logic is provided to manage the software execution by the user (i.e. program running and halting). • Application V follower: The probe emulation MCU is supplied with the same voltage as the application (i.e.
ST7MDTU3-EMU2B Emulator User Manual 4 - Emulator Features 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.
Page 48
4 - Emulator Features ST7MDTU3-EMU2B Emulator User Manual Right-click the mouse while the mouse pointer is anywhere in the Hardware Events window. Choose New Hardware Event from the contextual menu. The Hardware event settings dialog box will open as below.
ST7MDTU3-EMU2B Emulator User Manual 4 - Emulator Features 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.
4 - Emulator Features ST7MDTU3-EMU2B Emulator User Manual Front Panel LEDs Four LEDs on the front panel of the HDS2 box indicate the state of the development tool during emulation: • Power (Green)—indicates that the 5 V power supply is ON.
ST7MDTU3-EMU2B Emulator User Manual 4 - Emulator Features 4.7.1 Fosc The emulator can work with three Fosc values that are generated by the emulator clock source (max. frequency = 24 MHz, min. frequency = 6 MHz): • 24 MHz .
Page 52
4 - Emulator Features ST7MDTU3-EMU2B Emulator User Manual 52/63...
ST7MDTU3-EMU2B Emulator User Manual Appendix A: Troubleshooting APPENDIX A:TROUBLESHOOTING Identifying the Problem IF YOU RECEIVE THE FOLLOWING: THEN... Error Message (when starting the Ensure that: STVD7 for HDS Emulator): • parallel cable connected between “No message received from emula- development board and one of the PC’s parallel ports tor.”...
Appendix A: Troubleshooting ST7MDTU3-EMU2B Emulator User Manual Follow the messages displayed on the screen and when prompted, press the key required to enter the BIOS setup (usually a function key or the ESC key). Select the parallel ports menu. (This may be listed under I/O ports.) Change the Mode of the LPT port that you have connected the development board to (i.e.
Page 55
ST7MDTU3-EMU2B Emulator User Manual Appendix A: Troubleshooting 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...
Page 56
Appendix A: Troubleshooting ST7MDTU3-EMU2B Emulator User Manual 56/63...
ST7MDTU3-EMU2B Emulator User Manual Appendix B: Glossary APPENDIX B: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 58
Appendix B: Glossary ST7MDTU3-EMU2B Emulator User Manual ST7 Visual Debug (STVD7) A graphic debugger software package that allows you to debug applications destined for the ST7 family of MCUs, either using a built-in simulator function, a Development Kit or an HDS2 Emulator.
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 distributor: Name of the company where you purchased the emulator kit.
Sydney (61-2) 9580 3811 Taipei (886-2) 2378-8088 Software updates You can get software updates from the ST Internet web site http://mcu.st.com. For information on firmware and hardware revisions, call your distributor or ST using the contact list given above. Hardware spare parts Most of the hardware you will require is included in the emulator kit.
Page 61
ST7MDTU3-EMU2B Emulator User Manual Product Support SMB kneed range Ref.: 114165 for cable 2,6. Ref.: 114163 for cable 4,2. SMB to BNC range Ref.: 191214. Adapter SMB female / BNC male. Ref.: 191215. Adapter SMB female/ BNC female. USA manufacturer...
Page 62
Product Support ST7MDTU3-EMU2B Emulator User Manual 62/63...
Page 63
This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics. The ST logo is a registered trademark of STMicroelectronics. ® Intel is a U.S.
Need help?
Do you have a question about the ST7MDTU3-EMU2B and is the answer not in the manual?
Questions and answers