stick user manual

34
ST7 FLASH STICK User Manual Release 1.1 September 2002 Ref: DOC-STICK-PP

Upload: adordi

Post on 07-Apr-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 1/34

ST7 FLASH STICK

User Manual

Release 1.1

September 2002

Ref: DOC-STICK-PP

Page 2: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 2/34

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 OFSTMicroelectronics. As used herein:

1. Life support devices or systems are thosewhich (a) are intended for surgical implant into

the body, or (b) support or sustain life, and whose

failure to perform, when properly used inaccordance with instructions for use providedwith the product, can be reasonably expected toresult in significant injury to the user.

2. A critical component is any component of a lifesupport device or system whose failure to

perform can reasonably be expected to cause the

failure of the life support device or system, or toaffect its safety or effectiveness.

INSTRUCTIONS FOR USE—WARNING

This product is conform to the 89/336/EEC Directive. It complies with the ITE EN55022 standard forEMC emissions and generic 50082-1 (1992 edition) immunity standards.

This product is an FCC Class-A apparatus. In a residential environment, it may cause

radioelectrical disturbances.

In addition, this programming board is not contained in an outer casing; consequently, it cannot be

immune against electrostatic discharges (ESD). It should therefore be handled only in static safe

working areas. Please refer to Appendix A: User and Work Environment Precautions on page 20 for

relevant safety information

Page 3: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 3/34

Table of Contents

3/34

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

1.1 In-Circuit Communication protocol (ICC) ...................................................... 5

1.2 Your host PC and application board requirements ....................................... 5

1.3 ICC connector signals ................................................................................... 6

1.4 About this manual... ...................................................................................... 7

Chapter 2: Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

2.1 Delivery checklist .......................................................................................... 8

2.2 Installing the STVP7 software ....................................................................... 8

2.3 Setting up the hardware ................................................................................ 9

2.4 Launching STVP7 for the first time ............................................................. 11

Chapter 3: Programming With STVP7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Appendix A: User and Work Environment Precautions . . . . . . . . . . . . . . . . . 20

Appendix B: Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

B.1 Test pins ..................................................................................................... 22

B.2 Error messages .......................................................................................... 23

B.3 “Problem on supply voltages” ..................................................................... 23

B.4 “Cannot communicate with the device” ....................................................... 24

Appendix C: Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Appendix D: Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Product Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Getting prepared before you call............................................................................... 30

Contact list ................................................................................................................ 30

Software updates ...................................................................................................... 31

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

Page 4: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 4/34

STICK User Manual 1 - Introduction

4/34

1 INTRODUCTION

The ST In-circuit Communication Kit (STICK) is an ideal introduction to the easy-

to-use world of ST7 Flash microcontrollers. It is a complete kit for programming the

Flash ST7 microcontroller of the following series:

• ST7Lite series

• ST7226x series

• ST7232x series

• ST7252x series

• ST7256x series

The STICK acts as a communications interface between your PC and the ST7

Flash microcontroller soldered on your application board. It can program ST7Flash devices powered with any voltage within their datasheet-specified range.

STICK is delivered ready-to-use, and it includes ST7 Visual Programmer software

(STVP7), the ST7 Flash STICK Interface board, a power supply and all necessary

cables.

Figure 1: STICK interface board

Page 5: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 5/34

1 - Introduction STICK User Manual

5/34

1.1 In-Circuit Communication protocol (ICC)

An In-Circuit Communication (ICC) protocol has been developed by

STMicroelectronics to minimize the hardware needed on your application board

and the number of signals used by the ST7 to communicate with the outside world.

To handle the ICC protocol, an ICC monitor is embedded in all ST7 Flashmicrocontroller types. For more detailed information about the ICC Protocol, refer

to the ST7 ICC Protocol Reference Manual , available in PDF format on the MCU-

on-CD CD-ROM.

The three different applications described below use the ICC protocol:

• ICP: In-Circuit Programming is an ST7 FLASH programming method using the

ICC communication protocol. ICP is used to update the entire contents of the

FLASH memory (including option bytes). For more details, see “FLASH

Programming” reference manual.

• ICT: In-Circuit Testing is a flexible method of performing production test

routines that can be easily modified and extended without affecting the content

of the FLASH program memory.

• ICD: In-Circuit Debugging is the ability to debug a FLASH device using the ICC

protocol. This ability is used in low-cost ST7 emulators such as SofTec ’s

InDART emulator.

1.2 Your host PC and application board requirements

Both hardware and software components of the STICK have been designed to

work with PCs meeting the following requirements:

• One of the following operating systems: Microsoft ® Windows ® 95, 98, 2000,

Millennium, NT ® or XP.

• Intel ® Pentium (or compatible) processor with minimum speed of 133 MHz.

• Minimum RAM of 32 MB (64 MB recommended).

