PEmicro Cyclone MAX User manual


Purchase Agreement
The included 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 in this envelope 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 this software 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 up to two different computers, provided that
the software is never used on the 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.
With respect to the physical media provided within, P&E Microcomputer Systems warrants
the same to be free of defects in materials and workmanship for a period of 30 days from
the date of receipt. If you notify us within the warranty period, P&E Microcomputer
Systems will update the defective media at no cost.
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 installing or using this software, you agree to the terms of this agreement. If you do not
agree, you should cancel the software installation now.
------------------------------------------------------------------------------------------------------------------------
© 2012, 2015 P&E Microcomputer Systems, Inc. “Windows” is a registered trademark of
Microsoft Corporation. “Freescale,” “ColdFire,” “Qorivva”, and “Kinetis” are registered
trademarks of Freescale Semiconductor, Inc. “IBM” and “Power Architecture” are
registered trademarks of IBM corporation. “ARM” is the registered trademark of ARM
Limited.
P&E Microcomputer Systems, Inc.
98 Galen St.
Watertown, MA 02472
617-923-0053
http://www.pemicro.com Manual version 1.18

Cyclone MAX User Manual i
CYCLONE MAX
1 INTRODUCTION ............................................................................................ 1
2 GETTING STARTED ...................................................................................... 3
2.1 Software Installation ....................................................................................... 3
2.2 Image Creation Utility ..................................................................................... 3
2.3 Manage Images Utility.................................................................................... 5
3 CYCLONE MAX HARDWARE........................................................................ 8
3.1 Power Source................................................................................................. 8
3.2 Serial (RS232) Communications Port ............................................................ 8
3.3 USB 1.1 Communications Port....................................................................... 9
3.4 Ethernet Communications Port ...................................................................... 9
3.5 PORT A – Reserved..................................................................................... 10
3.6 PORT B – Qorivva (MPC5xxx), DSC, or SPC56.......................................... 10
3.7 PORT C – ColdFire V2/3/4 or ColdFire Extension Cable............................. 11
3.8 PORT D – Power MPC5xx/8xx .................................................................... 13
3.9 PORT E – Kinetis or MAC7xxx Automotive Controllers ............................... 14
3.10 PORT F – Reserved..................................................................................... 20
3.11 CompactFlash Port....................................................................................... 20
3.12 Cyclone MAX Buttons .................................................................................. 21
3.13 LEDs............................................................................................................. 21
3.14 Ribbon Cable with IDC Socket ..................................................................... 21
4 STAND-ALONE PROGRAMMER CONFIGURATION.................................. 23
4.1 Cyclone MAX Image Creation Utility ............................................................ 23
4.2 Configuration Via LCD Menu........................................................................ 35
5 STAND-ALONE PROGRAMMER MANUAL CONTROL .............................. 43
5.1 Via Cyclone MAX Buttons ............................................................................ 43
5.2 Operation Procedure via LCD Menu ............................................................ 44
5.3 Cyclone Battery Pack ................................................................................... 47
6 STAND ALONE PROGRAMMER AUTOMATED CONTROL....................... 48
6.1 Automated .EXE Control of The Cyclone ..................................................... 48
6.2 Automated .DLL Control Of The Cyclone..................................................... 53
6.3 Control Of Multiple Cyclone Units ................................................................ 54

ii Cyclone MAX User Manual
CYCLONE MAX
6.4 Serial And Ethernet Protocol Specifications .................................................55
7 PC-HOSTED DEBUG/PROGRAMMING SOFTWARE................................. 56
7.1 Freescale Codewarrior .................................................................................56
7.2 P&E Microcomputer Systems’ Software .......................................................60
8 ETHERNET PORT CONFIGURATION ........................................................ 64
8.1 Network Architecture ....................................................................................64
8.2 Network Parameters .....................................................................................65
8.3 Internet Protocol ...........................................................................................65
8.4 Connecting the Cyclone Device....................................................................66
8.5 Cyclone IP Setup Via LCD Menu..................................................................68
8.6 Cyclone IP Setup Utility User Interface (ConfigureIP) ..................................68
8.7 Configuring Via The Cyclone IP Configuration Utility....................................70
8.8 Serial And Ethernet Protocol Specifications .................................................72
9 SERIAL PORT CONFIGURATION............................................................... 73
10 USB PORT CONFIGURATION .................................................................... 74
11 AUTOMATIC SERIAL NUMBER MECHANISM ........................................... 75
11.1 Understanding Serialization..........................................................................75
11.2 Serialize Utility ..............................................................................................76
11.3 Serialize Utility Example ...............................................................................79
11.4 Using Serial Number File..............................................................................79
11.5 Serial Number Handling in Cyclone MAX .....................................................80
12 CYCLONE ERROR CODES......................................................................... 82
12.1 Debug Mode Communication Errors ............................................................82
12.2 SAP Image Handling Errors..........................................................................82
12.3 SAP Communication Handling Errors...........................................................83
12.4 SAP Algorithm Header Operation Handling Errors.......................................83
12.5 SAP Operation Errors ...................................................................................83
12.6 SAP Blank Check Range and Module Errors ...............................................83
12.7 SAP Erase Range and Module Errors ..........................................................83
12.8 SAP Program Byte, Word, and Module Errors..............................................84
12.9 SAP Verify Checksum Errors........................................................................84

