PEmicro Cyclone for STMicro User manual


Purchase Agreement
P&E Microcomputer Systems, Inc. reserves the right to make changes without further notice to
any products herein to improve reliability, function, or design. P&E Microcomputer Systems, Inc.
does not assume any liability arising out of the application or use of any product or circuit
described herein.
This software and accompanying documentation are protected by United States Copyright law
and also by International Treaty provisions. Any use of this software in violation of copyright law
or the terms of this agreement will be prosecuted.
All the software described in this document is copyrighted by P&E Microcomputer Systems, Inc.
Copyright notices have been included in the software.
P&E Microcomputer Systems authorizes you to make archival copies of the software and
documentation for the sole purpose of back-up and protecting your investment from loss. Under
no circumstances may you copy this software or documentation for the purpose of distribution to
others. Under no conditions may you remove the copyright notices from this software or
documentation.
This software may be used by one person on as many computers as that person uses, provided
that the software is never used on two computers at the same time. P&E expects that group
programming projects making use of this software will purchase a copy of the software and
documentation for each user in the group. Contact P&E for volume discounts and site licensing
agreements.
P&E Microcomputer Systems does not assume any liability for the use of this software beyond
the original purchase price of the software. In no event will P&E Microcomputer Systems be
liable for additional damages, including any lost profits, lost savings or other incidental or
consequential damages arising out of the use or inability to use these programs, even if P&E
Microcomputer Systems has been advised of the possibility of such damage.
By using this software, you accept the terms of this agreement.
MS-DOS & Windows are registered trademarks of Microsoft Corporation. IBM is a registered
trademark of IBM corporation.
P&E Microcomputer Systems, Inc.
98 Galen St,
Watertown, MA 02472
http://www.pemicro.com
May 2015
Manual version 1.06

Cyclone for STMicro - User Manual i
CYCLONE FOR STMICRO
1 INTRODUCTION ............................................................................................ 1
2 QUICK START GUIDE FOR SAP OPERATION ............................................ 4
3 CYCLONE FOR STMICRO HARDWARE ...................................................... 8
3.1 Cyclone for STMicro Power Supply................................................................ 8
3.2 RS232 Communication .................................................................................. 8
3.3 Ethernet Communication................................................................................ 9
3.4 USB Communications .................................................................................... 9
3.5 Electromechanical Relays .............................................................................. 9
3.6 Power Connectors........................................................................................ 10
3.7 Jumper Settings ........................................................................................... 10
3.8 Debug Connector Mechanical Drawing........................................................ 10
3.9 4-Pin ERNI Connector (for STM8 Targets) .................................................. 11
3.10 20-Pin Connector (for STM32 Targets) ........................................................ 12
3.11 10-Pin Connector (Will Be Supported For Future Targets) .......................... 14
3.12 14-Pin Connector (For SPC56 Targets) ....................................................... 15
3.13 JTAG Daisy Chain........................................................................................ 15
3.14 Ribbon Cable................................................................................................ 17
3.15 Target Power Management.......................................................................... 17
3.16 CompactFlash Port....................................................................................... 22
4 CYCLONE LCD MENU................................................................................. 24
4.1 Status Window ............................................................................................. 25
4.2 Main Menu.................................................................................................... 26
5 STAND-ALONE PROGRAMMER CONFIGURATION.................................. 32
5.1 Create A Stand-Alone Programming (SAP) Image ...................................... 32
5.2 Manage Multiple SAP Images ...................................................................... 43
6 STAND-ALONE PROGRAMMER MANUAL CONTROL .............................. 46
6.1 Operation Via Cyclone for STMicro Buttons................................................. 46
6.2 Operation Via LCD Menu ............................................................................. 48
6.3 Cyclone Battery Pack ................................................................................... 51
7 STAND-ALONE PROGRAMMER AUTOMATED CONTROL....................... 53