• 50 MB of free hard disk space to install all of the ST7 tools.

Note: Windows ® 2000, NT ® and XP users must have administrator privileges to install the required

software.

You must design your application with an HE10 connector on your application

board to carry the ICC signals described in the next section.

Page 6: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 6/34

STICK User Manual 1 - Introduction

6/34

1.3 ICC connector signals

Depending on the type of ST7 Flash microcontroller you are using, ICP needs a

minimum of 4 or 5 signals and up to 6 or 7 signals to be connected to the ICC

connector on the STICK Interface board.

• The following 4 or 5 signals are mandatory on the ICC connector:

- GND: Ground.

- ICCDATA: During ICP activity, the application board must not drive (source

or sink) more than 1 mA of current.

- ICCCLK: During ICP activity, the application board must not drive (source

or sink) more than 1 mA of current.

- ICCRESET: During ICP activity, the application board must not drive

(source or sink) more than 5 mA of current.

- ICCSEL_VPP: The application pull-down resistor must not be lower than

10 kOhm. (Note that the ICCSEL_VPP signal doesn’t exist on the

ST72FLITE0x).

• The following 2 signals are optional:

- VDD_appli: Needed if the W1 jumper is in the VDD position (see Section

2.3 on page 9).

- ICCOSC: Safe clock. Only necessary if ICP_OPT_Disable programming

mode (see Section 2.4 on page 11) is used and if your ST7 Flash

application clock is not a square wave from 0 V to VDD (if, for example, you

use the internal RC oscillator of the ST7 Flash Microcontroller, or have a

resonator or an RC on the OSC1/OSC2 pins). In this case ICCOSC safe

clock must be connected to the OSC1 pin of the ST7 Flash microcontroller

in your application.

For more information, see the datasheet of the ST7 Flash microcontroller.

GND 1 2 ICCDATA

GND 3 4 ICCCLK

GND 5 6 ICCRESET

VDD_appli 7 8 ICCSEL_VPP

ICCOSC 9 10 GND

Figure 2: ICC connector map

Page 7: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 7/34

Page 8: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 8/34

STICK User Manual 2 - Getting Started

8/34

2 GETTING STARTED

2.1 Delivery checklist

Check that your STICK box contains the following:

• One STICK interface board (marked “ST7 FLASH STICK-LPT”).

• One AC/DC power supply adaptor.

• One PC parallel port cable.

• One 10-pin HE10 type ribbon cable for ICC connectors.

• A “Welcome to the world of ST7 FLASH” letter.

• One “Microcontroller Development Tools” CD-ROM containing:

- This user manual.

- ST7 Visual Programmer (STVP7) software and other ST7 development

tools software.

• A Product and Tool Selection Guide .

• The ST7 ASM Quick Reference Guide .

• The “MCU on CD” CD-ROM which contains datasheets, application notes and

other documentation for ST Microcontrollers.

2.2 Installing the STVP7 software

Your STICK comes with a CD-ROM containing several ST7 software tools. These

tools are compatible with Windows ® 95, 98, Me, 2000, XP and Windows ® NT ®

operating systems.

Note: Windows ® 2000, NT ® and XP users must have administrator privileges to install the STVP7.

To install and setup the ST7 software tools, follow these steps:

1 Close all other open applications on your Windows desktop.

2 Insert the Microcontroller Development Tools CD-ROM into your CD-ROM

drive. The CD-ROM’s autorun feature will open up a welcome screen on your

PC. If the autorun feature does not work, use Windows ® Explorer to browse to

the CD-ROM’ s root folder, and double-click on Welcome.exe.

3 Use your mouse to place the cursor over the ST7 option. Choose ST7

Programming Software from the list that appears.

4 The install wizard will be launched. Follow the instructions that appear on the

screen.

Page 9: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 9/34

2 - Getting Started STICK User Manual

9/34

5 Reboot your PC as prompted before connecting the hardware (see Setting up

the hardware on page 9) and launching STVP7 for the first time.

2.3 Setting up the hardware

1 Connect the STICK interface board to the LPT1 port of your host PC with thesupplied parallel cable.

Note: Be sure to use the PC parallel port cable provided with your STICK—using a longer

PC parallel port cable may cause malfunctions.

Connect the cable directly between the host PC and the STICK interface board—the insertion

of additional cables or switch boxes between the host PC and the STICK interface board may

cause malfunctions.

If a dongle (a hardware key required by some software packages) is already connected to the

PC’s parallel port, it should not interfere with STICK interface board. However, if a malfunction

of the board should occur, please remove the dongle and restart the above sequence.

2 Configure the STICK by setting W1 jumper according to your application.

The W1 jumper must be set to one of the three following positions:

- VDD: The power supply voltage of the STICK’s ICC buffer follows the

