SofTec Microsystems ST7 Series User Manual

Starter kit for stmicroelectronics st7flite2

Advertisement

Quick Links

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ST7 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for SofTec Microsystems ST7 Series

  • Page 2 PK-ST7FLITE2 Starter Kit for STMicroelectronics ST7FLITE2 User’s Manual ® Copyright © 2004 SofTec Microsystems DC00746...
  • Page 3 Web: http://www.softecmicro.com Important SofTec Microsystems reserves the right to make improvements to the PK Series of Starter Kits, their documentation and software routines, without notice. Information in this manual is intended to be accurate and reliable. However, SofTec Microsystems assumes no responsibility for its use; nor for any infringements of rights of third parties which may result from its use.
  • Page 4: Table Of Contents

    PK-ST7FLITE2 User's Manual Contents 1. Overview What is the PK-ST7FLITE2 Starter Kit? ST7FLITE2 Built-In Debug Features PK-ST7FLITE2 Board Layout STVD7 Integrated Development Environment Metrowerks and Cosmic Demo Versions Recommended Reading Software Upgrades 2. Getting Started PK-ST7FLITE2 Components Host System Requirements Installing the Software Installing the Hardware Application Tutorial...
  • Page 5 Contents Advanced Breakpoints Limitations DataBlaze Programming Utility 5. Troubleshooting Common Problems and Solutions Communication can’t be established with PK-ST7FLITE2 A communication error is returned on a program execution command (Run, Continue, Step, etc.) The program execution stops at the beginning of user’s code The program execution stops at an unexpected location Getting Technical Support Appendix A.
  • Page 6: Overview

    PK-ST7FLITE2 User's Manual 1. Overview What is the PK-ST7FLITE2 Starter Kit? The PK-ST7FLITE2 Starter Kit is an entry level tool which allows you to get started with the STMicroelectronics ST7FLITE2 microcontroller. The main features of the ST7FLITE2 microcontroller are: § Up to 8-MHz ST7 CPU (with a 16-MHz external oscillator);...
  • Page 7: St7Flite2 Built-In Debug Features

    § Prototyping area. Note: the PK-ST7FLITE2 starter kit has been designed for evaluation purposes only. For serious debugging, we suggest you to switch to the SofTec Microsystems inDART-STX Series of debugging/programming tools. ST7FLITE2 Built-In Debug Features The ST7FLITE2 microcontroller features an ICC (In-Circuit Communication) serial interface module which allows to communicate with a host device through two dedicated pins (ICCDATA and ICCCLK).
  • Page 8: Pk-St7Flite2 Board Layout

    PK-ST7FLITE2 User's Manual to-ICC circuitry which allows the host PC to communicate to the microcontroller through a standard USB cable. PK-ST7FLITE2 Board Layout The PK-ST7FLITE2 board has the following hardware features: 1. A “USB to ICC Interface” section. It contains the circuitry needed to electrically and logically translate ICC-like commands sent by the host PC through the USB cable to the ICC interface of the microcontroller.
  • Page 9: Stvd7 Integrated Development Environment

    1. Overview The PK-ST7FLITE2 Board STVD7 Integrated Development Environment The PK-ST7FLITE2 user interface is based on the ST7 Visual Debug Integrated Development Environment (STVD7). STVD7 enables programs to be executed and stopped where desired, while viewing the memory contents. It offers the ability to step through and examine code at the C source level and the Assembly instruction level.
  • Page 10: Metrowerks And Cosmic Demo Versions

    PK-ST7FLITE2 User's Manual Metrowerks and Cosmic Demo Versions Both of these third-party companies have developed a C compiler for use with ST7 microcontrollers. A demo version of each compiler is present on the SofTec Microsystems PK-ST7FLITE2 “System Software” CD. Recommended Reading This documentation describes how to use PK-ST7FLITE2 together with the STMicroelectronics STVD7 IDE.
  • Page 12: Getting Started

    PK-ST7FLITE2 Components The PK-ST7FLITE2 package includes the following items: 1. The PK-ST7FLITE2 evaluation board; 2. A USB cable; 3. The SofTec Microsystems PK-ST7FLITE2 “System Software” CD-ROM; 4. A “QuickStart Tutorial” color poster; 5. This user’s manual. Host System Requirements The PK-ST7FLITE2 in-circuit debugger is controlled by an Integrated Development Environment running under Windows (STVD7).
  • Page 13: Installing The Software

    Setup.exe file located on the CD-ROM root). Choose “Install Instrument Software” from the main menu. 3. A list of available software should appear. Click on the “Install PK-ST7 Series” option. 4. Follow the on-screen instructions. Note: if you are installing the PK-ST7FLITE2 system software on Windows 2000 or Windows XP you must have logged in as Administrator.
  • Page 14: Application Tutorial

    “OSC_CLK” jumper are inserted. 3. Start the PK-ST7FLITE2 user interface by selecting Start > Programs > SofTec Microsystems > PK-ST7 Series > STVD7 for PK-ST7 Series. The first time you launch the PK-ST7FLITE2 user interface you are prompted to enter the toolchain paths to be used by STVD7’s integrated development environment.
  • Page 15 4. Click “OK”. The PK-ST7FLITE2 user interface will open. 5. From the main menu, choose File > Open Workspace. Select the “adc.wsp” workspace file that is located under the “\Program Files\SofTec Microsystems\PK- ST7 Series\STVD7\Samples\PK-ST7FLITE2\Asm\Adc” directory. Click “Open”. 6. The application has already been assembled and the executable file generated. From the main menu, choose Debug >...
  • Page 16 PK-ST7FLITE2 User's Manual Debugging Session Started 7. From the main menu, select Debug > Run. The program will be executed in real-time. By rotating the potentiometer on the demo board, you affect the results of the A/D conversion, and the binary value of each conversion is displayed on the LEDs. 8.
  • Page 17: Additional Examples

    For an in-depth guide of all of the user interface features, select Help > Search from the main menu. Additional Examples Additional examples can be found under the “\Program Files\SofTec Microsystems\PK- ST7 Series\STVD7\Samples\PK-ST7FLITE2\” directory. Compiling C examples requires the presence of the Metrowerks or Cosmic C compiler.
  • Page 18: Hardware Features

    PK-ST7FLITE2 User's Manual 3. Hardware Features Introduction PK-ST7FLITE2 is an in-circuit debugger—it programs files into the ST7FLITE2 microcontroller and offers debugging features like real-time code execution, stepping, and breakpoints. Its debugging features are achieved thanks to the microcontroller’s integrated ICC (In-Circuit Communication) module and DM (Debug Module). The ICC module communicates with the host PC board (via the “USB to ICC Interface”...
  • Page 19: Usb To Icc Interface

    3. Hardware Features a wrong or non-existent clock source has been programmed into the microcontroller’s Option Bytes. For more information, please read “Appendix B. Clock Source Options”. USB to ICC Interface This section contains the circuitry needed to electrically and logically translate ICC-like commands sent by the host PC through the USB cable to the ICC interface of the microcontroller.
  • Page 20: Prototype Area

    PK-ST7FLITE2 User's Manual Prototype Area The prototype section features both a standard, thru-hole area (for mounting traditional components) and a SMD area (for soldering SMD components in SOIC package). Page 19...
  • Page 22: Debugging Features

    PK-ST7FLITE2 User's Manual 4. Debugging Features Limitations Some target on-chip resources are wasted for debugging purposes. In particular: § 5 stack levels (bytes) are wasted. § ICCDATA and ICCCLK lines are reserved for programming and in-circuit debugging. § The TRAP instruction and the TRAP interrupt vector are reserved for the on-chip debug module.
  • Page 23: Hardware Model Settings

    4. Debugging Features The MCU Configuration Dialog Box Hardware Model Settings First of all, verify that the hardware model corresponds to “PK-ST7FLITE2”. The “Settings” button then allows you to set up detailed parameters used by PK-ST7FLITE2 to perform its debugging activities. All of the PK-ST7FLITE2 debugging and programming capabilities rely on the ICC (In- Circuit Communication) mode of the target device.
  • Page 24 PK-ST7FLITE2 User's Manual The Settings Dialog Box The “ICC Mode Entry” parameter allows you to specify how PK-ST7FLITE2 will enter the ICC mode. You can choose to use the Option Bytes programmed into the device or to bypass them and use a “forced” value instead. In the former case (“Use Option Bytes”), you must provide the required clock source (specified in the Option Bytes value programmed into the device)—otherwise the device won’t work.
  • Page 25 4. Debugging Features Start Debugging Sequence Page 24...
  • Page 26: Device And Option Bytes Settings

    PK-ST7FLITE2 User's Manual Device and Option Bytes Settings The “Set Option Bytes” button allows you to access the Edit Option Bytes dialog box. The following figure shows the Edit Option Bytes dialog box. The Edit Option Bytes dialog box Particular attention must be paid in correctly setting each of the Option Bytes parameters. Improper settings may cause the target microcontroller not to work correctly (or not to work at all).
  • Page 27: Instruction Breakpoints And Advanced Breakpoints

    4. Debugging Features Instruction Breakpoints and Advanced Breakpoints Advanced breakpoints differ from instruction breakpoints (that is, standard breakpoints) in that they can stop program execution depending on complex situations. Advanced breakpoints allow you, for example, to stop execution when a specific value is written to a specific address, or when two specified opcodes are fetched sequentially.
  • Page 28: Advanced Breakpoints Limitations

    PK-ST7FLITE2 User's Manual § As soon as a complex breakpoint is set, previously set instruction breakpoints are automatically disabled—and vice versa; § Step commands (Step Into, Step Over, Step Out, Run to Cursor) waste one instruction breakpoint. When issuing a step command, all previously set instruction or advanced breakpoints are disabled, the step command is executed, and then previously set instruction or advanced breakpoints are re-enabled.
  • Page 29: Datablaze Programming Utility

    DataBlaze Programming Utility A full-featured programming utility (DataBlaze) is also provided with the PK-ST7FLITE2 Starter Kit. To start the DataBlaze utility select Start > Program Files > SofTec Microsystems > PK-ST7 Series > DataBlaze Programmer. DataBlaze offers the following advanced features: §...
  • Page 30 PK-ST7FLITE2 User's Manual The DataBlaze User Interface Page 29...
  • Page 32: Troubleshooting

    § Click the “Device Manager” button. § The “PK-ST7 Series Starter Kit” device will be shown with an exclamation mark next to it. Double click on this device. § In the “General” tab, click the “Reinstall Driver” button. Follow the on-screen instructions.
  • Page 33: A Communication Error Is Returned On A Program Execution Command (Run, Continue, Step, Etc.)

    5. Troubleshooting 3. Make sure you are working with the correct hardware model. To view/change the hardware model in use, choose Tools > MCU Configuration from the PK-ST7FLITE2 user interface’s main menu. 4. Make sure that the clock circuitry is working according to the Option Bytes specifications.
  • Page 34: Getting Technical Support

    SofTec Microsystems partner. SofTec Microsystems offers its customers a free technical support service at support@softecmicro.com. Before contacting us, we advise you to check you are working with the latest version of the PK-ST7FLITE2 system software (upgrades are available free of charge at http://www.softecmicro.com).
  • Page 36: Appendix A. Electrical And Physical Specifications

    PK-ST7FLITE2 User's Manual Appendix A. Electrical and Physical Specifications Operating Voltage 4.75 to 5.0 V DC (provided by the USB connection) Power Consumption 200 mA (max) Dimensions 137 x 86 x 15 mm Weight 55 g Operating Temperature 0 °C to 50 °C Storage Temperature -20 °C to 70 °C Humidity...
  • Page 38: Appendix B. Clock Source Options

    PK-ST7FLITE2 User's Manual Appendix B. Clock Source Options Overview The ST7FLITE2 microcontroller can work with three different clock sources: § Internal RC oscillator (1 MHz); § External crystal/ceramic resonator; § External clock input. Which clock source to use is specified by programming special bits in the Option Bytes (as explained below).
  • Page 39 Appendix B. Clock Source Options 2. Set the Option Bytes so that the RC oscillator is enabled (OSC bit). 3. Optionally, you may turn on the PLL multiplier (x4 or x8) to achieve a fCPU of 4 MHz or 8 MHz, respectively (PLLOFF and PLLx4x8 bits). 4.
  • Page 40: External Crystal/Ceramic Resonator

    PK-ST7FLITE2 User's Manual External crystal/ceramic resonator To use an external crystal/ceramic resonator: 1. The crystal or resonator must be connected to OSC1 and OSC2 pins as described in the ST7FLITE2 datasheet. 2. Set the Option Bytes so that the RC oscillator is disabled (OSC bit). 3.

This manual is also suitable for:

Pk-st7flite2

Table of Contents