ii Cyclone for STMicro - User Manual
CYCLONE FOR STMICRO
7.1 Cyclone Automated Control Package - Overview.........................................53
7.2 Cyclone Automated Control Package - Details.............................................54
8 ETHERNET CONFIGURATION ................................................................... 56
8.1 Network Architectures...................................................................................56
8.2 Network Parameters .....................................................................................57
8.3 Internet Protocol ...........................................................................................58
8.4 Connecting The Cyclone Device ..................................................................58
8.5 Cyclone IP Setup Via LCD Menu..................................................................60
8.6 Cyclone IP Setup Utility User Interface (ConfigureIP) ..................................60
8.7 Using ConfigureIP.exe To Configure The Cyclone for STMicro ...................63
9 SERIAL PORT CONFIGURATION............................................................... 65
10 USB PORT CONFIGURATION .................................................................... 66
11 AUTOMATIC SERIAL NUMBER MECHANISM ........................................... 67
11.1 Understanding Serialization..........................................................................67
11.2 Serialize Utility ..............................................................................................68
11.3 Serialize Utility Example ...............................................................................71
11.4 Using Serial Number File..............................................................................71
11.5 Serial Number Handling in Cyclone for STMicro ..........................................72
12 CYCLONE ERROR CODES......................................................................... 74
12.1 Debug Mode Communication Errors ............................................................74
12.2 SAP Image Handling Errors..........................................................................74
12.3 SAP Communication Handling Errors...........................................................75
12.4 SAP Algorithm Header Operation Handling Errors.......................................75
12.5 SAP Operation Errors ...................................................................................75
12.6 SAP Blank Check Range and Module Errors ...............................................75
12.7 SAP Erase Range and Module Errors ..........................................................75
12.8 SAP Program Byte, Word, and Module Errors..............................................76
12.9 SAP Verify Checksum Errors........................................................................76
12.10 SAP Verify Range and Module Errors ..........................................................76
12.11 SAP User Function Errors ............................................................................76
12.12 SAP Trim Errors............................................................................................77

Cyclone for STMicro - User Manual iii
CYCLONE FOR STMICRO
12.13 Unrecoverable Fatal Errors .......................................................................... 77
12.14 External Memory Errors ............................................................................... 78
12.15 Serial Number Errors.................................................................................... 78
12.16 Successful Download Counter Errors .......................................................... 79
12.17 System Hardware/Firmware/Logic Recoverable Errors ............................... 79

Cyclone for STMicro - User Manual 1
CYCLONE FOR STMICRO
1 INTRODUCTION
The Cyclone for STMicro is part of P&E’s line of stand-alone programming
solutions.
The Cyclone for STMicro is designed to withstand the demands of a
production environment. It is a Stand-Alone Programmer (SAP) that can be
operated manually or used to host automated programming. In manual SAP
mode the unit is operated using buttons and/or the LCD Menu. Host-
controlled SAP mode, for automated programming, is accomplished using
either command line utility, RS232 protocol, UDP protocol, or the Cyclone
Automated Control DLL.
The following features help make the Cyclone for STMicro such a versatile
production programming tool:
• Multiple STMicro Architecture Support
•STM8
•SPC56
•STM32
• Others to come
• Versatile Light Touch Buttons
• Performs Stand-Alone Programming (SAP) operations
• Navigates LCD menu
• Resets Cyclone for STMicro
• Powerful LCD Menu
• Executes SAP operations
• Selects SAP image
• Configures Cyclone for STMicro IP settings

2 Cyclone for STMicro - User Manual
CYCLONE FOR STMICRO
• Displays operation status
• Convenient LED Display
• Indicates success or failure
• Multiple Communication Interfaces
• Ethernet 10/100 baseT
• USB 1.1
• Serial Baud 115200, no parity, 8 data bits, 1 stop bit (adjustable to
57600 Baud for RS232 controlled production environment)
• Multiple Storage Media
• 7 Megabytes of onboard storage. Stores data to be programmed,
programming algorithms, and any necessary configuration settings.
• CompactFlash support available with purchase of CompactFlash
activation license.
• Versatile Power Management
• Uses electromechanical relays to automatically cycle target power
when necessary.
• Jumper-settable power management schemes.
• Multiple Voltage Operation
• Automatically detects and caters to target voltages ranging from
1.8V to 5V.
• Multiple Target Communication Modes
• Supports the following communication modes:
– SWIM Mode
–JTAGmode
–SWDMode
• Automatically detects and caters to target communication.