application VDD. This position allows you to work with any VDD value

allowed in the ST7 datasheet. When the jumper is in this position, you must

Figure 3: STICK interface board component layout

Power supply

connector

W1 jumper

ICC connector

TP1 test points

Page 10: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 10/34

STICK User Manual 2 - Getting Started

10/34

connect the application VDD to pin 7 of the ICC connector. STICK uses the

application VDD as voltage reference signal, only a 10 kOhm pull-down

resistor is connected on this VDD line.

- 5 V: The power supply voltage of the STICK’s ICC buffer is 5 V. You don’t

need to connect the application VDD to pin 7 of the ICC connector, but your

application must be powered by 5 V +/- 5%.

- 3.3 V: The power supply voltage of the STICK’s ICC buffer is 3.3 V. You

don’t need to connect the application VDD to pin 7 of the ICC connector, but

your application must be powered by 3.3 V +/- 5%.

3 Power on the STICK using the AC/DC power supply adaptor provided. Ensure

that the AC/DC power supply adaptor is adapted to the mains voltage and outlet

type used in your country.

Page 11: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 11/34

2 - Getting Started STICK User Manual

11/34

2.4 Launching STVP7 for the first time

To set up STVP7 for the STICK, follow these instructions:

1 From your host PC, select Start>Programs>ST7 Tool Chain>Development

Tools>ST7 Visual Programmer to start STVP7.

2 The first time STVP7 is started the Configuration window shown in Figure 4 is

opened.

Note: This configuration dialog box can be opened again using Configure menu, click Configure

ST7 Visual Programmer (or press the button).

3 From Hardware list, select STICK .

4 From Port list select PC parallel port LPT1.

5 From the Programming mode list, you must select one of the three modes.

Depending on Programming mode selected, a specific ST7 Flash Device list

will be displayed.

Selecting the correct programming mode is critical in order to program your

microcontroller. To correctly choose the Programming mode, you have to:

- Find the option byte description in your ST7 Flash microcontroller’s

datasheet.

- Check whether the ST7 is ex-factory or not. Ex-factory devices are brand

new devices with factory default options programmed.

Figure 4: Configuration dialog box

Page 12: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 12/34

STICK User Manual 2 - Getting Started

12/34

Then use Table 1 to determine the programming mode:

To better explain the differences between the programming modes , here is a

brief description of each:

- ICP: This programming mode is for ST7 Flash devices without OSCTYPE

choice possibility in the option byte. Currently, for ST7 devices supported by

STICK, only ST72HUB is in this category. For all other ST7 devices you

have to select one of the other programming modes.

- ICP OPT Disable: This programming mode is a safe mode. It must be used

when ICP OPT Enable configuration does not work. This can be the case if

your application clock circuitry doesn’t match the previously programmed

OSCTYPE option byte selection. In this programming mode , an external

source with a square wave signal from 0 V to VDD must be applied. This

clock can be provided either by your application, or by the ICC connector

pin 9 (ICCOSC safe clock).

- ICP OPT Enable: This programming mode has to be selected if the

ST7 Flash is ex-factory, or if your application clock circuitry matches the

previously programmed OSCTYPE option byte selection. In this

programming mode , the ICCOSC safe clock from the ICC connector pin 9is not needed.

Question Response

Programming

mode or next

action1 Does your ST7 Flash microcon-

troller have an option byte?

No ICP

Yes go to next question

2 In your ST7 Flash microcontrol-

ler’s option byte description, can

you select the OSCTYPE?

No ICP

Yes go to next question

3 Is your ST7 Flash microcontroller

ex-factory?

No go to next question

Yes ICP OPT Enable

4 Have you already programmed

the ST7 Flash option bytes with

the OSCTYPE that matches your

application hardware?

No ICP OPT Disable

Yes ICP OPT Enable

Table 1: Determining the programming mode

Page 13: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 13/34

2 - Getting Started STICK User Manual

13/34

6 From Device list, select the ST7 Flash microcontroller to be programmed.

Depending on the ST7 Flash microcontroller you choose, you be able to specify

additional protection settings —refer to STVP7’s online help.

Caution: If you do not find the name of your ST7 Flash microcontroller in this Device list, it is either

because you chose the wrong Programming mode, or your STVP7 version doesn ’ t support this ST7 Flash microcontroller yet. In this latter case you have to download the latest STVP7

release from ST ’ s website at http://mcu.st.com .

7 Click OK to save your changes and close the Configuration window. The main

STVP7 application window is opened, as shown in Figure 5 .

8 Power on your application hardware.

9 Connect the HE10 type ribbon cable to the STICK interface board ICC

connector on one end and to your application board ICC connector on the other

end.

Caution: This connection should be done after STVP7 is launched to avoid to apply unwanted voltage value on ICC pins as STVP7 initializes the PC parallel port.