Cyclone MAX User Manual iii
CYCLONE MAX
12.10 SAP Verify Range and Module Errors.......................................................... 84
12.11 SAP User Function Errors ............................................................................ 84
12.12 SAP Trim Errors ........................................................................................... 85
12.13 Unrecoverable Fatal Errors .......................................................................... 85
12.14 External Memory Errors ............................................................................... 86
12.15 Serial Number Errors.................................................................................... 86
12.16 Successful Download Counter Errors .......................................................... 87
12.17 System Hardware/Firmware/Logic Recoverable Errors ............................... 87

iv Cyclone MAX User Manual
CYCLONE MAX

Cyclone MAX User Manual 1
CYCLONE MAX
1 INTRODUCTION
The Cyclone MAX is a versatile tool that can be used for the programming,
debugging, and testing of microprocessor-based hardware. It can be
controlled interactively via a Host PC, or operate independently of the PC in
stand-alone mode. The Cyclone MAX can also be configured and operated
via Serial, USB, and Ethernet communication interfaces. When in stand-alone
mode, its programming functions can be initiated directly through user input
buttons, or by using those same buttons to make selections from the LCD
menu.
The Cyclone MAX is able to debug and program a variety of processor
architectures using the target hardware’s Background Debug Mode (BDM),
JTAG. or SWD ports.
• Supported Architectures
• Power BDM (MPC5xx/8xx)
• Qorivva®(MPC5xxx)
• STMicroelectronics SPC56
•ColdFire®V2/3/4 (MCF52xx/53xx/54xx)
• Kinetis®
• MAC7xxx Automotive Controllers
• DSC (MC56F80xx, MC56F82xx, MC56F83xx, MC56F84xx)
In addition to the versatility of being able to debug and program the
aforementioned processor families, and the ability to function in stand-alone
mode, the Cyclone MAX includes these other features:
• Multiple Communications Interfaces
• Ethernet 10/100 baseT
• USB 1.1
• Serial Baud 115200, no parity, 8 data bits, 1 stop bit.

2 Cyclone MAX User Manual
CYCLONE MAX
• Onboard and CompactFlash Storage
• Onboard storage of 7 Megabytes. Stores the image to be
programmed, programming algorithm, and any configuration settings.
• CompactFlash storage available with purchase of CompactFlash
activation license.
• Multiple images may be saved using the onboard or CompactFlash
(when activated) storage.
• Multi-Voltage Operation
• Automatically detects and caters to target voltages ranging from 1.8
to 5 Volts.
• LCD Menu
• Allows simple, menu-based control of the configuration and function
of the Cyclone MAX.
In short, the Cyclone MAX is an all-in-one solution for debugging,
programming, and testing of your hardware.

Cyclone MAX User Manual 3
CYCLONE MAX
2 GETTING STARTED
Stand-alone programming is the most common use of the Cyclone MAX,
therefore this section provides a simple quick-start guide to 1) configuring the
Cyclone MAX with data, and 2) using it in stand-alone mode to program the
flash of a target system. The user is encouraged to read this manual in its
entirety for a complete description of the full feature set of the Cyclone MAX.
2.1 Software Installation
The first step is to install the accompanying software. This will install all of the
applications and drivers that will be used to configure/control the Cyclone
MAX. Once the installation is complete and the PC has been rebooted you
may begin to configure the unit for operation.
2.2 Image Creation Utility
If you plan to use the Serial or USB ports for communication, then the
Cyclone MAX can be used right out of the box. If you wish to use the Ethernet
port, however, you will need to configure the corresponding IP numbers
before use. The Ethernet port will not be functional until this configuration is
complete. Please read Section 8 - ETHERNET PORT CONFIGURATION for
more information about the Cyclone IP Setup Utility.
Once you have connected the Cyclone MAX to the PC via either a Serial,
USB, or Ethernet cable, you can launch the Cyclone MAX Image Creation
Utility in order to create a SAP image. A “SAP” Image, or Stand-Alone
Programming Image, is a self-contained image of programming algorithms,
programming procedures, and program data. Once the SAP Image has been
created, it can be transferred to the Cyclone MAX or saved to disk for later
use. The Cyclone MAX uses SAP Images to perform stand-alone programming
of target devices