Cyclone for STMicro - User Manual 3
CYCLONE FOR STMICRO
• Multiple SAP Images
• Onboard Flash stores up to 8 images.
• CompactFlash (if activated) stores more than 200 images.
• Images for different architectures can co-exist.
• Multiple Memory Modules In One SAP Image
• Supports multiple programming algorithms for internal or external
memory modules such as EEPROM and Flash.
• Automatic Serial Number Mechanism
• Supports serial number programming and automatic incrementing
• Supports multiple serial number structures within each SAP Image.
• Powerful Automated Control Package For Production Control
• Basic Automated Control Package (included) supports host-
controlled SAP operations for one Cyclone for STMicro.
Professional and Enterprise Automated Control Packages available
for purchase.
• Multiple Cyclones for STMicro can create a Gang Programmer
using a variety of different communication interfaces.
• Different SAP Images on different Cyclones for STMicro can
execute simultaneously.
• Mixed-architecture targets can perform SAP operations
simultaneously.
• Versatile Debugging and Programming Software
• Free image creation utility, image management utility, and IP
configuration utility
• Activation license for CompactFlash support available for purchase

4 Cyclone for STMicro - User Manual
CYCLONE FOR STMICRO
2 QUICK START GUIDE FOR SAP OPERATION
Stand-Alone Programming (SAP) is the most common use of the Cyclone for
STMicro. This quick start guide illustrates how easy it is to begin using the
Cyclone for stand-alone programming.
You are encouraged to read this manual in its entirety for a complete
description of all Cyclone for STMicro features, many of which are beyond the
scope of this quick-start guide.
Step 1. Install Software
The first step is to install the accompanying software. This will install all of the
applications and drivers that can be used to configure/control the Cyclone for
STMicro.
Once the installation is complete and the PC has been rebooted you may
begin to configure the Cyclone for STMicro for SAP operation.
Step 2. Hardware Setup
a. Configure the target power management scheme
Power management is configured by setting jumpers on the side
of the Cyclone unit. The corresponding settings are conveniently
illustrated on the rear label of Cyclone for STMicro. By default,
the jumpers are set to switch power from the Power IN Jack to
Power OUT Jack. For more information, please refer to Section
3.15 - Target Power Management.
b. Connect the Cyclone for STMicro to your PC
Select the appropriate communications interface (Serial, USB or
Ethernet) and connect the Cyclone for STMicro to your PC. If you
wish to use the Ethernet port you will need to configure the
corresponding network settings before use, either through the
LCD menu or via the software utility ConfigureIP. The Ethernet
port will not function properly until this configuration is complete.
You may wish to refer to CHAPTER 8 - ETHERNET
CONFIGURATION.
c. Power up the Cyclone for STMicro
Step 3. Create a SAP Image
A SAP image, or Stand-Alone Programming image, is a self-sufficient data
object containing the Cyclone for STMicro and target hardware setup

Cyclone for STMicro - User Manual 5
CYCLONE FOR STMICRO
information, programming algorithm, programming sequence, and target data.
The Cyclone for STMicro uses these images to perform SAP operations on
target devices. Follow these steps to create a SAP image:
a. Run the Cyclone Image Creation Utility
This utility is a GUI designed to help users create architecture-
specific SAP images. To run this utility:
From the “Start” menu of your PC, navigate to “All Programs” ->
“P&E Cyclone for STMicro Programmer” -> “Image Creation
Utility” and select this utility. The utility is shown in Figure 2-1.
Continue with the steps below to create an image.

6 Cyclone for STMicro - User Manual
CYCLONE FOR STMICRO
Figure 2-1: Cyclone Image Creation Utility
b. In the Cyclone Image Creation Utility, select your architecture
from the “Specify Target Architecture” drop-down list
c. Click the “Launch Script Wizard” button. Follow the pop-up
screens to specify a programming algorithm and target object file.
The programming algorithm, target object file, and default pro-
gramming sequence will then show up in the programming
sequence listbox.