Figure 5: STVP7 main application window

Page 14: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 14/34

STICK User Manual 2 - Getting Started

14/34

10 Now you can go directly to Programming With STVP7 on page 16, to learn how

to:

- Load , Edit and Save executable and/or data files in the Intel ® HEX or

Motorola ® S19 formats, generated by the Assembler/Linker or C Compiler

for ST7 microcontrollers.

- Erase and Program ST7 Flash microcontroller memory.

- View and Verify the microcontroller memory contents.

- Create a Project file to automatize all tasks needed to configure STVP7

and to program ST7 microcontrollers.

Page 15: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 15/34

2 - Getting Started STICK User Manual

15/34

Page 16: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 16/34

STICK User Manual 3 - Programming With STVP7

16/34

3 PROGRAMMING WITH STVP7

In this chapter, we explain how to perform a typical programming session.

Note that this is not the only way to program an ST7 microcontroller using STVP7;

for more information on how to use the STVP7, click the Help command in themain menu bar.

1 Make sure you have already:

- installed STVP7 (as described in Section 2.2 on page 8),

- set up and configured the STICK interface board W1 jumper (as described

in Section 2.3 on page 9),

- set up STVP7 for the first time (as described in Section 2.4 on page 11).

2 If your microcontroller has ST7 Flash memory —either XFlash (EEPROMtechnology, byte-erasable) or HDFlash (FLASH technology, sector-erasable) —

each byte must be erased before being reprogrammed.

- XFlash memory: Anything present in this memory zone is automatically

erased when you program or reprogram this type of memory. Because of

this, the Erase command is neither necessary nor available with XFlash

memory. For the same reason a Blank-Check command is not available for

XFlash memory.

- HDFlash memory: You cannot erase single bytes —only sectors. Before

programming byte(s) or sector(s) you must have erased the appropriate

sector(s). To erase, in the STVP7 main window, click on Erase>Active

sector(s) (or press the button). You can use Blank-Check command to

verify that the correct sectors are erased.

3 In the STVP7 main window, use the tab menu to select the memory area that

you wish to program (for example, PROGRAM MEMORY, DATA MEMORY or

OPTION BYTE).

Page 17: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 17/34

3 - Programming With STVP7 STICK User Manual

17/34

4 Click on Open in the File menu (or press the button). The Open dialog box

appears.

5 Browse to the directory that contains the file you want to program, and then

select it.

6 Click on Open . When the file is loaded, the Output area displays the filechecksum and device checksum.

7 To open other memory area data files, repeat steps [3] to [6] , selecting the

appropriate memory area tab for each data file.

8 Edit the option byte value. In the STVP7 main window, use the tab menu to

select option byte then click on the name or the description you want to

change to get the description pop-up menu and make your choice. For more

information on the option byte see your ST7 Flash microcontroller datasheet.

9 Execute the programming session: in the STVP7 main window, click on

Program>All tabs (on active sectors if any) (or press the button on the

right side of the toolbar). Note: The programming session does all the

programming checks.

10 You can check the ST7 content but this is not mandatory as this is done during

the programming session. To do this, in the STVP7 main window, click on

Verify> All tabs (on active sectors if any) (or press the button on the right

side of the toolbar).

Figure 6: Open dialog box

Page 18: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 18/34

STICK User Manual 3 - Programming With STVP7

18/34

Note: In the STVP7 main window, the Program>Current tab allows you to program only the

selected tab (for example, program memory or option byte).

11 When you have finished programming, disconnect the HE10 type ribbon cable

from the ICC connector on your application board in order to run your

application.

Page 19: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 19/34

3 - Programming With STVP7 STICK User Manual

19/34

Page 20: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 20/34

STICK User Manual Appendix A: User and Work Environment Precautions

20/34

APPENDIX A: USER AND WORK ENVIRONMENT PRECAUTIONS

The following precautions are recommended when using the programming board:

• Any tester, equipment, or tool used at any production step or for any

manipulation of semiconductor devices should have its shield connected toground.

• Your programming board should be placed on a conductive table top, made of

steel or clean aluminum or covered by an antistatic surface (superficial

resistivity equal to or higher than 0.5 MΩ /cm2), grounded through a ground

cable (conductive cable from protected equipment to ground isolated through a

1 MΩ resistor placed in series).

All manipulation of finished goods should be made at such a grounded

worktable.

• The worktable should be free of all non-antistatic plastic objects.

• An antistatic floor covering grounded through a conductive ground cable (with

serial resistor between 0.9 and 1.5 MΩ) should be used.

• It is recommended that you wear an antistatic wrist or ankle strap, connected to

the antistatic floor covering or to the grounded equipment.

• If no antistatic wrist or ankle strap is worn, before each manipulation of the