4 Cyclone MAX User Manual
CYCLONE MAX
Figure 2-1: Cyclone Image Creation Utility
(1) Provides a list of available functions that the user may select and add
to the programming sequence.
(2) This window is where the programming steps are sequenced.
(3) This button moves selected programming functions into the sequence
window.
(4) Displays the processor architecture and the corresponding interface
port on the Cyclone MAX.

Cyclone MAX User Manual 5
CYCLONE MAX
(5) Displays the pinout configuration for the selected architecture.
(6) Allows the user to set the BDM Shift Frequency by selecting from the
drop-down box.
(7) Allows the user to set the Reset Delay.
(8) The “Store Image To Cyclone” button allows the user to store the
current image on the Cyclone MAX.
(9) The “Store Image To Disk” button allows the user to store the current
image on their hard drive. The Manage Image Utility can be used to
configure the Cyclone with one or more images.
At this stage you are simply configuring the Cyclone with the appropriate data
file and programming procedure. Actual programming of the target hardware
occurs later.
Once the information required in Areas 1-4 is complete, you may configure
the Cyclone MAX by clicking the “Store Image to Cyclone” button.
After the image has been saved, you can program a target by simply pressing
the “Start” button on the Cyclone MAX. This will begin the sequence that was
specified in Area 3 (in this example: erase, blank check, program, verify
programmed data).
The complete functionality of the Cyclone MAX and its accompanying utilities
is beyond the scope of this Getting Started section. Please read further to
learn more about the full feature set and operation of the Cyclone MAX. For a
detailed description of the Cyclone MAX Configuration Utility, please refer to
Section 4 - STAND-ALONE PROGRAMMER CONFIGURATION.
Another option is to save the SAP Image to disk. This allows you to transfer
the image to several different Cyclones, or conversely to transfer several
images to one Cyclone. The utility that allows you to transfer multiple images
to the Cyclone MAX (or its accompanying CompactFlash card) is called the
Manage Images Utility.
2.3 Manage Images Utility
Once the programming images have been created and saved to the disk
using the Create Image utility, they may then be loaded collectively onto the
Cyclone. The Manage Images utility, shown in Figure 2-2, allows the Cyclone
to store and manage multiple images in the Cyclone’s internal memory. If you
have purchased a CompactFlash activation license it will also allow you to
store and manage multiple images on any compatible CompactFlash cards

6 Cyclone MAX User Manual
CYCLONE MAX
that are loaded into the Cyclone’s CompactFlash port.
Figure 2-2: Manage Images Utility
Upon opening a selected Cyclone MAX, 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. The panels
to the right can be used to add or delete additional images by using the Add
and Remove buttons beneath each panel.

Cyclone MAX User Manual 7
CYCLONE MAX
Once the images that you wish to load appear in the panels to the right, you
must press “Commit Changes” to load the Cyclone accordingly. No changes
made to the Cyclone MAX until the “Commit Changes” button is pressed.
Note: Any images that are already stored on the Cyclone MAX or CompactFlash
can only be removed by using the “Remove All” button.

8 Cyclone MAX User Manual
CYCLONE MAX
3 CYCLONE MAX HARDWARE
This section describes the various ports and inputs of the Cyclone MAX.
3.1 Power Source
The Cyclone MAX requires a regulated 6V DC Center Positive power supply
with 2.5/5.5mm female plug. The Cyclone MAX receives its power from the
power jack located on the side of the unit.
Figure 3-1: Power Jack
3.2 Serial (RS232) Communications Port
The Cyclone MAX provides a DB9 Female connector for communication with
a host computer through the Serial (RS232) Port. Communication takes place
at a fixed baud rate of 115200 Baud, 8 Data bits, No Parity, and 1 Stop Bit.
Figure 3-2: Serial Port