Cyclone for STMicro - User Manual 7
CYCLONE FOR STMICRO
d. Specify the auxiliary setup and hardware setup, such as Target
Power, and Voltage Settings.
e. Type an Image Description for your SAP image. A time stamp will
be automatically inserted for you if you do not type one into the
box provided.
f. Click the “Store Image to Cyclone” button.
g. Choose the communications interface, select the Cyclone for
STMicro to which the image will be saved, and then click the
“Store Image to Cyclone” button. A backend image configuration
utility will pop up and store the image information on the Cyclone
for STMicro. Your SAP image has now been created.
Step 4. Execute SAP Image
The SAP image stored on your Cyclone for STMicro can now be executed
with one button press. Once your target is connected to the Cyclone for
STMicro, press the “START” button of the Cyclone for STMicro unit and wait
for programming operations to finish. During this process, the LCD screen
and LEDs will show the status of operations. Eventually the “Success” or
“Error” LED will illuminate, and the LCD will display the results.

8 Cyclone for STMicro - User Manual
CYCLONE FOR STMICRO
3 CYCLONE FOR STMICRO HARDWARE
The following is an overview of the features and interfaces of the Cyclone for
STMicro unit. The interfaces are labeled on the underside of the Cyclone unit.
3.1 Cyclone for STMicro Power Supply
The Cyclone for STMicro requires a regulated 6V DC Center Positive power
supply with 2.5/5.5mm female plug. The Cyclone for STMicro derives its
power from the Power Jack located on the end of the unit next to the DB9
connector.
Figure 3-2: Cyclone for STMicro Power Jack
3.2 RS232 Communication
The Cyclone for STMicro provides a DB9 Female connector to communicate
with a host computer through the RS232 communication (115200 Baud, 8
Data bits, No parity, 1 Stop bit).
Figure 3-3: Cyclone for STMicro RS232 Connector

Cyclone for STMicro - User Manual 9
CYCLONE FOR STMICRO
3.3 Ethernet Communication
The Cyclone for STMicro provides a standard RJ45 socket to communicate
with a host computer through the Ethernet Port (10/100 BaseT).
Figure 3-4: Cyclone for STMicro Ethernet Connector
3.4 USB Communications
The Cyclone for STMicro provides a USB connector for Universal Serial Bus
communications between the Cyclone for STMicro and the host computer.
The Cyclone for STMicro is a USB 1.1 compliant device.
Figure 3-5: Cyclone for STMicro USB Connector
3.5 Electromechanical Relays
Inside the Cyclone for STMicro, two electromechanical relays are used to
cycle target power. The specifications of the relays are as following:
Maximum switched power: 30W or 125 VA
Maximum switched current: 1A
Maximum switched voltage: 150VDC or 300VAC
UL Rating: 1A at 30 VDC
1A at 125 VAC

10 Cyclone for STMicro - User Manual
CYCLONE FOR STMICRO
P&E only recommends switching DC voltages up to 24 Volts.
3.6 Power Connectors
The Cyclone for STMicro provides a Target Power Supply Input Jack and a
Target Power Supply Output Jack with 2.5/5.5 mm Pin Diameter. The power
jacks are connected or disconnected by two electromechanical relays. When
connected, the Center Pin of the Target Power Supply Input Jack is
connected to the Center Pin of the Target Power Supply Output Jack. When
disconnected, both terminals of the Target Power Supply Output Jack are
connected to GND via a 1W, 100 Ohm resistor.
Figure 3-6: Power Connector Locations
3.7 Jumper Settings
The jumpers must be set differently for various power management options
that the Cyclone for STMicro offers. If the Cyclone for STMicro is not being
used to manage the target’s power, only Jumper 5 needs to be installed.
Please see Section 3.15 - Target Power Management for the correct jumper
settings for other power management options.
3.8 Debug Connector Mechanical Drawing
The Cyclone for STMicro provides a standard single-row, 4-position ERNI
214012 header for STM8 SWIM communication protocol, and 10-position, 14-
position, and 20-position 0.100-inch pitch dual row 0.025-inch square headers
for other STMicro targets. The mechanical drawing for dual row headers is
shown below.

Cyclone for STMicro - User Manual 11
CYCLONE FOR STMICRO
Figure 3-7: Dual-Row Header Mechanical Drawing
3.9 4-Pin ERNI Connector (for STM8 Targets)
The Cyclone provides an ERNI 214012 Right Angle Male Single Connector
for STM8 targets. The 4-pin connector adopts the standard pin-out as
specified by STMicro. Please note that the ERNI connector is keyed. The pin
definitions are as follows:
PIN 1 - TVCC
PIN 2 - SWIM
PIN 3 - GND
PIN 4 - RESET
The physical location of the ERNI 214012 connector is displayed below:

12 Cyclone for STMicro - User Manual
CYCLONE FOR STMICRO
Figure 3-8: ERNI 214012 Connector
3.10 20-Pin Connector (for STM32 Targets)
The Cyclone provides a 20-pin, 0.100-inch, double-row connector for STM32
targets. The 20-pin connector pin definitions are as follows:
20-Pin JTAG Pin Assignments
PIN 1 - TVCC PIN 2 - NC
PIN 3 - NTRST PIN 4 - GND
PIN 5 - TDI PIN 6 - GND
PIN 7 - TMS PIN 8 - GND
PIN 9 - TCK PIN 10 - GND
PIN 11 - NC PIN 12 - GND
PIN 13 - TDO PIN 14 - GND
PIN 15 - RESET PIN 16 - GND
PIN 17 - NC PIN 18 - GND
PIN 19 - NC PIN 20 - GND
The Cyclone for STMicro also supports SWD Mode. This replaces the JTAG
connection with a clock and single bi-directional data pin. SWD Mode
provides all the normal JTAG debug and test functionality, plus real-time
access to system memory, without halting the processor or requiring any
target-resident code.
20-Pin SWD Mode Pin Assignments
PIN 1 - TVCC PIN 2 - NC
PIN 3 - NC PIN 4 - GND
PIN 5 - NC PIN 6 - GND
PIN 7 - SWDIO PIN 8 - GND
PIN 9 - SWCLK PIN 10 - GND

Cyclone for STMicro - User Manual 13
CYCLONE FOR STMICRO
PIN 11 - NC PIN 12 - GND
PIN 13 - NC PIN 14 - GND
PIN 15 - NC PIN 16 - GND
PIN 17 - NC PIN 18 - GND
PIN 19 - NC PIN 20 - GND
SWD Mode is selected from the “Communication Mode” drop-down box in the
Cyclone Image Creation Utility:
Figure 3-9: Communications Mode Selection
The physical location of the 20-pin connector is displayed below:

14 Cyclone for STMicro - User Manual
CYCLONE FOR STMICRO
Figure 3-10: 20-Pin Connector
3.11 10-Pin Connector (Will Be Supported For Future Targets)
The Cyclone provides a 10-pin, 0.100-inch, double-row connector for future
STMicro targets. The 10-pin connector definitions are as follows:
PIN 1 - GND PIN 2 - ICCDATA
PIN 3 - GND PIN 4 - ICCCLK
PIN 5 - GND PIN 6 - RESET
PIN 7 - TVCC PIN 8 - ICCSEL/VPP
PIN 9 - OSC CLK PIN 10 - GND
The physical location of the 10-pin connector is displayed below:
Figure 3-11: 10-Pin Connector

Cyclone for STMicro - User Manual 15
CYCLONE FOR STMICRO
3.12 14-Pin Connector (For SPC56 Targets)
The Cyclone provides a 14-pin, 0.100-inch, double-row connector for SPC56
targets. The 14-pin connector pin definitions are as follows:
PIN 1 - TDI PIN 2 - GND
PIN 3 - TDO PIN 4 - GND
PIN 5 - TCK PIN 6 - GND
PIN 7 - NC PIN 8 - NC
PIN 9 - RESET PIN 10 - TMS
PIN 11 - TVCC PIN 12 - NC
PIN 13 - RDY PIN 14 - JCOMP
The physical location of the 14-pin connector is displayed below:
Figure 3-12: 14-Pin Connector
3.13 JTAG Daisy Chain
The Cyclone for STMicro supports STM32 processors in a JTAG daisy chain
configuration. This type of configuration is desirable if the user wants to share
a single debug connector across multiple JTAG devices.
To start, it is required that the user selects the JTAG communications mode in
the Cyclone Image Creation Utility (see Section 5.1 - Create A Stand-Alone
Programming (SAP) Image). Afterwards, the daisy chain settings are
configured by clicking on the "Advanced" button in the Cyclone Image
Creation Utility. A new dialog will appear, allowing the user to specify their
exact daisy chain setup.
Table of contents
Other PEmicro Motherboard manuals