powered-on programming board, you should touch the surface of the groundedworktable.

• It is recommended that antistatic gloves or finger coats be worn.

• It is recommended that nylon clothing be avoided while performing any

manipulation of parts.

Page 21: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 21/34

Appendix A: User and Work Environment Precautions STICK User Manual

21/34

Page 22: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 22/34

STICK User Manual Appendix B: Troubleshooting

22/34

APPENDIX B: TROUBLESHOOTING

This appendix covers some of the problems that may occur, and how to solve

them.

B.1 Test pins

The STICK board is equipped with test pins located at TP1 (see board layout in

Figure 3 on page 9). If you have problems with programming, these pins can help

you pinpoint anomalies in the ICC communication by testing or checking the ICC

signals.

Pin Signal Description

1 GND This pin is marked with a white dot.

2 Power The external power supply value can be checked

here. It is an unregulated 12 V DC power supply.

Its value should be in the range 13.5 V to 23 V

depending on the current load.

3 VCC The VCC is regulated at 5 V +/- 5%.

4 VCC_a This is the operational amplifier output that follows

the voltage value selected by the W1 jumper. Itshould be equal to:

• your application VDD voltage value if W1 is in

the VDD position,

• 5 V if W1 is in the 5 V position,

• 3.3 V if W1 is in the 3.3 V position.

5 ICCSEL_VPP This signal may be at 0 V, 5 V or 12 V . This test

point is used during factory test. You do not have

to check it.

Table 1 Test pins

Page 23: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 23/34

Appendix B: Troubleshooting STICK User Manual

23/34

B.2 Error messages

The following sections explain the cause of some of the commoner error

messages.

B.2.1 “PC parallel port cable not connected”

Most communication failures between the host PC running STVP7 and the STICK

interface board stem from problems in the parallel port connection. To prevent

communication problems, when setting up your parallel port connection, ensure

that:

• You use the parallel cable provided with your STICK —using a longer parallel

cable may cause malfunctions.

• Connect the cable directly between the host PC and STICK interface board —

the insertion of additional cables or switch boxes between the host PC and the

interface board may cause malfunctions.

• You remove any parallel port dongles.

• Ensure LPT1 address is in the range 03BC-03BF or 0378-037F or 0278-027F.

• Ensure that “printer port LPT1” is not disabled in your PC. For example, in the

IBM ® ThinkPad, you can select “infrared printing (LPT) port on”.

B.3 “Problem on supply voltages”

When you have supply voltage problems the green LED will not come on. To find

the cause of the problem:

• Check that the AC/DC power supply adaptor is firmly connected to both the

main power supply and to the STICK interface board. To check that the main

power supply is on, disconnect ICC cable and measure the voltage at test pin 2

at location TP1 (see Test pins on page 22). This pin should have unregulated

DC value in the range 18 V to 21 V.

Note: Ground is on TP1 pin 1 (white dot mark).

• Check that the W1 jumper is set on one of the three positions, see Section 2.2

on page 8. If it is set on the “VDD” position, check that the ICC cable is

connected properly and that your application’s VDD is connected to ICC

connector pin 7. Your application VDD must be in the range 2.4 V to 5 V. On

test pin 4 at location TP1 (see Test pins on page 22), you must have the same

voltage value that you selected with the W1 jumper.

• Check that there is 5 V on test pin 3 at location TP1 (see Test pins on page 22).

Page 24: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 24/34

STICK User Manual Appendix B: Troubleshooting

24/34

If you have made all of these checks and you still get the “Problem on supply

voltages” message, contact your ST distributor or sales office (see Product

Support on page 30) in order to have your STICK repaired.

B.4 “Cannot communicate with the device”Check that:

• The ICC cable is well connected.

• You have selected the right ST7 device.

• The ICC signals are clear and within the following ranges:

- ICCDATA: This application signal must not drive more than 1 mA.

- ICCCLK: This application must not drive more than 1 mA.

- ICCRESET: This application must not drive more than 5 mA.

- ICCSEL_VPP: The pull-down resistor must not be lower than 10 kOhm.

• You have selected the right programming mode in the main menu

Configure window > programming mode list, see Section 2.3 on page 9.

Remember that:

- If you use ICP OPT Enable mode, check that your application clock

circuitry does match the CLOCK SOURCE and OSCTYPE options already

programmed in ST7 Flash microcontroller option byte. For devices out offactory you have to check these values in datasheet. If you don ’t know

these values you have to select ICP OPT Disable.

- ICP OPT Disable mode, ensure that external source clock is a square

wave signal from 0 V to VDD. If not, you have to connect ICCOSC safe

clock (ICC connector pin 9) to the OSC1 pin of the ST7Flash

microcontroller in your application

Page 25: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 25/34

Appendix B: Troubleshooting STICK User Manual

