PE micro Cyclone for STMicro User Manual

Hide thumbs Also See for Cyclone for STMicro:
Table of Contents

Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for PE micro Cyclone for STMicro

  • Page 2 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.
  • Page 3: Table Of Contents

    Create A Stand-Alone Programming (SAP) Image ........32 Manage Multiple SAP Images ..............43 STAND-ALONE PROGRAMMER MANUAL CONTROL ......46 Operation Via Cyclone for STMicro Buttons..........46 Operation Via LCD Menu ................48 Cyclone Battery Pack ................... 51 STAND-ALONE PROGRAMMER AUTOMATED CONTROL....... 53...
  • Page 4 Connecting The Cyclone Device ..............58 Cyclone IP Setup Via LCD Menu..............60 Cyclone IP Setup Utility User Interface (ConfigureIP) ........60 Using ConfigureIP.exe To Configure The Cyclone for STMicro ....63 SERIAL PORT CONFIGURATION ............... 65 USB PORT CONFIGURATION ..............66 AUTOMATIC SERIAL NUMBER MECHANISM ........... 67 11.1...
  • Page 5 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...
  • Page 6: Introduction

    CYCLONE FOR STMICRO 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.
  • Page 7 • Automatically detects and caters to target voltages ranging from 1.8V to 5V. • Multiple Target Communication Modes • Supports the following communication modes: – SWIM Mode – JTAG mode – SWD Mode • Automatically detects and caters to target communication. Cyclone for STMicro - User Manual...
  • Page 8 • 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.
  • Page 9: Quick Start Guide For Sap Operation

    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.
  • Page 10 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.
  • Page 11 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...
  • Page 12 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.
  • Page 13: Cyclone For Stmicro Hardware

    STMicro unit. The interfaces are labeled on the underside of the Cyclone unit. 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.
  • Page 14: Ethernet Communication

    Figure 3-4: Cyclone for STMicro Ethernet Connector 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.
  • Page 15: Power Connectors

    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.
  • Page 16: 4-Pin Erni Connector (For Stm8 Targets)

    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: Cyclone for STMicro - User Manual...
  • Page 17: 20-Pin Connector (For Stm32 Targets)

    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.
  • Page 18 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: Cyclone for STMicro - User Manual...
  • Page 19: 10-Pin Connector (Will Be Supported For Future Targets)

    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...
  • Page 20: 14-Pin Connector (For Spc56 Targets)

    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.
  • Page 21 JTAG Tap Number 0 JTAG Pre IR Bits 4 To access the second, and last device in the chain (TAP #1), use the following settings: JTAG Tap Number 1 JTAG Pre IR Bits 0 Cyclone for STMicro - User Manual...
  • Page 22: Ribbon Cable

    All cables are designed such that the corresponding Cyclone for STMicro Debug Connector has the same pin out as the corresponding Target Header, i.e., Pin 1 of the Cyclone for STMicro Debug Connector is connected to Pin 1 of the Target Debug Header.
  • Page 23 MUST be set on the Cyclone for STMicro. The jumper header is found on the long front side of the unit, directly to the left of the Target Power In and Out jacks.
  • Page 24 STMicro will act as a center positive power supply to the target system. Figure 3-18 shows the connections. Figure 3-18: Via Cyclone for STMicro Board Power and Power Out Jack of Cyclone for STMicro Jumpers 2 and 3 are enabled. Jumpers 1, 4 and 5 are left open, as shown in Figure 3-19.
  • Page 25 3.15.3 Using Cyclone for STMicro Board Power and Debug Connector TVCC The target power supply is not needed. Pin 1 of the Cyclone for STMicro 4-pin debug connector provides the appropriate voltage for corresponding STM8 targets. Pin 1 of the Cyclone for STMicro 20-pin debug connector provides the appropriate voltage for corresponding STM32 targets.
  • Page 26 Using Power IN Jack And Debug Connector TVCC Pin A center positive power supply is connected to the Power IN Jack of the Cyclone for STMicro. Pin 1 of the Cyclone for STMicro 4-pin ERNI header provides the appropriate voltage for corresponding STM8 targets. Pin 1 of the...
  • Page 27: Compactflash Port

    Target Powered Independently Of Cyclone for STMicro A target may be powered independently of the Cyclone for STMicro. The user should remove all jumpers on the Cyclone for STMicro except jumper 5 if they elect to provide a separate power source for the target.
  • Page 28 CYCLONE FOR STMICRO Figure 3-24: CompactFlash Port Cyclone for STMicro - User Manual...
  • Page 29: Cyclone Lcd Menu

    Note: These menus change as features are added to the Cyclone for STMicro, so if your menus do not match those displayed here, please check P&E’s website, www.pemicro.com, for a user manual containing the latest LCD Menu operations information.
  • Page 30: Status Window

    CYCLONE FOR STMICRO Status Window Figure 4-2: Status Window The status window appears when the Cyclone for STMicro is powered on. This window lists the following information: 1. Firmware version of the Cyclone. 2. IP address assigned to the Cyclone.
  • Page 31: Main Menu

    Select SAP Image Select SAP Image brings up a display listing the images that are stored in the Cyclone for STMicro’ memory. You may select the appropriate image by using the Up/Down arrows to highlight it, and then pressing the “Select”...
  • Page 32 4.2.5 Configure Cyclone Figure 4-5: Configure Cyclone Configure Cyclone brings up a submenu with three options from which to choose. 4.2.5.1 Configure Cyclone: Edit IP Settings Figure 4-6: Configure Cyclone: Edit IP Settings Cyclone for STMicro - User Manual...
  • Page 33 Edit IP Settings: Edit IP Numbers Edit IP Numbers allows the user to set an IP number for the Cyclone for STMicro. The current IP number is displayed on the second line. Use the Up/Down buttons to scroll through the characters.
  • Page 34 Edit IP Settings: Edit IP Gateway Edit IP Gateway allows the user to set the IP Gateway for the Cyclone for STMicro. The current IP Gateway is displayed on the second line. Use the Up/Down buttons to scroll through the characters.
  • Page 35 Configure Cyclone: Set AUX Button Func Set AUX Button Func allows the user to assign a function to the AUX button of the Cyclone for STMicro. Highlight the function you wish to assign to the AUX button and press the Select button to choose it.
  • Page 36 CYCLONE FOR STMICRO Figure 4-12: Configure Cyclone: Set AUX Button Func Cyclone for STMicro - User Manual...
  • Page 37: Stand-Alone Programmer Configuration

    CREATEIMAGE.EXE, is provided for configuring the Cyclone for STMicro. Create A Stand-Alone Programming (SAP) Image This chapter describes in detail how to configure the Cyclone for STMicro for stand-alone programming using the Cyclone Image Creation Utility, shown in Figure 5-1. The Cyclone for STMicro does not require a target to be connected when it is being configured.
  • Page 38 Figure 5-2: Target Class Selection via File Menu 5.1.1.1 STM8 Devices The user may configure the Cyclone for STMicro to operate on an STM8 target by selecting a corresponding STM8 target from the Specify Target Architecture drop-down menu. Figure 5-3 shows the STM8 specification configuration.
  • Page 39 CYCLONE FOR STMICRO Figure 5-3: STM8 Class Settings 5.1.1.2 STM32 Devices The user may configure the Cyclone for STMicro to operate on a STM32 target by selecting STM32 from the Specify Target Architecture drop-down menu. Figure 5-4 shows the STM32 specification configuration.
  • Page 40 This type of configuration is desirable if the user wants to share a single debug connector across multiple JTAG devices. Please reference Section 3.13 - JTAG Daisy Chain. 5.1.1.3 SPC56 Devices The user may configure the Cyclone for STMicro to operate on a SPC56 Cyclone for STMicro - User Manual...
  • Page 41 Figure 5-5: SPC56 Class Settings The target 14-pin debug header connections are shown on the right-hand side for user reference. The communication mode is fixed 14-Pin JTAG. The user needs to specify a preferred communication speed. Cyclone for STMicro - User Manual...
  • Page 42 To specify the programming algorithm for the target, double-click on the Choose Algorithm (CM) function in the left panel. Or, you may highlight it and add it to the right panel using the arrow (->). This opens the Load Programming Algorithm dialog. Cyclone for STMicro - User Manual...
  • Page 43 Specify S-Record (SS) in the left panel. This opens a dialog which allows you to select the appropriate S-Record. Once both the algorithm and S-Record are selected, the full list of programming functions becomes available in the left panel. Cyclone for STMicro - User Manual...
  • Page 44 The Remove From List button can be used to remove a selected command from the right panel. At this point the image can be saved to a disk or to the Cyclone for STMicro device. For more information, please see Section 5.1.6 - Store Image To Cyclone.
  • Page 45 This command performs a blank check of the module and erases it if it is not blank. Erase Module If “Erase Module” is specified, the Cyclone for STMicro will perform an “Erase Module” on the target device after entering the Monitor Mode or BDM mode. Blank Check Module...
  • Page 46 Program Serial Number This command becomes available once a programming algorithm is selected. It will instruct the Cyclone for STMicro to program the serial number to the target once executed. As with other commands, the serial number will not be programmed until the SAP operations are carried out.
  • Page 47 5.1.4 Target Voltage and Power Settings A user may elect to use Cyclone for STMicro to supply power to the target. In this case, the Target Voltage specifies the target MCU I/O voltage level. The user needs to take into account the power discharge time for the Power Down delay.
  • Page 48: Manage Multiple Sap Images

    “Save Cyclone Configuration,” in the file menu, allows the user to save the configuration into a file, which may be used for future reference, e.g., comparing the Cyclone for STMicro contents with the file to see if they are the same.
  • Page 49 CompactFlash activation license it will also allow you to store and manage multiple images on any compatible CompactFlash cards that are loaded into the Cyclone’s CompactFlash port. Figure 5-12: Manage Images Utility Cyclone for STMicro - User Manual...
  • Page 50 CYCLONE FOR STMICRO Upon opening a selected Cyclone for STMicro, the user is provided in the top left panel with a list of the images currently on the unit’s internal memory. If the CompactFlash license has been activated, a list of images on any connected CompactFlash card will also be displayed in the bottom left panel.
  • Page 51: Stand-Alone Programmer Manual Control

    Operation Via Cyclone for STMicro Buttons There are five (5) buttons on the top of the Cyclone for STMicro which are used for stand-alone programming and to navigate the LCD menus. They are specified as follows.
  • Page 52 6.1.2 Procedure via Buttons and LEDs The following steps must be followed in order for the Cyclone for STMicro to operate properly after the Cyclone for STMicro has been configured: 1. Turn off the target power supply if the “POWER IN” Jack is adopted.
  • Page 53: Operation Via Lcd Menu

    CYCLONE FOR STMICRO Operation Via LCD Menu The Cyclone for STMicro may be operated by making selections from the LCD menu. This section describes the layout of the menus and the functions that each may be used to perform. Figure 6-1: LCD Menu Overview...
  • Page 54 CYCLONE FOR STMICRO 6.2.1 Status Window Figure 6-2: Status Window The status window appears when the Cyclone for STMicro is powered on. This window lists the following information: 1. Firmware version of the PRO. 2. IP address assigned to the PRO.
  • Page 55 If a compatible CompactFlash card is loaded into the Cyclone, the Compact Flash Status menu selection displays information about that CompactFlash card, including its name, the number of images it contains, and the amount of free, used, and total memory it contains. Cyclone for STMicro - User Manual...
  • Page 56: Cyclone Battery Pack

    6.2.2.3 Show Statistics The fourth line (PCIP:) displays the IP address of the last PC to control the Cyclone for STMicro. The other categories listed are for future use and are not currently implemented. Figure 6-6: Show Statistics Cyclone Battery Pack Manual control of stand-alone mode is also useful for performing field updates.
  • Page 57 CYCLONE FOR STMICRO Figure 6-7: Cyclone with Cyclone PowerPack The combination of the Cyclone for STMicro and the battery pack creates a fully operational field programming setup that is lightweight, compact, and extremely portable. All that is required for a field update is to connect the battery-powered, pre-programmed Cyclone to the target and initiate programming.
  • Page 58: Stand-Alone Programmer Automated Control

    7.1.1 Basic Edition The Basic Edition, included with the Cyclone for STMicro, gives users two options for automating control of the Cyclone. 1. Cyclone Launch Application The Cyclone Launch application allows control of one or more P&E Cyclone units through the usage of simple batch and script files.
  • Page 59: Cyclone Automated Control Package - Details

    DLL interface code and sample applications for each of the following compilers: Borland Delphi 2.0+ (Pascal) - Visual Application Microsoft Visual C++ 5.0+ - Visual MFC Application Microsoft Visual C# 2005+ - Visual Application Cyclone for STMicro - User Manual...
  • Page 60 Cyclone unit. This is ideal for setups that do not have access to a PC or production environments that do not run Windows-based computers. Cyclone for STMicro - User Manual...
  • Page 61: Ethernet Configuration

    CYCLONE FOR STMICRO ETHERNET CONFIGURATION This section describes the mechanism used by the Cyclone for STMicro device to transact data over an Ethernet network. It primarily focuses on the User Datagram Protocol (UDP), which is a popular method for sending data over a network when the speed of a data transaction is of more concern than the guarantee of its delivery.
  • Page 62: Network Parameters

    Before first use, the Cyclone needs to be programmed with a unique IP number, the Subnet Mask IP number, and also the default Gateway’s IP number. This can be done via the USB or the Serial port, and is described in Cyclone for STMicro - User Manual...
  • Page 63: Internet Protocol

    PC with an Ethernet cable. The most basic method is to connect the Cyclone directly to a PC, via a cross-over Ethernet cable. However, the more common method is to place the Cyclone and the PC on the same network Cyclone for STMicro - User Manual...
  • Page 64 Connecting Cyclone-to-PC via an Ethernet cable In order to connect the Cyclone to a PC directly via an Ethernet cable, you need to use what is known as a cross-over cable. A cross-over cable, which is Cyclone for STMicro - User Manual...
  • Page 65: Cyclone Ip Setup Via Lcd Menu

    Cyclone IP Setup Via LCD Menu For instructions on how to configure the Cyclone for STMicro using the LCD Menu, please see Section 6.2 - Operation Via LCD Menu. Cyclone IP Setup Utility User Interface (ConfigureIP) Before the Cyclone device transacts data on an Ethernet network, it will need to be configured with the relevant network parameters.
  • Page 66 (4) Open Button The “Open” button opens a device for access. This is a required step before changing the parameters on the selected device. Once a device Cyclone for STMicro - User Manual...
  • Page 67 STMicro. It needs to be a unique IP number which can be accessible on the network. (7) Cyclone Device Name This is a label which can be used to identify the Cyclone for STMicro by name, e.g., “John’s Cyclone” or “Manufacturing Floor.” (8) MAC Address This is the Media Access Control address, the unique number of an Ethernet device on the network.
  • Page 68: Using Configureip.exe To Configure The Cyclone For Stmicro

    STMicro software distribution. In order to update the network parameters, perform the following steps: 1. Connect a Cyclone for STMicro to the PC via a serial or a USB cable, and make sure that it is powered before launching the Cyclone Con- figuration Utility.
  • Page 69 CYCLONE FOR STMICRO Figure 8-3: Cyclone IP Setup Utility - Continue Setup 3. The Cyclone for STMicro now needs to be programmed with IP num- bers for the network on which it will operate. The Cyclone IP Number field must contain a unique IP number.
  • Page 70: Serial Port Configuration

    CYCLONE FOR STMICRO SERIAL PORT CONFIGURATION Standard serial cables may be used for serial port Cyclone for STMicro configuration. Cyclone for STMicro - User Manual...
  • Page 71: Usb Port Configuration

    CYCLONE FOR STMICRO USB PORT CONFIGURATION Standard USB cables may be used for USB port Cyclone for STMicro configuration.The user may use network hubs as necessary. Cyclone for STMicro - User Manual...
  • Page 72: Automatic Serial Number Mechanism

    In addition, the serial number is incremented to the next available serial number and saved for future serialized programming operations. The Cyclone for STMicro adopts this automatic serial number mechanism for its stand-alone operations. 11.1...
  • Page 73: Serialize Utility

    "None Selected". If the file exists, the serial number and its properties are displayed on screen. • Double Click or …Click - Opens a standard file browser and lets you Cyclone for STMicro - User Manual...
  • Page 74 Up Arrow Click - Increases the upper bound by one with a maximum of FF Hex. • Down Arrow Click - Decreases the upper bound by one with a minimum of the current serial number byte value. Cyclone for STMicro - User Manual...
  • Page 75 Serialize.ini. This file will initialize the setup information the next time the program is started. Xing out of the program (top right of screen) does not save the setup info. 11.2.11 BINARY, NUMERIC, CONSTANT, ALPHA UPPER, ALPHA LOWER, and Cyclone for STMicro - User Manual...
  • Page 76: Serialize Utility Example

    “PS Program Serial Number”. P&E’s command line software uses the same commands in a command line fashion to invoke the serial number file, initiate its programming, and increment: CS serial_number_file.ser Cyclone for STMicro - User Manual...
  • Page 77: Serial Number Handling In Cyclone For Stmicro

    SAP image. Once a serial number is programmed, the Cyclone for STMicro firmware automatically increments the serial number and stores it in the Cyclone for STMicro’s flash for internal images or external CompactFlash for external SAP images.
  • Page 78 CYCLONE FOR STMICRO CS serial_file4.ser CS serial_file5.ser Cyclone for STMicro - User Manual...
  • Page 79: Cyclone Error Codes

    $0014: SAP image storage was not initialized $0015: SAP image transfer error, invalid data length $0016: SAP image transfer error, invalid start address $0017: SAP image transfer error while writing to storage $0018: Error writing serial number structure storage Cyclone for STMicro - User Manual...
  • Page 80: Sap Communication Handling Errors

    $2001: Erase error, algorithm not supported $2002: Erase error, algorithm not found $2003: Erase error, module failed or canceled $2004: Erase error, module failed, target is still secured $2005: Erase error, module not performed, data is preserved Cyclone for STMicro - User Manual...
  • Page 81: Sap Program Byte, Word, And Module Errors

    $4012: VV failed, invalid algorithm $4013: VV operation failed or canceled 12.10 SAP Verify Range and Module Errors $5003: Verification operation failed or canceled 12.11 SAP User Function Errors $6003: User function failed or canceled Cyclone for STMicro - User Manual...
  • Page 82: Sap Trim Errors

    $800F: Fatal Error, please contact P&E $8010: Fatal Error, please contact P&E $8011: Fatal Error, please contact P&E $8012: Fatal Error, please contact P&E $8013: Fatal Error, please contact P&E $8014: Fatal Error, please contact P&E Cyclone for STMicro - User Manual...
  • Page 83: External Memory Errors

    $B003: Total number of Serial Number Structures is over limit of 254. $B004: Error converting serial number structure $B005: Error updating serial number $B006: Serial number structure not found $B007: Serial number structure invalid Cyclone for STMicro - User Manual...
  • Page 84: Successful Download Counter Errors

    $C003: Total number of download counter is over limit of 254. $C004: Error converting download counter structure 12.17 System Hardware/Firmware/Logic Recoverable Errors $D001: Firmware does not exist $D002: Firmware update not allowed $D003: Firmware update failed $D004: Firmware update mismatch Cyclone for STMicro - User Manual...
  • Page 85 CYCLONE FOR STMICRO Cyclone for STMicro - User Manual...

Table of Contents