Cyclone MAX User Manual 9
CYCLONE MAX
3.3 USB 1.1 Communications Port
The Cyclone MAX provides a USB connector for communicating with a PC via
the Universal Serial Bus port. The Cyclone MAX is a USB 1.1 compliant
device.
Figure 3-3: USB Port
3.4 Ethernet Communications Port
The Cyclone MAX provides a standard RJ45 socket for communication with a
host computer through the Ethernet Port. The Ethernet Port of the Cyclone
MAX is a 10/100 baseT port.
Figure 3-4: Ethernet Port

10 Cyclone MAX User Manual
CYCLONE MAX
3.5 PORT A – Reserved
Port A is reserved for future use.
3.6 PORT B – Qorivva (MPC5xxx), DSC, or SPC56
Port B can be used to connect to Qorivva (MPC5xxx), DSC (MC56F80xx,
MC56F82xx, MC56F83xx, MC56F84xx), or STMicroelectronnics SPC56
targets. For the physical dimensions of the connector, please see Section
3.14 - Ribbon Cable with IDC Socket.
Figure 3-5: Port B - Qorivva, DSC, or SPC56 Header
Qorivva or SPC56 Pinout
TDI 12GND
TDO 34GND
TCK 56GND
NC 78NC
RESET 910TMS
VDDE7 11 12 GND
RDY 13 14 JCOMP

Cyclone MAX User Manual 11
CYCLONE MAX
DSC Pinout
TDI 12GND
TDO 34GND
TCK 56GND
NC 78NC/KEY
RESET 910TMS
VDD 11 12 GND
NC 13 14 TRST
3.6.1 BERG14-to-MICTOR38 Optional Connector (PORT B)
P&E offers a 14-pin BERG to 38-pin MICTOR adapter, sold separately, that
may be used on Port B of the Cyclone MAX. The P&E part number is
BERG14-TO-MICTOR38.
Figure 3-6: BERG14-TO-MICTOR38 Adapter (Sold Separately)
3.7 PORT C – ColdFire V2/3/4 or ColdFire Extension Cable
Port C is the interface for the ColdFire MCF52xx/53xx/54xx family of
microprocessors. This port connects to the target hardware using either the
ColdFire extension cable for synchronous ColdFire targets such as MCF5272
& MCF5206E (P&E part# CABLE-CF-ADAPTER, sold separately), or a
standard 26-pin ribbon cable for asynchronous ColdFire targets (included with
the Cyclone MAX) . Please refer to each processor’s user manual to identify

12 Cyclone MAX User Manual
CYCLONE MAX
whether it is a synchronous or asynchronous interface. For the physical
dimensions of the connector, please see Section 3.14 - Ribbon Cable with
IDC Socket.
Figure 3-7: Port C - ColdFire Header
ColdFire Pinout
N/C 12BKPT
GND 34DSCLK
GND 56N/C
RESET 78DSI
VCC 910DSO
GND 11 12 PST3
PST2 13 14 PST1
PST0 15 16 DDATA3
DDATA2 17 18 DDATA1
DDATA0 19 20 GND
N/C 21 22 N/C
GND 23 24 CLK
VCC 25 26 TEA
The ColdFire extension cables, one for Synchronous targets and one for

Cyclone MAX User Manual 13
CYCLONE MAX
Asynchronous targets, are pictured below:
Figure 3-8: ColdFire Extension Cable With Adapter (P&E part#
CABLE_CF_ADAPTER, for synchronous ColdFire targets, sold separately)
Figure 3-9: ColdFire Ribbon Cable (for asynchronous ColdFire targets, included
with Cyclone)
3.8 PORT D – Power MPC5xx/8xx
Port D can be used to connect to Power (MPC5xx/8xx) BDM targets. For the

14 Cyclone MAX User Manual
CYCLONE MAX
physical dimensions of the connector, please see Section 3.14 - Ribbon
Cable with IDC Socket.
Figure 3-10: Port D - Power MPC5xx/8xx BDM Header
Power MPC5xx/8xx BDM Pinout
N/C 12SRESET#
GND 34DSCLK
GND 56N/C
HRESET# 78DSDI
VDD 910DSDO
3.9 PORT E – Kinetis or MAC7xxx Automotive Controllers
Port E is a standard 20-pin header that can be used to connect to Kinetis and
MAC7xxx targets. For the physical dimensions of the connector, please see
Section 3.14 - Ribbon Cable with IDC Socket.
Table of contents