25/34

Page 26: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 26/34

STICK User Manual Appendix C: Glossary

26/34

APPENDIX C: GLOSSARY

This appendix gives a brief definition of acronyms and names used in this manual.

ex-factory

Ex-factory, when applied to microcontrollers, means that they are direct from the

factory and retain their default settings. This is particularly pertinent important

when applied to option bytes.

HDFlash

High density FLASH memory is based on FLASH technology. The HDFlash is

used for microcontrollers with 4K up to 60Kbytes of FLASH memory. The HDFlash

is programmed byte by byte but erased by sector.

ICC protocol

In-Circuit Communication protocol is a way of exchanging data between an

ST7 Flash microcontroller and an external system (i.e. PC) using minimum

hardware and ST7 I/Os in the user application. In the ST7 Flash microcontrollers,

this protocol is handled by the ICC monitor.

ICC monitor

Software that handles the ICC protocol, embedded in a reserved memory area of

the ST7 Flash microcontroller. At RESET, using specific signal sequence, the ST7 jumps to this ICC monitor which allows it to download programs in RAM and to

execute them. This feature is used to implement the ICP functionality.

ICP

In-Circuit Programming. This is programming the ST7 FLASH memory while

ST7 Flash microcontroller is plugged into the application board.

ICT

In-Circuit Testing. This is testing ST7 Flash micro and/or your application through

the ST7 Flash microcontroller while it is plugged into the application board.

ICD

In-Circuit Debugging. This is debugging your application while the ST7 Flash

microcontroller is plugged into the application board.

ST7 Flash microcontroller

ST7 Flash microcontroller with electrically erasable memory that can be either

XFlash memory or HDFlash.

Page 27: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 27/34

Appendix C: Glossary STICK User Manual

27/34

STICK

ST In-circuit Communication Kit.

STVP7

ST7 Visual Programmer. This software programs runs on a PC. It has a graphicalWindows ® interface and supports different types of ST7 programming hardware

(STICK, EPBs, DVPs).

XFlash

Extended FLASH memory is based on EEPROM technology. XFlash provides

extended features such as byte re-programming (by means of byte erasing) and

data EEPROM capability. The XFlash microcontrollers are available between 1K to

16 Kbytes.

Page 28: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 28/34

2 8 / 3 4

A

A

B

B

C

C

D

D

4

3

2

1

DATA7

1.2W

40mA max

(5V)

+

16V

16V

INIT

ACK

MB3

A4

Tuesday, June

MCDT - D

Title

Size Document Numb

Date:

Rnerror

D2

D0

R_VCC_aD5

RbusyD6

enSEL

pcSTATUS

pcDATAIN

pcDATAIN

pcSTATUS

3.3V

enVPP

enVPP

enSEL

EN_OSC

D1Rnautf

D5

D2

RbusyD6

D3

Rnerror

D4 pcPULSES

D0

Rnautf

5V

Power VCCVCC_aICCSEL_VPP

VDD_APPLI

R_VCC_a

PEND

NSTROBE

NSELIN

GND

GND

DATA2

DATA5

DATA0

DATA6

GND

GNDBUSY

GND

GND

GND

DATA1

PEND

NERROR

DATA3

DATA4

GND

NAUTF

SLCT

GND

GND

Power

GND

VCC

GND

VEE

VCC

VCC_a

Power

VCC_a

VCC

GND

VCC

GND

GND

G

P

GND

GND

GND

GND

GND

GND

VCC

GNDC31180pF

1

2

U10

74HC4051

13141512

1524

61110

9

3X0X1X2X3X4X5X6X7

INH ABC

X

C54.7nF

1

2

R7 10012

J1

SUBD25C_F_COUDE

1325122411231022921820719618517416315

2141

12

11

C21

100nF

1

2

V1

R9 10K

1 2

+C4

4.7MF

1

2

RS1 33

2

6

1357

4

8

RS4

332

6

1357

4

8

LD1

LED_Green

12

C23

100nF

1

2

U9A

74VHC126_a

2 3

1

C25180pF

1

2

R8

22K

1 2

C14

2 . 2

n F

1

2

C18180pF

1

2

I

GND

O

U1

L78L05-SO8

8

2

1

3 6 7

C124.7nF

1

2

C2

1 0 0 n F

1

2

C28180pF

1

2

W1

MW2X3C

1 23 45 6

RS2

100K

2 6

1 3 5 7

4 8

J2

JACK_2.5mm

23

1

+

-

U7B

L272D

13

143

4

6

U6

74VHCT244

2

468

11131517

119

18

1614129753

1A1

1A21A31A42A12A22A32A4

1G2G

1Y1

1Y21Y31Y42Y12Y22Y32Y4

C3

2 . 2

n F

1

2

C24180pF

1

2

C29100pF

1

2

1

2

C13

1 0 0 n F

1

2

C6180pF

1

2

RS5

10K

2 6

1 3 5 7

4 8

Z1

P 6 K E 2 4 A

1

2

RS8 10K

2

6

135

7

4

8

C8

1 0 0 n F

1

2

C36180pF

1

2

C27180pF

1

2

+ C1

2 2 0 M F

1

2

C10180pF

1

2

RS6 33

2

6

13

57

4

8

TP1

MW1X5C

12345

R4

180-1W

1 2

RS3 10K

2

6

1357

4

8

+

C22

4.7MF

1

2

C38180pF

1

2

C15180pF

1

2

R13 33K

1 2

C26180pF

1

2

U2

BNX002

31

2564

BPSG

CGCGCGCB

C16180pF

1

2

Page 29: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 29/34

Appendix D: Schematics STICK User Manual

29/34

4

4

3

3

2

2

1

1

M B T 2 9 0 7 o r S O 2

9 0 7 S O T 2 3

S c

h o t t

k y

S c

h o t t

k y

M B T 2 9 0 7 o r S O 2

9 0 7 S O T 2 3

I C C c o n n e c t o r

I C C L i n k

C

M B 3 7 2 C : S T 7 - F L A S H S T I C K - L P T

A 3

2

2

T u e s d a y ,

J u n e 0 4 ,

2 0 0 2

M C D T - D e v e l o p m e n t T o o l s - G R E N O B

L E

T i t l e

S i z e

D o c u m e n t N u m b e r

R e v

D a t e :

S h e e t

o f

p c D A T A I N

p c C L K e n

p c A C K

p c D O U T

p c R W

C L K I N i c c

p c D A T A

I N

p c A C K

p c C L K e n

p c P U L S E S

p c P U L S

E S

p c R W

p c D O U T

p c S T A T U S

V D D

_ A P P L I

I C C S E L

_ V P P

t i e_

C L K

_ l o w

p c R E S E T

I C C O S C

I C C R E S E T

I C C C L K

I C C S E L

_ V P P

V D D

_ A P P L I

I C C D A T A

I C C D A T A

I C C C L K

I C C R E S E T

G N D

G N D

G N D

V C C

V C C

_ a

G N D

V C C

_ a

V C C

_ a

P o w e r

G N D

V C C

_ a

V C C

_ a

V C C

_ a

V C C

_ a

V C C

_ a

V C C

_ a

P o w e r

V C C

G N D

G N D

G N D

G N

D

U 9 C

7 4 V H C 1 2 6

_ a

9

8

1 0

R S 7 - 1

3 3

1

2

V 5

J P 1

H E A D E R 5 x 2 / S M

1

2

3

4

5

6

7

8

9

1 0

U 4 E

7 4 V H C 1 4

_ a

1 1

1 0

C 3 5

1 8 0 p F

1 2

V 3

C 3 9

1 0 0 n F

1 2

T 2

M M B T 2 9 0 7

2

1 3

U 4 C

7 4 V H C 1 4

_ a 5

6

R S 7 - 4

3 3

7

8

D 2 B

A R 4 2

2

3

1

R S 7 - 2

3 3

3

4

R 6 1

0 0

1

2

U 9 D

7 4 V H C 1 2 6

_ a 1

2

1 1

1 3

U 4 D

7 4 V H C 1 4

_ a

9

8 U 3 B

7 4 V H C 1 2 5

_ a

5

6

4

V 2

V 4

C 2 0

1 0 0 n F

1 2

D 1 B

A R 4 2

2

3

1

V 6

U 4 A

7 4 V H C 1 4

_ a 1

2

U 5 A

7 4 V H C 7 4

_ a

2 3

5 6

4 1

D C L K

Q Q

P R C L

C 3 7

1 8 0 p F

1 2

U 8 B

7 4 V H C 7 4

_ a

1 2

1 1

9 8

1 0 1 3

D C L K

Q Q

P R C L

C 7

1 0 0 n F

1 2

C 1 9

1 0 0 n F

1 2

R 5

5 . 6

K

1 2

C

1 7

2

2 p F

1 2

T 1

M M B T 2 9 0 7

2

1 3

R S 7 - 3

3 3

5

6

U 3 C

7 4 V H C 1 2 5

_ a

9

8

1 0

C 9

1 0 0 n F

1 2

R 2

3 . 3

K

1

2

C 1 1

3 3 p F

1 2

R 1 0

1 0 K

1

2

U 9 B

7 4 V H C 1 2 6

_ a

5

6

4

U 3 D

7 4 V H C 1 2 5

_ a

1 2

1 1

1 3

R 3

4 . 7

K

1

2

U 4 B

7 4 V H C 1 4

_ a 3

4

U 3 A

7 4 V H C 1 2 5

_ a

2

3

1

U 8 A

7 4 V H C 7 4

_ a

2 3

5 6

4 1

D C L K

Q Q

P R C L

C 3 2

1 0 0 n F

1 2

U 5 B

7 4 V H C 7 4

_ a

1 2

1 1

9 8

1 0 1 3

D C L K

Q Q

P R C L

R 1 2

5 . 6

K

1 2

U 4 F

7 4 V H C 1 4

_ a

1 3

1 2

C 3 0

1 0 0 n F

1 2

p c A C K

p c D O U T

p c C L K e n

p c R W

p

c S T A T U S

p c P U L S E S

p c R E S E T

p

c D A T A I N

I C C S E

L_

V P P 0

V

D D

_ A P P L I

E N

_ O S C

Page 30: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 30/34

STICK User Manual Product Support

30/34

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:

1 Name of the company where you purchased the programmer kit.

2 Date of purchase.

3 Order Code: Refer to the side of your programmer kit box. The order code will

depend on the region for which it was ordered (i.e. the UK, Continental Europe

or the USA).

4 Serial Number: The serial number is located on a label on the programming

board.

5 Target Device: The sales type of the ST7 microcontroller you are using in your

development.

Contact list

Note: For American and Canadian customers seeking technical support the US/Canada is split

in 3 territories. According to your area, contact the following sales office and ask to be

transferred to an 8-bit microcontroller Field Applications Engineer (FAE).

Canada and East Coast

STMicroelectronics

Lexington Corporate Center

10 Maguire Road, Building 1, 3rd floor

Lexington, MA 02421

Phone: 781-402-2650

Mid West

STMicroelectronics

1300 East Woodfield Road, Suite 410

Schaumburg, IL 60173

Phone: 847-585-3000

Page 31: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 31/34

Product Support STICK User Manual

31/34

West coast

STMicroelectronics, Inc.

28202 Cabot Road

Suite 650

Laguna Niguel, CAPhone: (949) 347-0717

Europe

France (33-1) 47407575

Germany (49-89) 460060

U.K. (44-1628) 890800

Asia/Pacific Region

Japan (81-3) 3280-4120Hong-Kong (852) 2861 5700

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.

Page 32: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 32/34

Index

32/34

A

application

voltage selection ..................................... 9

B

board schematics .......................................... 28

C

CD-ROM ......................................................... 8

circuitry.......................................................... 28

D

definitions...................................................... 26

delivery checklist............................................. 8

E

EMC compliancy

requirements for.................................... 20

error messages ............................................. 23

F

finished goods

manipulation of...................................... 20

safety requirements .............................. 20

G

glossary......................................................... 26

H

hardware

setting up ................................................ 9

supplied................................................... 8

I

ICC

connector pinout ..................................... 6

definition of protocol ..............................26

signal description.....................................6

ICD (In-Circuit Debugging) ..............................5

ICP (In-Circuit Programming) ..........................5

ICT (In-Circuit Testing) ....................................5

In Circuit Programming (ICP)programming in ICP mode.....................16

M

memory programming

HDFlash.................................................16

XFlash ...................................................16

P

parallel connection

restrictions/requirements .........................9

programming board

setting up .................................................9

programming mode

selecting ................................................11

programming modes

descriptions ...........................................12

how to correctly determine ....................12

ICP.........................................................12

ICP OPT Disable ...................................12ICP OPT Enable ....................................12

importance of.........................................11

setting ....................................................11

S

safety requirements .......................................20

schemas ........................................................28

setting up the STICK .......................................9

softwareinstalling...................................................8

updates..................................................31

ST7 Visual Programmer (STVP7)

installing...................................................8

typical programming session.................16

support

contact numbers for...............................30

for programming board ..........................30

information required...............................30

Index

Page 33: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 33/34

Index

33/34

T

terminology ................................................... 26

test pins......................................................... 22

V

voltage

setting with W1 jumper ............................9

W

working environment recommendations........20

Page 34: STICK User Manual

8/6/2019 STICK User Manual

http://slidepdf.com/reader/full/stick-user-manual 34/34

Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for theconsequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use.No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in thispublication are subject to change without notice. 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 writtenapproval of STMicroelectronics.

The ST logo is a registered trademark of STMicroelectronics.

Intel ® is a U.S. registered trademark of Intel Corporation.

Microsoft ® , Windows ® and Windows NT ® are U.S. registered trademarks of Microsoft Corporation.

2002 STMicroelectronics - All Rights Reserved.

Purchase of I2C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use these components in anI2C system is granted provided that the system conforms to the I2C Standard Specification as defined by Philips.

STMicroelectronics Group of CompaniesAustralia Brazil China Finland France Germany Hong Kong India Italy Japan Malaysia Malta Morocco Singapore Spain

3

4