Home

cyclone pro rev. c 1_10.book

image

Contents

1. Figure 2 4 Cyclone PRO USB Connector 2 5 Electromechanical Relays Inside the Cyclone PRO two electromechanical relays are used to cycle target power The specifications of the relays are as following Maximum switched power Maximum switched current Maximum switched voltage UL Rating 30W or 125 VA 1A 150VDC or 300VAC 1A at 30 VDC 1A at 125 VAC P amp E only recommends switching DC voltages up to 30 Volts Cyclone PRO User Manual gt gt CYCLONE PRO mero 2 6 Power Connectors The Cyclone PRO 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 TARGET POWER IN TARGET POWER OUT Figure 2 1 Power Connector Locations 2 7 Jumper Settings Please note that Rev C of the Cyclone PRO uses different jumper settings than previous versions The jumpers must be set differently for various power management options that the Cyclone PRO offers If the Cyclone PRO is not being used to manage the target s power only Jumper 5 needs to be installed Please see Section 2 12 Target Power Management for the c
2. Figure 6 17 68HC908JK Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO8 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTBO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTB1 PORTB2 and PORTB3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTB1 and pull down PORTB2 and pull up down PORTB3 for clock division In which case the user does not need to connect these signals to the target MONO8 Header Cyclone PRO User Manual 77 gt gt CYCLONE PRO micro 6 18 68HC908JL M Cyclone Pro amp T arget Specific Panel coe Toot A Pot Pin Setings Dung Reset M Baud Rate amp Security Settings Pin 1 gt NC o o GND lt Pin 2 Bol imon F cae NC o o RESET JV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o NC NC o o PTBO COM m Clock Selection 7 Clock Division Pro Clock ae K e TIEL F i Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout o PTB3 0 lt Pin16 Target Clo
3. 108 7 3 3 2 7 3 3 3 Target Has RESET Button Class lll Boards Only The software occasionally needs to get control of the target On systems which are Class III boards with the monitor mode circuitry built in including RS 232 driver there is no means to reset the target to gain control If the board has a reset button the software can use this to gain control of the target system If this option is checked the software will prompt the user to push the target reset button when a reset of the target system is desired If the option is unchecked the software will ask the user to power cycle the target system to achieve a reset MONO8 Cable Connection Communications Type Class II Boards Only This selection box is valid only for Class II hardware configurations using the MONO8 cable It allows the user to specify the sequence that the software uses to power up the ICS system When the software tries to create a power on reset condition two events must occur 1 Power of the target MCU must go below 0 1v This means that the processor can not be receiving power from its power pins nor can it have a significant voltage being driven on port pins or the IRQ line as these will drive the MCU power back through these pins It is crucial therefore to have the ICS and the Target both powered down at some point in time 2 The processor MONOS configuration pins including IRQ must be properly driven when the target processor re
4. Specify Target Architecture ETSE z Required P amp E Hardware CYCLONE PRO Programming Sequence CM Choose Algorithm 000020 A CM C pemicro cyclone_pro Algorithms HC12_HC512 9512dp256_4k 12P 00002000 SS Specify S Record SS C test bdm12 testdp256_eeprom s19 EN Erase if not Blank EM EM Erase Module BM BM Blank Check Module PB Program Bytes PW Program Words PM Program Module VM Verify Module VE Seriy Checksum S I Ignore 19 Range Check Defaut Cear Moveup Move down Remove Launch Script Wizard Cyclone Pro amp T arget Specific Panel Target is HC9 S 12 X Target Frequency Settings HC9 S 120 Target BDM Header IV Before Attempting Auto Detection of BDM Speed try external target bus frequency Pin1 gt BKGDo o GND lt Pin2 Target Bus Frequency in HZ 2000000 NC o o RESET IV Unsecure HC9S120 target if fail communication Pin 5 gt NCo oVDD lt Pin6 Target Voltage amp Power Settings Reset Delay I Use Cyclone Pro Relays After reset delay O ms before attempting communication Module Base Address in HEX Base Address 00002000 IHYOU MUST SPECIFY THISI Image Description 10 31 2005 12 36 02 PM Store Image to Cyclone Save Image to Disk Figure 3 4 HC9 S 12 X Class Settings The target BDM header connections are shown on the right hand side for user reference The user may specify the target internal bus frequency in the edit box provided If the checkbox in the Target Fr
5. 1 Wrong Com Port specified 2 The baud rate specified was incorrect probably too low 3 The ICS Target is not connected 4 No Power to the ICS If this status bit responded with an N you must correct this before analyzing the reset of the status bits 1 Device echoed some security bytes The monitor resident in a 68HC08 device automatically echoes every incoming character when it is in monitor mode A valid character transmitted from the PC should be echoed once by the loopback circuitry on the board and once by the monitor of the target processor itself This status indicates whether or not the second echoed character from the monitor response was received when one of the security bytes was transmitted If the status is N which indicates that the character was not received or not received properly it is most likely due to one of the following reasons 1 The baud rate specified was incorrect 2 The part did not start the monitor mode security check on reset Sig nals to force monitor mode may be incorrect 3 No Power to the ICS If this status bit responded with an N you must correct this before analyzing Cyclone PRO User Manual CYCLONE PRO miero the reset of the status bits 2 Device echoed all security bytes In order to pass security the software must send 8 security bytes to the processor The processor should echo each of these eight bytes twice If all 8 bytes
6. 78 Cyclone PRO User Manual CYCLONEPRO miero Figure 6 19 68HC908JR Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO8 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTA2 and PORTC1 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header as shown or ensure that they are pulled up down according to the image 6 20 68HC908JW Cyclone Pro amp T arget Specific Panel HC08 Tt T Pot PinSetings Dung Reset P i Pin 1 gt NC o o GND lt Pin 2 Baud Rate amp Security Setti p Baud Rate sek ettings a NE 6 RESET JV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o NC NC o o PTAO COM m Clock Selection Clock Division Pro Clock Ae z gt a z l Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout 0 o PTC1 0 RING Target Clock C D4 4 9152MHz Figure 6 20 68HC908JW Family MONO8 Pinout The target GND is connected to the Pin 2 of the target M
7. m Cro CYCLONEPRO 5004 6003 6004 7003 7004 7005 7006 7007 Error during verifying range Error during user functions Error during user functions Error calculating trim value Trim value is not calculated Program Word Algorithm is not supported for writing the trim value Program Byte Algorithm is not available for writing the trim value Error during programming the trim value 5 1 4 Sample Batch File Here is an example of calling the CYCLONEPRO_LAUNCH utility and testing its error code return in a simple batch file Sample batch files are given for both Windows NT 2000 and Windows 95 98 ME XP Windows NT 2000 CYCLONEPRO_LAUNCH PORT COM1 if errorlevel 1 goto bad goto good bad ECHO BAD BAD BAD BAD BAD BAD BAD BAD good ECHO done Windows 95 98 ME XP START W CYCLONEPRO_LAUNCH PORT USB1 if errorlevel 1 goto bad goto good bad ECHO BAD BAD BAD BAD BAD BAD BAD BAD good ECHO done Cyclone PRO User Manual 53 c gt CYCLONE PRO D micro 5 1 5 Information For more information on CYCLONEPRO_LAUNCH and how to construct detailed executions for your own devices please contact P amp E 5 2 Automated DLL Control Of The Cyclone Another automated means of controlling a Cyclone PRO or Cyclone MAX unit is via a Windows DLL The DLL allows a host application to connect to a Cyclone unit via Ethernet and control stand alone programming operations Inclu
8. 110 Cyclone PRO User Manual CYCLONE PRO m Cro P amp E Connection Manger Connect to Target Advanced Settings Programming Adapter Connections MONOS 16 Pin Header Signals Interface Details P amp E Multilink on LPT1 User Specified Add Remove Connections Refresh 2 Curent Chipmode HC908GP32 Power Clock Details Security Options Device Power 5 Volts User Switched when prompted Ignore Security The flash will be erased and reprogrammed with the compiled project binary via the load sequence after which flash will be Device Clock Clock Driven by P amp E Interface on Pin 13 accessible for debugging Pass Security in order to debug a pre programmed Clock Divider 2 device The flash memory contents MUST be and E preserved and be accessible so it can be debugged Frequency Status Connection Status Summary MONOS Diagnostics Disabled Figure 7 18 Connection Manager Dialog P amp E Multilink Cyclone PRO This dialog can be used by the user to manually enter the proper security bytes via the USER setting or to load the security bytes from the same S19 file which was programmed The bytes are loaded from an S19 file by clicking the Load from S19 button 7 3 4 1 IGNORE Security Failure And Enter Monitor Mode This checkbox can be used to cause the software to ignore a failure to properly pass the 68HC
9. Baud Rate amp My Computer IV Before atl Baud Rate Places Files of type HCO8 Algortihm File 08P X Cancel Target Clock Figure 3 10 Load Programming Algorithm Dialog Select the programming algorithm that you wish to use Similarly to specify the S Record to be programmed into the target double click on 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 PRO User Manual 29 gt gt CYCLONE PRO 30 Programming Sequence CM Choose Algorithm SS Specify Record EN Erase if not Blank EM Erase Module BM Blank Check Module PB Program Bytes Pw Program Words PM Program Module VM Nerify Module VC Merify Checksum v pemicro cyclone_pro AlgorithmsSHC084908_as60 08P I Ignore 19 Range Check Default Clear Move up Move down Remove Launch Script Wizard mero Figure 3 11 Programming Functions Enabled Next the user should add additional programming functions to complete the programming script Programming Sequence CM Choose Algorithm a CM C pemicro cyclone_pro Algorithms HC08 908_as60 08P SS Specify Record SS C products Prog TEST S19 EN Erase if not Blank EM Erase Module EM Erase Module PM Program Module BM Blank Check Module PB Program
10. Jumpers 1 2 and 3 are all enabled as shown in Figure 2 12 Figure 2 12 Jumper Settings for Target Power Connection via Cyclone PRO Board Power and Pin 15 of Cyclone PRO MONO08 Connector Figure 2 13 Via Cyclone PRO Board Power and Pin 6 of Cyclone PRO BDM Connector Cyclone PRO User Manual 15 gt CYCLONE PRO mero Jumpers 2 3 and 4 are enabled as shown in Figure 2 14 Figure 2 14 Jumper Settings for Target Power Connection via Cyclone PRO Board Power and Pin 6 of Cyclone PRO BDM Connector 2 12 4 Using Power IN Jack And MONO8 Header Pin 15 A center positive power supply is connected to the Power IN Jack of the Cyclone PRO Pin 15 of the Cyclone PRO MONO8 header provides the appropriate voltage for MONO8 targets CYCLONE PRO 16 Cyclone PRO User Manual CYCLONE PRO m Cro Figure 2 15 Using Power IN Jack And MONO8 Header Pin 15 Figure 2 16 Jumper Settings For Power IN Jack And MONO8 Header Pin 15 Jumpers 1 3 and 5 are enabled Jumpers 2 and 4 are left open 2 12 5 Target Powered Independently Of Cyclone PRO For ColdFire V1 HC S 12 X HCS08 RS08 devices the target may be powered independently of the Cyclone PRO The user should remove all jumpers on the Cyclone PRO except jumper 5 if they elect to provide a separate power source for the target 2 13 CompactFlash Port The CompactFlash port can be activated by purchasing a CompactFlash Activation License from P amp
11. The HC08 P amp E Multilink Cyclone Pro Connection setting permits a connection to Class 5 7 or 8 devices Please see the descriptions below for a definition of each interface class HCO8 P amp E Multilink Cyclone Pro Connection Interface mode allows the user to debug code as the firmware is fully resident in the FLASH of the microprocessor The operation of all modules fully reflects the actual operation of the on board resources 7 3 2 Connection Procedure 1 Choose the P amp E Multilink Cyclone Pro option from the Set Connec tion dialog See Figure 7 8 Set Connection Processor Hcos zi oK Connection ICS Mon08 Interface Cancel Full Chip Simulation P amp E Multilink Cyc Mon08 Interface ICS P amp E Multilink Cyclone Pro Help ICS Mon08 Interface Hitex Emulator Target Interface MONOS Target Interface MMDS MMEVS emulator SofTec HCO8 Trace32 Target Interface Figure 7 8 Set P amp E Multilink Cyclone PRO 2 The device power selection allows the user to specify whether the tar get is 2 3 or 5 Volts and whether this power is switched generated 102 Cyclone PRO User Manual CYCLONEPRO gt miero by the P amp E interface or if it is separately supplied to the target and under user control If it is under user control the software will use dia log boxes to ask the user to power the target up and down when nec essary similar to Class lIl IV See Figure 7 9 5 Volts Genera
12. 4 the software reads locations FFF6 FFFF to determine if the processor passes the security check Memory locations which are invalid or protected read back from the device as SAD If all bytes from FFF6 FFFF read a value of AD it is assumed the device is secure and the flag value is an N If all flags 0 5 register a value of Y and flag 6 register a value of N then the reset process has gone correctly except that the security code used to pass security was incorrect Specify the correct security code and try again or IGNORE the security failure and erase the device Once you erase a secured device you must exit the software and restart it in order to pass security 7 3 6 MultilinkCyclonePro Menu Description Load Ctrl L Reset Ctrl R Command Files Device HC908A4B32 Connect P amp E Micro Hardware Documentation gt Figure 7 19 MultilinkCyclonePro Menu 114 Cyclone PRO User Manual CYCLONE PRO mero 7 3 6 1 Device The Device option in the MultilinkCyclonePro menu allows the user to select the particular Freescale processor that they wish to use When choosing Device from the MultilinkCyclonePro menu additional boxes will open which allow you to select the family e g KX Family and device type e g HC908KX2 of the MCU that you are using Load Ctrl L Reset Ctrl R Command Files Device HC90BKX2 j AB Family gt Connect ASJAZ Family gt P amp E Micro Ha
13. HCS08 z Required P amp E Hardware CYCLONE PRO Programming Sequence CM Choose Algorithm SS Specify S Record gt I Ignore 19 Range Check Defaut Clear Moveup Move down Remove Launch Script Wizard Cyclone Pro amp T arget Specific Panel Target is HCS08 HCS08 Target BDM Header Pint gt BKGD o o GND lt Pin2 NC o o RESET Pin 5 gt NCo o VDD lt Pin6 Target Voltage amp Power Settings Reset Delay I Use Cyclone Pro Relays Alter reset delay 0 ms before attempting communication Image Description 6 29 2006 7 05 32 PM Store Image to Cyclone Save Image to Disk Figure 3 5 HCS08 Class Settings Cyclone PRO User Manual 23 gt gt CYCLONE PRO mero 3 1 4 RS08 The user may configure the Cyclone PRO to operate on an RS0O8 target by selecting RSO8 from the Specify Target Architecture drop down menu The Cyclone PRO will automatically detect the target frequency and voltage The Cyclone PRO provides all necessary voltage for programming F Cyclone Image Creation amp Management Utility File Options Help Specify Target Architecture ETE Required PRE Hardware CYCLONE PRO REV C Programming Sequence CM Choose Algorithm SS Specify S Record I Ignore 19 Range Check Default Clear Move up Move down Remove Launch Script Wizard Cyclone Pro amp T arget Specific Panel Target is RS08 RS08 Target BDM Header Pini gt BKGDo o GND lt Pin2
14. Used to reset the Cyclone PRO MAX hardware The delay should be at least 2500ms This routine does not need to be called by the calling application and Cyclone PRO User Manual 59 CYCLONE PRO m Cro 60 5 2 3 2 5 2 3 3 exists for historical reasons Call get_image_description C C Prototype char get_image_description unsigned long cyclonepromaxhandle unsigned long imagenumber Description Returns the description string of the selected image For a Cyclone unit with only one programming image the imagenumber value should be set to 1 If the Cyclone unit holds multiple programming images the valid values for image number range from one up to the number of images in the unit The result is a pointer to a null terminated string containing the image description This description is valid until the next call into the DLL is made Call compare_image_with_file C C Prototype bool compare_image_with_file unsigned long cyclonepromaxhandle char aFile unsigned long imagenumber Description Allows the calling application to compare a stand alone programming image stored on the PC with an image stored in the Cyclone This can be used to validate that a programming image in the PC is exactly the same as the one on the Cyclone The Cyclone images automatically self verify but this may be useful to make sure that the version of the image in the Cyclone is what the calling application is expecting
15. 2 Main Menu Main Menu Select SAP Image Execute SAP Function Compact Flash Status Programming Stats Configure Cyclone Figure 4 3 Main Menu The Main Menu is accessible by pressing the Menu button when the status window is displayed The Main Menu contains four selections This section contains information on Execute SAP Function and Show Statistics For information on Select SAP Image and Configure Cyclone please refer to Section 3 8 Configuration Via LCD Menu 4 2 2 1 Execute SAP Function Execute SAP Function presents three Stand Alone Programming functions that you may execute by highlighting the function that you wish Cyclone PRO User Manual 47 gt CYCLONE PRO inicro to execute and pressing the Select button Execute SAP Function Launch Programming Perform Verify Only Toggle Power Figure 4 4 Execute SAP Function 4 2 2 2 Compact Flash Status If a compatible CompactFlash card is loaded into the Cyclone the Compact Flash Status menu selection diplays 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 Compact Flash Status Name Productionl Number Of Images 3 Memory 128MB Total 32MB Used 96MB Free Figure 4 5 Compact Flash Status 4 2 2 3 Show Statistics The fourth line PCIP displays the IP address of the last PC to control the Cyclone PRO The other cate
16. Bytes Pw Program Words PM Program Module VC Mariy Checksum _____ I Ignore 19 Range Check Default Clear Move up Move down Remove Launch Script Wizard Figure 3 12 Programming Functions Complete The Default button prompts the user for a programming module followed by an S Record and creates a default programming script The Clear button will remove all programming commands from the right panel The Move Up and Move Down buttons allow the user to manually re sequence the order of the programming commands The Remove button can be used to remove a selected command from the right panel For information about the Launch Script Wizard button please reference Section 3 3 Script Wizard At this point the image can be saved to a disk or to the Cyclone PRO device For more information please see Section 3 6 Store Image To Cyclone Cyclone PRO User Manual CYCLONE PRO m Cro 3 3 Script Wizard The Script Wizard is a convenient addition to the Cyclone Image Creation And Management Utility In contrast to script creation method referenced in Section 3 2 Specify Programming Script the Script Wizard allows the user to simply select the programming functions The Script Wizard then orders these functions automatically To begin click the Launch Script Wizard button on the right side of the Cyclone Image Creation And Management Utility This opens the Script Wizard Script Wizard Imag
17. HCSO8 _ C Program Files Metrowerks CWO08 Figure 7 27 HCS08 P amp E Multilink Cyclone Pro Connection Setting 2 Choose the P amp E device that you are using from the Interface drop Cyclone PRO User Manual 121 gt CYCLONE PRO mero 122 down menu and click on Refresh See Figure 7 28 and Figure 7 29 ICD Connection Assistant Eg ou have selected to display this dialog on startup Specify communications _ parameters and click OK Connection port and Interface Type Interface Cyclone PRO USB Port Add LPT Port BDM Multilink Parallel Port Refresh List Port USB HCSO8 HCS12 Multilink USB Port Cyclone PRO Serial Port Cyclone PRO Ethernet Port lapter Settings Target CPU Information CPU HCSO8 Processor Autodetect MCU reset line MCU Voltage Reset Delay I Delay after Reset and before communicating to target for 0 milliseconds decimal IV When initiating a debugger reset the MCU Reset Pin should be used else use a debug module reset Cyclone Pro Power Relay Control Voltage gt Power Dut Jack J Use Cyclone Pro relays tor Ou Connect Hotsync Abort Figure 7 28 HCS08 Connection Assistant Interface Selection Cyclone PRO User Manual CYCLONE PRO Toicro ICD Connection Assistant ou have selected to display this dialog on startup Specify communications parameters and click OK Connection port and Interface Type Interface E pa ee
18. Manual 67 _ CYCLONE PRO mero 6 5 68 signal with a 10K Ohm resistor to the target VDD PORTCO PORTC1 and PORTC3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTCO and pull down PORTC1 and pull up down PORTCS3 for clock division In which case the user does not need to connect these signals to the target MON08 Header 68HC908AZ Cyclone Pro amp T arget Specific Panel HC06 Tt i Pot Pin Settings Dung Reset Baud Rate amp Security Settings Pin 1 gt NCo o GND lt Pin2 c Ee eee NC o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High BaudRate 17723 Security Bytes FF FF FF FF FF FF FF FF NC o o NC NC o o PTAO COM Clock Selection 7 Clock Division r Pro Clock hee gt dit F l Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout o o PTC3 0 c Pinl6 Target Clock C DV4 C 4 9152MHz Figure 6 5 68HC908AZ Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone PRO
19. PRO to the target system Via the 6 pin background mode connector to the HC S 12 X S08 targets or the 16 pin MONO8 connector to the HC908 targets c Power up the PC and the target system d Run the software from the DOS prompt Allowed command line parameters are CYCLONEPRO_LAUNCH port y image n where the value of y is See examples section USB1 USB Device 1 USB2 USB Device 2 USB3 USB Device 3 Cyclone PRO User Manual CYCLONEPRO gt m Cro USB4 USB Device 4 COM1 Serial Port 1 COM2 Serial Port 2 COM3 Serial Port 3 COM4 Serial Port 4 Ethernet IP address 4 4 4 Each symbol represents a decimal number between 0 and 255 and where n designates the index of the image residing on the Cyclone PRO ranging in value from 1 to 255 5 1 2 Command Line Parameter Examples CYCLONEPRO_LAUNCH Port COM1 Cyclone PRO is connected to the PC via the COM1 port CYCLONEPRO_LAUNCH Port USB1 Cyclone PRO is connected to the PC via the USB1 port CYCLONEPRO_LAUNCH Port USB1 Image 1 Start the first programming image on the Cyclone which is connected to USB1 port CYCLONEPRO_LAUNCH Port 209 61 110 251 Cyclone PRO is connected to a network with IP address of 209 61 110 251 CYCLONEPRO_LAUNCH Port 209 61 110 251 Image 3 Start the third programming image on the Cyclone which is connected to the network with the IP address of 209 61 110 251 5 1 3 DOS Error Returns DOS error retur
20. PTAO COM NC o o PTA4 0 Clock Selection 4 Clock Division r Pro Clock fae K X ae ail Cyclone Clock op lt y Z 9 8304MHz Pin15 gt Vato o NC lt Pin16 2 Target Clock Div 4 4 3152MHz Note The processor RESET line must have an external pullup Figure 6 32 68HC908QC Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The user must pull up the RESET line to target VDD with an external resistor The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 and PORTA4 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and pull down PORTA4 In which case the user does not need to connect these signals to the target MON08 Header The clock division is fixed Div 4 An external clock signal must be provided to the target MCU s OSC pin The Cyclone PRO provides this signal to MONO8 header Pin 13 The internal clock on this device has several different tap points each of which will result in different clock frequencies There are several different algorithms for the device each of which is optimized for a specific tap point frequ
21. Store Image to Cyclone Image Management amp Transfer Interface Ethernet Port Bi Port 209 61 110 59 Cygnus X Refresh Cancel Specify IP Figure 3 17 Image Management And Transfer Dialog The Interface drop down list allows the user to select one of three serial USB or ethernet interfaces The Port drop down list allows the user to select from one of the Cyclones available on that interface In the case of a Cyclone present on a different network i e not displayed automatically in the Port drop down list the user may specify its IP address by using the Specify IP button Store Image to Cyclone will then store the image on the selected Cyclone Cyclone PRO User Manual 35 c gt CYCLONE PRO mero 3 7 Save Image Cyclone Configuration Store Image To Disk allows the current configuration to be saved onto the hard drive The image can then be transferred to the Cyclone PRO via the Manage Images Utility 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 PRO contents with the file to see if they are the same 3 8 Configuration Via LCD Menu The following section describes configuration of the Cyclone PRO using the LCD menus Figure 3 18 shows an overview of the menu structure Status Window Main Menu 3 Select SAP Image e Execute SAP Function i Lau
22. VDD with an external resistor The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTBO and PORTB1 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTBO and pull down PORTA1 and PORTB1 In which case the user does not need to connect these signals to the target MONO8 Header The clock division is fixed Div 4 An external clock signal must be provided to the target MCU s OSC pin The Cyclone PRO provides this signal to MONO8 header Pin 13 This device has several different algorithms each of which will program the calculated trim value to a different non volatile memory location Each algorithm is named to reflect the non volatile trim location to which it corresponds e g 908_kx98trim fadff 08p will program the trim value to location FDFF Simply select the appropriate algorithm when configuring the Cyclone PRO to ensure that trim is programmed to the desired location Cyclone PRO User Manual CYCLONEPRO miero 6 22 68HC908LB Cyclone Pro amp T arget Specific Panel HCOS Target 1 M Port Pin Settings During Reset Pin 1 gt NC o o GND lt Pin 2 NC o
23. at which point the second drop down box will display COM1 Click Open to get a dialog box similar to the following 136 Cyclone PRO User Manual CYCLONE PRO m Cro Cyclone IP Configuration Utility 1 10 Choose Connection Port amp Cyclone Device Close Refresh List Reconfigure IP Numbers Cyclone IP Number Gateway IP Number Cyclone Device Name feo e Subnet Mask Network MAC Address Firmware Version Cyclone Device Type FPGA Version Program IP Parameters Figure 8 3 Cyclone IP Setup Utility Continue Setup 3 The Cyclone PRO now needs to be programmed with IP numbers for the network on which it will operate The Cyclone IP Number field must contain a unique IP number 8 8 Managing Multiple Images 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 8 4 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 also allow you to store and manage multiple images on any compatible CompactFlash cards that are loaded into the Cyclone s CompactFlash port Cyclone PRO User Manual 137 _ CYCLONE PRO mero 138 Cyclone Manage Images Utility Help M Choose Connection Port amp Cyclone Device Ethernet Port v 209
24. chip RAM run code out of RAM or FLASH already programmed by the In Circuit Programmer and set many software breakpoints and a single hardware meaning in FLASH breakpoint The main advantage of using the ICD is that your application runs in real time at the full bus speed of the processor ICDO8SW Debugger ioj x Fie Execute Windows Help el Flo ollie Biel ol ae Cpuas Eloi Memory Window 1 acca 21 PORTA c3 0000 C3 FF 7F FF 60 60 60 60 IPORTB FF 0068 G3 AD AD AD 66 OG 80 GG HREG FF PORTC 7F 6016 28 68 FF 66 66 86 CO 0G XREG FF IPORTD FF 0018 2F 66 0A OG 66 GG GA 68 PORTE 03 0020 206 00 60 FF FF 60 60 60 PC B621 TIMEOUT1 00 CCR 11 1 C ITIMEOUT2 00 gt Memory Window 2 SADT TIMEOUTS 71 0000 C3 FF 7F FF 60 60 G0 60 6668 63 AD AD AD 66 66 86 OG 6616 28 68 FF 66 66 86 C6 66 6618 2F 66 66 66 66 66 66 66 7 6626 26 66 66 FF FF 66 66 66 Code Window 1 Disassembly PII ES Code Window 2 Source demogp20 asm DE FE EEIEIE IE FE FE EEIEIE JEFE FE EEIEIE IE FEFE FE IE EIE JEJEJEJE BBR IBGE gt Main_Init This is the point where code starts execu cLRA after a RESET B823 5F CLRX AAAI IA LIAL IA LIL IIL IIL IAL IASI SI ISS IAS ASAI AS IAS ISS IA B024 ADDA BSR ROMSTART Main Init B026 ADE2 BSR INIT_ATOD rsp B028 ADE BSR INIT_TIMER clra Initialize A X so that int Be2A 3F47 CLR TIMEQUT1 clrx processing doesn t stop wit C
25. did not get the proper two byte echo this flag will be N Reasons for this include 1 The part did not start the monitor mode security check on reset Sig nals to force monitor mode may be incorrect The baud rate specified was incorrect The processor was not reset properly Check the Target Hardware Type and if you are connecting to a class I board check the MONO8 cable communication connections type in the advanced settings dialog 3 Device signaled monitor mode with a break Once the processor has properly received the 8 bytes from the PC software to complete its security check it should transmit a break character to the PC signaling entry into monitor mode This break should be sent regardless of whether the security check was successfully passed If a break was not received from the processor this flag will be N Reasons for this include 1 The baud rate specified was incorrect 2 The processor was not reset properly Check the Target Hardware Type If you are connecting to a class II board check the MON08 cable communication connections type in the advanced settings dialog 4 Device entered monitor mode Once the software has received or failed to receive a break from the processor it attempts to communicate with the monitor running on the 68HC08 processor It tries to read the monitor version number by issuing a monitor mode read If the processor fails to r
26. eaaa EEEE EEE ARAE EEEE RAAE EE 74 6 14 68HC908IB12 aiu E EAN 75 6 15 G8HCOIOBIB 1G sarcini sini EE AA ROR ds 75 6 16 6CBACQOBIG o ccciicseccnccssadicccecnchicnedebscitccnceu EARRA ASE NAAA EEE EEA RR 76 Gir GEACIOSIK arr a a E E Mert aed 77 6 18 GBHCIQSIL resia eE A E AEAEE EAEE EEEE EEEE EEE EE TEE E 78 G19 BBACQOBIR surcar aiaa E AEAEE REE EE 78 620 G8HC90SIW oria E AA A 79 6 21 6G8HC908KX E ENE E A A EEEE T N OE EEEN AE E 80 6 22 GBACQIOBLB ocon NAARAAN ANAA AAA ERARANTA 81 6 23 G8ACIJS LD orenat AENEA EEEN dita E AEE 82 6 24 GBHCIQELJ ee 82 6 25 SG8HCIOG EK ora E EA 83 6 26 G8HCOOBLT siiciiticccstatcccdetsctt ccttivaeetiecwriecvebedatiet geacitlesetddxatsceecedadactl RAA 84 6 27 BBA CQOBLV o ccisiticcccdeciieecccdsiatenceddchaagec cdasatennesdeitd pecaddchiencecvdhdd pecesdehttnecedeatt en 85 6 28 6G8HC908MR4 8 reied r ER edn anid ed 86 6 29 BBHC9OBMR16 32 ee ce cccecceccecnnneeeeeecenneeeeeecaaeeeeescaeeeeeeeeseeeeesenseeeseneaas 86 6 30 CGBACQOBQL faci ic iiscc ccc colivesccceltvicecs desdaneend AEAEE ARELA AEE 87 ii Cyclone PRO User Manual CYCLONE PRO gt moicro 6 31 GBHCQOBOB i iii ananiona aa iaai iaaa iE 88 60 32 68HC908QOC nicin n Ae eerie 89 OCK MU OL m 010101 1O N 90 6 34 GBHCQOBOY sciaccai lean ceca levhensee tect enna ce Siva cecea den bendtadecaes pacitens ancheceeeesaees 91 6 35 GBHCQOBRP a iesctedecsevssiecetstebastecrete dss sneaeheacacstpheaeeteeviaciedenatobactyd
27. for operations on the target EEPROM FLASH You may choose EM Erase Module to erase the target EERPROM FLASH Then use BM Blank Check Module to see if the target EEPROM FLASH is indeed erased After that you may choose PM Program Module to program the S record object into the target Finally you may use VC Verify CRC Checksum to verify that the contents are properly programmed in the target memory Command Line Programmer CPROG is a command line programmer that allows quick turn around time for programming target MCUs The user may create a script file to instruct the software to execute specific commands in sequence Please refer to CPROG documentation for more information Freescale Software The special edition of Freescale s CodeWarrior studio offers absolute assembly and provides debugging capabilities based on P amp E s programming and debug technologies Freescale CodeWarrior A programming or debug session with the project based CodeWarrior IDE may be launched by double clicking on the project name format is projectname mcp from your file storage Starting a new project is a little more challenging but the tutorials FAQs and Quick Start Guides are easy to follow and have you building a new project using pre built templates in a short time The following example illustrates how to program and debug an M68HC908 MCU from within the CodeWarrior IDE Here are the main steps in program
28. hold the target in reset until it is powered up itself and has configured the MONO8 configuration pins The sequence of events in this mode is 1 Software automatically powers down the ICS Cyclone PRO User Manual 109 c gt CYCLONE PRO micro 2 Software asks the user to power cycle their board as follows Power Cycle Dialog olx Tum MCU power off Under 0 1 turn MCU power on and then click OK T IGNORE security failure and enter monitor mode Cancel Figure 7 17 Power Cycle Dialog 3 Software automatically powers up the ICS which configures the pro cessors MONO6 configuration pins 7 3 3 4 Serial Port Stop Bits Serial Port Stop Bits allow users of Class 1 4 devices that are experiencing unreliable communication to increase the number of stop bits to 2 7 3 3 5 Pulse IRQ on Stop The IRQ on Stop allows the users to execute a mechanism to stop a running HCO08 microprocessor For more information please refer to the Stop a Running HC908 Target pdf application note that is available from P amp E Microcomputer Systems website www pemicro com 7 3 4 Target MCU Security Bytes One of the steps that is necessary to properly bypass security is to provide the proper security code for the information that is programmed into the part This holds true even when the part is blank The security code consists of the 8 values which are currently stored in flash locations FFF6 FFFD of the processor
29. illuminated One stand alone programming cycle has just been completed 4 2 Operation Via LCD Menu Rev C Only Rev C of the Cyclone PRO 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 Cyclone PRO User Manual 45 CYCLONE PRO inicro 4 2 1 46 Status Window Status Window Main Menu e Select SAP Image Execute SAP Function i Launch Programming i Perform Verify Only i Toggle Power Compact Flash Status e Programming Stats e Configure Cyclone Edit IP Settings Edit IP Numbers Edit IP Mask Edit IP Gateway Show MAC Address F Edit Cyclone Name i Set AUX Button Function Perform Verify Only i Toggle Power Figure 4 1 LCD Menu Overview Cyclone PRO v8 04 1 2 IP 200 0 0 0 Name Manufacturing PC none Images 2 IN 3 EX IMG1 HC908GZ60 Idle Programming completed Figure 4 2 Status Window The status window appears when the Cyclone PRO is powered on This window lists the following information 1 Firmware version of the PRO Cyclone PRO User Manual CYCLONE PRO mero IP address assigned to the PRO Name assigned to the PRO Name of the PC connected to the PRO Number of programming images in the PRO s memory Name of the selected programming image Current status 2 NOAA R WN Results of the last operation performed 4 2
30. is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTBO and PORTB2 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTBO and pull down PORTB2 In which case the user does not need to connect these signals to the target MON08 Header The clock division is fixed Div 4 6 37 68HC908SR Cyclone Pro amp T arget Specific Panel a Pot Fn Setings Dung Reset i Pin 1 gt NC o o GND lt Pin 2 Baud Rate amp Security Settings 1 w AE E E n IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NCo o NC NC o o PTAQ COM f Clock Selecion p Clock Division Pro Clock a ae ee s 2 Cyclone Clack DIV2 9 8304MHz Pin15 gt Vout o o PTC1 0 EE Target Clock C D4 C 4 9152MHz Figure 6 37 68HC908SR Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is d
31. line according to the target processor type The specific Cyclone PRO User Manual 9 _ CYCLONE PRO inicre 2 11 2 12 10 pinouts for different HCO8 devices are specified in the configuration software and also in CHAPTER Ribbon Cable The Cyclone PRO communicates with the target through either a 16 pin ribbon cable MONO8 or 6 pin ribbon cable BDM Both have a 0 100 inch centerline dual row socket IDC assembly not keyed The ribbon cable is designed such that the Cyclone PRO MON08 BDM Connector and the Target Header have the same pinout i e Pin 1 of the Cyclone PRO MONO8 Connector is connected to Pin 1 of the target MONO8 Header Figure 2 5 sketches the connection mechanism looking down into the sockets for the MONO8 ribbon cable The 6 pin BDM ribbon cable uses a similar scheme with fewer pins Ribbon Cable with IDC Socket Connects to Connects to Target CYCLONE ONOS Header MONOS Connector Figure 2 5 Ribbon Cable Diagram When Looking Into IDC Socket Target Power Management Note Cyclone PRO Rev C implements different jumper settings than previous revisions of the hardware Rev C has added a fifth jumper position which was necessary for the Power In Jack gt Power Out Jack power management setting Rev C has also added new target management schemes including one for BDM Pin6 which are explained below The Cyclone PRO provides three target power management schemes for Cyclon
32. pull up PORTA1 and pull down PORTA4 In which case the user does not need to connect these signals to the target MONO8 Header The clock division is fixed Div 4 An external clock signal must be provided to the target MCU s OSC pin The Cyclone PRO provides this signal to MONO8 header Pin 13 Please note that the Cyclone PRO will calculate the proper trim value for the device being programmed and the user has the option to program this trim value to FFCO 90 Cyclone PRO User Manual CYCLONEPRO miero 6 34 68HC908QY M Cyclone Pro amp T arget Specific Panel coe Toot A PoP Settings Dung Reset Baud Rate amp Security Settings Pin 1 gt NCo o GND lt Pin 2 eer F Ne NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Auto detect Baud Fate Security Bytes FF FF FF FF FF FF FF FF NC o o PTAQ COM NC o o PTA4 0 Clock Selection Clock Division r Pro Clock ae A K HN zi Cyclone Clock S ay 2 9 8304MHz Pin15 gt aee NE lt Pin16 Target Clock f Di4 4 3152MHz Note The processor RESET line must have an extemal pullup Figure 6 34 68HC908QY Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The user must pull up the RESET line to target VDD with an external resistor The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header
33. signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and pull down PORTA4 In which Cyclone PRO User Manual 87 _ CYCLONE PRO m ero 6 31 88 case the user does not need to connect these signals to the target MON08 Header The clock division is fixed Div 4 An external clock signal must be provided to the target MCU s OSC pin The Cyclone PRO provides this signal to MONO8 header Pin 13 Please note that the Cyclone PRO will calculate the proper trim value for the device being programmed and the user has the option to program this trim value to FFCO Cyclone Pro amp Target Specific Panel 103 Tet A Pee Pin Setings Dung Reset Baud Rate amp Security Settings Pin 1 gt NCo o GND lt Pin 2 A TERN f AE NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High uto detect Baud Hate Security Bytes FF FF FF FF FF FF FF FF NC o o PTAO COM NC o o PTA4 0 Clock Selection 7 Clock Division r Pro Clock BE 3 x pin al Cyclone Clock of ub 2 9 8304MHz Pin15 gt Vout o o NC c Pinl6 e Ue Clock _ Diy B e sihh Note The processor RESET line must have an external pullup Figure 6 31 68HC908QB Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The user must pull up the RESET line to target VDD with an external resistor The target IRQ line i
34. step Figure 7 33 Advanced Programming Procedure Prompt on Flash Program Checking Always Erase and Program flash without asking lets the software transparently program the microprocessor Trim Programming The Trim Programming checkbox enables automatic calculation and programming of the trim value in a designated Non Volatile memory location Sync to PLL Change Sync to PLL Change is required for the software hardware connection to synchronize with the microprocessor during the flash erasing programming procedure Start Expert Mode Programmer Cyclone PRO User Manual 125 gt CYCLONE PRO pa miero Start Expert Mode Programmer grants to the user access to P amp E s graphical flash programming utility PROGHCS08 PROGHCS08 lets an advanced user control the step by step execution of the flash erase programming procedure See Figure 7 34 More information on how to use the PROGHCS08 can be found on the P amp E Microcomputer Systems website at www pemicro com EE PROGHCSO8 Programmer Version 1 37 seca Ovid aza al E Choose Programming Function f ex E Configuration BM Blank check module a Module C Program Files Freescale CWO8 V5 0 pra BR Blank check range NOT ACTIVE _ Object File none EB Erase byte range NOT ACTIVE Base 1080 EW Erase word range NOT ACTIVE EM Erase module PB Program bytes PW Program words NOT ACTIVE PH Program module UM Verify module 3 UR Verify range
35. the target MONO08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTCO PORTC1 and PORTC3 are used for entering monitor mode By default the user may directly bring these signals out to the target MON08 Header Alternatively the user may pull up PORTCO and pull down PORTC1 and pull up down PORTCS3 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 12 68HC908GZ M Cyclone Pro amp T arget Specific Panel HCO8 Target Port Pin Settings During Reset Pin 1 gt NC o o GND lt Pin2 NC o o RESET NC o o IRQ High NC o o PTAQ COM Baud Rate amp Security Settings JV Before attempting Auto Baud amp ignoring security try these settings Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o PTA1 0 m Clock Selection 4 pf Clock Division gt Pro Clock 7 Be X x ns a Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout o o PTB4 0 lt Pinl6 Target Clock C DW4 C 4 9152MH2 Figure 6 12 68HC908GZ Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header T
36. 08 security check If the checkbox is set the software will attempt to establish monitor mode communications regardless of the security status As long as the Baud and Port are correct and the device has been properly powered this will allow monitor mode entry By ignoring the security check failure you may use monitor mode but the ROM Flash will not be accessible Note If a connection is not established for a reason other than security failure the connection dialog will always appear Cyclone PRO User Manual 111 CYCLONE PRO m Cro 7 3 5 112 STATUS The status area consists of one status string following the Status label and seven items which list the state of the last attempt to connect to a target and pass security The description for these items is as follows 0 ICS Hardware loopback detected Every ICS or board which supports MONO8 has a serial loopback in hardware which by connecting the transmit and receive lines automatically echoes characters from the PC A valid character transmitted from the PC should be echoed once by the loopback circuitry on the board and once by the monitor of the target processor itself This status indicates whether or not the first echoed character from the hardware loopback was received when one of the security bytes was transmitted If the status is N which indicates that the character was not received it is most likely due to one of the following reasons
37. 08JB16 MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTA2 PORTA3 and PORTE3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and PORTES pull down PORTA2 and pull up down PORTAS for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 16 68HC908JG Cyclone Pro amp T arget Specific Panel a HCO8 Target ic lt S 7T S 3 SCS lt CS d 7 M Port Pin Settings During Reset Baud Rate amp Security Settings Pin gt S z Par lt Pin 2 IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 31457 Security Bytes FF FFFF FF FF FF FFFF Ea A WE Clock Selection 7 Clock Division Pro Clock NC o PTAT 1 OSC o o PTA2 0 Cyclone Clock DIVA 9 8304MHz Pin15 gt Vout o o PTA3 0 lt Pinl6 Target Clock C DW2 4 9152MH2 Waring Do not set the bus fre
38. 3 9 Specify Programming Script This is a two panel interface The left panel provides a list of available programming functions The right panel displays the ordering of the functions 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 gt This opens the Load Programming Algorithm dialog 28 Cyclone PRO User Manual CYCLONE PRO 5 miero Cyclone Image Creation amp Management Utility Load Programming Algorithm Look in HCO8 e E a o8_ab16a 08P E 908_ap16a_highspeed 08p E 08_az0_eeprom 08P E 908_ap32 08P My Recent 908_ab32 08P E 908_ap32_highspeed 0aP Documents k 908_ab32_eeprom 08p E 908_ap32a 08p 53 908_ab32_flash 08p E 908_ap32a_highspeed 08p E 908_ab32_flash_highspeed 08p E 908_ap 4 o8P Desktop m 908_ab32_highspeed 08P 3 908_ap64_highspeed 08P 9 B 908_ab32_highspeed_flasheraseonly 08P E 908_ap64a 08p I Ignore 19 P4 go 3 908_aps 08P E 908_ap64a_highspeed osp E 908_ap8_highspeed osP E 908_as32a 08P i 908_sp8a 08p fi 908_as32a_highspeed 0aP z 908_ap8a_highspeed 08p E 908_as32a_slowspeed 08P HCO8 Target gs E 908_ap16 08P 908_as60 08P 908_ap16_highspeed oaP E 908 _as60_highspeed 08P ti 908_ap16a 08p 908_as60a 08P KETE gt My Network File name cS Open L My Documents r Cyclone Pro amp T lt
39. 58 5 2 2 2 5 2 2 3 holds multiple programming images the valid values for image number range from one up to the number of images in the unit A result of true indicates that the image has started the programming process Call the Check_STARTED_CycloneProMax_Status command to wait for completion Call START_dynamic_program_bytes C C Prototype bool START_dynamic_program_bytes unsigned long cyclonepromaxhandle unsigned long target_address unsigned short data_length char buffer Description Sometimes in addition to the large amount of static data being programmed into a target from the Cyclone it will be advantageous for the calling application to program small sections of unique data dynamically Examples of this include date time serial number MAC addresses and lot numbers This routine allows the user to specify an address data length and pointer to a buffer of data to be programmed into the target It is valid to be called only after a programming image has been programmed into the target once START_execute_all_commands has completed A result of true indicates that the image has started the programming process Call the Check_STARTED_CycloneProMax_Status command to wait for completion Call check_STARTED_cyclonepromax_status C C Prototype unsigned int check_STARTED_cyclonepromax_status unsigned long cyclonepromaxhandle Description Checks to see if the Cyclone PRO or Cyclone MAX has completed a
40. 61 110 151 Persepolis X Specify IP Open Refresh List M Browse amp Add Images to Internal Memory Images currently on the Cyclone Images which will appear on the Cyclone upon Commit Changes IN1 Hybrid_Controlle PPC565_3 43 IN1 Hybrid_Controller_ PPC565_3 43 IN2 ARM_Nexus_01082007 IN2 ARM_Nexus_01082007 Remaining space on Internal Memory 576 KBytes Remove All Remove Add Browse amp Add Images to CompactFlash Images currently on Comp EKT Field_Upgrade_ T 3 49 EKT Field UEA orm 3 49 EX2 ColdFire_52235_ST_28F320EC EX2 ColdFire_52235_ST_28F320EC EX3 MPC5554_4MD_29BL162C B EX3 MPC5554_4MD_29BL162C B Flash upon Commit Change Remaining space on CompactFlash 87345 KBytes Remove All Remove Add Status Cyclone Max Firmware Version 7 47 E Cancel Changes Commit Changes Figure 8 4 Manage Images Utility Upon opening a selected Cyclone PRO 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 Once the images that you wish to load appear in the panels to the right you Cyclone PRO User Manual CYCLONEPRO m Cro must press Commit Changes to l
41. 7 UM Upload module Upload range Specify Object File SM Show module Return to Debugger Reset chip Secure Device Verify CRC Checksum Program Trim Value Un Secured Yes E Status Window Initializing Recommended Trim 77 Bus Freq 15546KHz Initialized version 1 04 03 25 2003 Copyright P amp E Microcomputer Systems www pemicro com device Motorola 68HCS908GB60 All A rie Figure 7 34 PROGHCS08 Software 7 4 4 2 View Register Files The View Register Files menu selection also gives the user the option of running the register file viewer editor If register files are available for the device that you have chosen the Choose a Register Block window see Figure 7 35 will be opened You may also open it by entering the R command in the Command Window command line 126 Cyclone PRO User Manual CYCLONE PRO m Cro A Choose a Register Block or press ESC ioj x 68HC9 OBRK2 Parallel Input Output Ports Keyboard Interrupt Module KBI Internal Clock Generator Module ICG System Integration Module SIM System and Memory Control SYS Timer Interface Module TIM Figure 7 35 Choose A Register Block Window If register files have been installed on the host computer selecting a block brings up the Register Block register listing see Figure 7 36 which shows a list of the associated registers their addresses and their descriptions This begins interactiv
42. B32 device and choose JB16 for a 6HC908JB16 device The MONO8 Header connections are shown on the right hand side for user reference Please refer to Chapter 4 for detailed information Clock Selection The user may choose to use the Cyclone Clock to overdrive the target RC or Crystal circuitry In this case either the 9 8304 MHz or 4 9152 MHz oscillator signal of the Cyclone PRO is connected to the target MONO8 Header Pin 13 through the ribbon cable The user should connect the target MCU OSC1 pin to Pin 13 of the MONO8 Header If the user chooses to use the Target Clock they must NOT connect anything to Pin 13 of the target MONO8 Header The 9 8304 MHz oscillator signal of the Cyclone PRO will be disabled Clock Division The user may freely choose the clock division if supported by the target as long as the target bus frequency stays within specification If the port Cyclone PRO User Manual CYCLONE PRO miero pin that determines the clock division is not connected to the target MONO8 Header the user can safely ignore this selection Typically the clock division does not affect the quality of communications between the Cyclone PRO and the target Normally a smaller clock division leads to faster target bus frequencies and faster communications between the Cyclone PRO and the target which in turn leads to a shorter programming time 3 1 5 4 Baud Rate and Security Settings This configuratio
43. C08 targets The mechanical drawing is shown below 0 100 Dual Row 0 025 Square Header PIN 1 PIN 2 PIN 3 PIN4 0 100 PIN 5 PIN 7 PIN 9 PIN 11 PIN 13 PIN 15 0 100 _ 10 025 ee Not Drawn to Scale 0 025 Figure 2 3 16 Pin Header Mechanical Drawing 8 Cyclone PRO User Manual CYCLONE PRO m Cro The MONO8 Connector adopts the standard pin out from MONO8 debugging as used on different ICS boards with some modifications The general pin out is as follows PINi1 NC GND PIN 2 PIN3 NC RST PIN 4 PINS NC IRQ PIN 6 PIN7 NC MON4 PIN8 PIN9 NC MONS PIN10 PIN11 NC MON6 PIN12 PIN13 OSC MON7 PIN14 PIN15 Vout MON8 PIN16 The physical locations of the pins are displayed below Figure 2 4 16 Pin MON08 Connector Pin Locations Please note that NC designates that these pins are reserved for future P amp E use Make sure you do not connect any signal to these lines The MON4 MONS signals are software configurable to support connections to different HC08 devices Depending upon the device either the MON4 or MONS pin is the single wire communications line which usually corresponds to PORTAO or PORTBO The rest of the lines are either No Connect or are port lines which must be put to particular values upon reset The Cyclone PRO software lists the target processor types and their corresponding pin outs for user references The software also selects the single wire communications
44. E The CompactFlash port accepts Type CompactFlash cards This allows the user to store programming images that are individually or collectively larger than the Cyclone s internal memory 7MB It also makes swapping programming images much more quick and convenient Purchase of the Compact Flash activation license unlocks the CompactFlash panels in the included Manage Images utility Programming images may then be managed on the CompactFlash in exactly the same way as they are in the Cyclone s internal memory Please see section for more infomation about Cyclone PRO User Manual 17 gt CYCLONE PRO mero using Manage Images Figure 2 17 CompactFlash Port 18 Cyclone PRO User Manual CYCLONE PRO m Cro 3 STAND ALONE PROGRAMMER CONFIGURATION The Cyclone PRO may act as a Stand Alone In Circuit Programmer for the HC08 HCS08 HC S 12 X and ColdFire V1 targets A simple user interface CREATEIMAGE EXE is provided for configuring the Cyclone PRO This section describes how to configure the Cyclone PRO for stand alone programming The Cyclone PRO does not require a target to be connected when it is being configured However the power of the Cyclone PRO must be turned on indicated by the Standby LED and the PC serial port or Ethernet Port or USB port must be connected to the Cyclone PRO Figure 3 1 shows the configuration dialog with an example configuration The configuration details are e
45. For a Cyclone unit with only one programming image the imagenumber value should be set to 1 If the Cyclone unit holds multiple programming images the valid values for image number range from one up to the number of images in the unit A true result indicates that the images are the same The aFile pointer should point to a null terminated filename which is the full pathname of the file Cyclone PRO User Manual CYCLONE PRO miero 5 2 3 4 Call erase_all_cyclone_images C C Prototype bool erase_all_cyclone_images unsigned long cyclonepromaxhandle Description This call erases all stand alone programming images on the Cyclone unit Generally this call is made before a new image is placed onto the Cyclone by the add_image_to_cyclone call A true result indicates that the erasure was successful 5 2 3 5 Call add_image_to_cyclone C C Prototype unsigned int add_image_to_cyclone unsigned long cyclonepromaxhandle char aFile Description This call adds the stand alone programming image specified with the aFile parameter into the Cyclone s onboard memory This image must have been created with the Cyclone configuration utility This call is useful for adding more images into the Cyclone The Cyclone has limited onboard memory so the user may wish to erase existing images with the erase_all_cyclone_images command before calling this command The command will return the image number that was just adde
46. LR TIMEQUT2 uninitialized register war when push A X on the stack Status Window bsr Init_ScI Initialize peripherals yar portc bsr Init_AtoD var portd bsr Init_Timer bvar porte clr timeout1 Initialize timeouts O oF Fag clr timeout2 clr timeout3 cli Allow interrupts to happen gt gt loadmap demogp20 Loading map file with 166 entries MAP file Loaded gt pe main_init Pbr main loop MAIN LOOP 0001 gt REM This is a REALTIME Debugger mov 3 timeout1 Start an AtoD conversion i main_loop e bra main loop HHH AK HH HEI IEA II EAI III IIS IIIS IIIS SI ISS I AIA AtoD_ISR ADC Conversion Complete Interrupt Transmit ADC value out serial port PTE6 SEE AAR AEE EEA AER EN RARE eRe eee ae var timeout1 var timeout2 var timeout3 Beir Figure 7 2 CD08SZ Debugger Screen Snapshot Debugger features include e Full speed in circuit emulation e Breakpoints with counters on the Nth execution e Variables window showing multiple data types 96 Cyclone PRO User Manual CYCLONE PRO 5 micro e Real time execution as well as multiple tracing modes e Startup and Macro files for automating the debug process e Context sensitive help for all commands e Support for symbolic register files e Full source level debugging 7 1 3 In Circuit Programmer The PROG In Circuit Programmer is a general purpose programmer which allows the user to program any HC08 HCS08 HC S 12 X ColdF
47. NC o RESET Vpp Pin 5 gt NC o o VDD lt Pin6 Target Voltage amp Power Settings Reset Delay I Use Cyclone Pro Relays After reset delay O ms before attempting communication Image Description 7 17 2006 1 44 34 PM Store Image to Cyclone Save Image to Disk Figure 3 6 RS08 Class Settings 3 1 5 HC08 The user may configure the Cyclone PRO to operate on an HCO08 target by selecting HC08 from the Specify Target Architecture drop down menu Alternatively the user may select the MONO8 target through the File menu Figure 5 6 shows the HC08 specification configuration The target MONO8 header connections are shown on the right hand side for 24 Cyclone PRO User Manual CYCLONE PRO miero user reference Cyclone Image Creation amp Management Utility Specify Target Architecture HCO8 MONO8 v Required P amp E Hardware CYCLONE PRO Programming Sequence CM Choose Algorithm SS Specify S Record E Default Clear Move up Move down Remove Launch Script Wizard I Ignore 19 Range Check Cyclone Pro amp T arget Specific Panel HCO8 Target p Port Pin Settings During Reset Baud Rate amp Security Settings Pin 1 gt Pint o o Pind Pin3 Ping IV Before attempting Auto Baud amp ignoring security try these settings Pin5 o Pin Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF Pin Pind Pind o o Pin10 Clock Selection p Clock Division Pro Clock Emine
48. O8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTA2 and PORTAS are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and pull down PORTA2 and pull up down PORTAS for clock division In which case the user does not need to connect these signals to the target MONO8 Header Cyclone PRO User Manual CYCLONE PRO lt Cyclone PRO User Manual mero 6 14 68HC908JB12 M Cyclone Pro amp T arget Specific Panel HCOS Target IRA Port Pin Settings During Reset Baud Rate amp Seay Settings Pin 1 gt ae 5 a lt Pin 2 JV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 15728 Security Bytes FF FF FF FF FF FFFFFF ee z TT Clock Selection 7 Clock Division r Pro Clock a 7 Spe Cyclone Clock C Divi 9 8304MHz Pin15 gt Vout 0 PTA3 1 lt e Pinl6 2 Target Clock C Div2 2 4 9152MHz Waming Do not set the bus frequency to exceed BMHz Fi
49. ONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTA2 and PORTC1 are used for entering monitor mode By Cyclone PRO User Manual 79 _ CYCLONE PRO mero 6 21 80 default the user may directly bring these signals out to the target MON08 Header or ensure that they are pulled up down according to the image Cyclone Pro amp T arget Specific Panel Ce e A Pot Pn Stio Duino Reset Baud Rate amp Security Settings Pin 1 gt NC a o GND lt Pin 2 Pe bes Ea NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Auto detect Baud Hate Security Bytes FF FF FF FF FF FF FF FF NC o o PTAO COM NC o o PTA1 0 Clock Selection gt Clock Division r Pro Clock ne is 7 HE E l Cyclone Clock 1D ye 9 8304MHz Pinl5 gt Yake OTe lt PME Target Clock Diva 49152MHz Note The processor RESET line must have an external pullup Figure 6 21 68HC908KX Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The user must pull up the RESET line to target
50. PORTAO from the target processor is connected to the target MON08 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 and PORTA4 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and pull down PORTA4 In which case the user does not need to connect these signals to the target MON08 Header The clock division is fixed Div 4 Please note that in Stand Alone programming mode the Cyclone PRO will calculate the proper trim value for the device being programmed and the user has the option to program this trim value to F FCO Cyclone PRO User Manual 91 gt gt CYCLONE PRO micro 6 35 68HC908RF M Cyclone Pro amp T arget Specific Panel HC0e Tape AT Pot Pin Stings During Reset p A Pin 1 gt NC o o GND lt Pin2 Baud Rate amp Security Settings aud Rate g ettings _ FER ga IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 9600 Security Bytes 00 00 00 00 00 00 00 00 NCo o NC NC o PTAQ COM Clock Selection 7 Clock Division T Pro Clock _ E X A A z l Cyclone Clock C DIV2 9 8304MH2 Pinl5 gt Vout o o NC ele Target Clock DIV 4 4 9152MHz Figure 6 35 68HC908RF Family MONO8 Pinout The target GND is connecte
51. PRO You will see the LEDs light up as specific functions are being executed When the Success LED lights up you have successfully programmed your target Example When the Cyclone PRO is powered up the Standby LED is turned on After the user programs the contents and procedures into the Cyclone PRO on board flash the Cyclone PRO may be used as a Stand Alone Programmer Suppose the user wants to perform the following instructions for a 68HC908 target 1 Erase Module Cyclone PRO User Manual CYCLONEPRO m Cro 2 Blank Check Module 3 Program Module 4 Verify Module When the Start Button is pressed the Target Power On LED will turn on indicating that the Cyclone PRO is powering up the target board Then the Standby LED will turn off and the Security LED will turn on Here if the target flash needs to be erased first to bypass the security the Security LED will turn off and the Erasing LED will turn on When the Erasing LED turns off the Cyclone PRO attempts to pass security again Then when the Cyclone PRO starts programming the module the Programming LED is illuminated After this is done the Programming LED is turned off and the Verifying LED is turned on designating that the Cyclone PRO is verifying the contents just programmed into the target Finally if these operations have been performed successfully the Success LED and the Standby LED are
52. Q line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTBO PORTB1 and PORTB4 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTBO pull down PORTA and PORTB1 and pull up down PORTB4 for clock division In which case the user does not need to connect these signals to the target MONO8 Header Cyclone PRO User Manual 71 gt gt CYCLONE PRO miero 6 10 68HC908GR4 8 Cyclone Pro amp T arget Specific Panel HCOS Target AREN M Port Pin Settings During Reset Baud Reda Settings n l Pin gt ee 5 K EN lt Pin2 IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 9600 Security Bytes FF FFFF FF FF FFFFFF E BERON M Clock Selection 7 Clock Division 4 r Pro Clock NC o PTBO 1 a OSC o o PTB1 0 Cyclone Clock DIV 2 9 8304MHz Pin15 gt TA lt Pin16 Target Clock Div 4 C 4 9152MHz Figure 6 10 68HC908GR4 8 MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to th
53. RO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA2 PORTA1 and PORTBO are used for entering monitor mode By default the user may bring these signals out to the target MONO8 Header Alternatively the user may pull down PORTA2 and pull up PORTA and pull up down PORTBO for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 3 68HC908AS M Cyclone Pro amp T arget Specific Panel HC06 Tt A Pot Pin Settings Dung Reset M Baud Rate amp Security Settings Pin 1 gt a x x ee lt Pin 2 JV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o NC NC o o PTAQ COM Clock Selection 7 Clock Division Pro Clock ae 5 3 Ae A 1 Cyclone Clock DIV2 9 8304MHz Pinl5 gt Vout o PTC3 0 lt Pint 8 Target Clock C DIV4 4 9152MHz 66 Cyclone PRO User Manual CYCLONEPRO miero Figure 6 3 68HC908AS Family MONO08 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO8 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclo
54. ROM or RAM Software breakpoints will stop execution only in RAM Experiment with the register interpreter Use the View Register Files option in the MultilinkCyclonePRO menu e Executing an SWI instruction while running is functionally equivalent to hitting a breakpoint except that execution stops at the instruction following the SWI e A hardware breakpoint may be used to trap a data read write to anywhere in the memory map The debugger stops at the instruction after the one that accesses the data location e When the target board is reset by the debugger power to the microcontroller may be turned off for a short duration Although much of RAM may look the same some values may have changed Class 5 8 Device Description 7 3 10 1 7 3 10 2 7 3 10 3 Class 5 P amp E s MONO8 Cyclone Device connects to a PC via the serial port The Cyclone to MCU connection occurs via a standard 16 pin MONO8 ribbon cable The MONO8 Cyclone Device allows the user to auto detect the baud rate as well as auto cycle the power through the MCU system Class 7 P amp E MONO8 Multilink and USB MONO8 Multilink cables connect to the user s MCU system via a standard 16 pin MONO8 ribbon cable MONO8 Multilink and USB MONO8 Multilink allow one to auto detect the baud rate as well as auto cycle the power through the microprocessor system Class 8 P amp E s Cyclone Pro communicates with the PC through a Serial Ethernet or USB port Th
55. S08 or HC08 MONO8 Alternately the user may select the target architecture through the File menu Figure 3 2 shows this selection in the File menu Cyclone Image Creation Utility ver 3 11 SEA Options Help ieee ane HCOS MONOS Hcsos Required P amp E Hardware CYCLONE PRO Load Cyclone Configuration RS08 Save Cyclone Configuration HCA s 12 Save Image To Disk ColdFire Y1 Save Image to Cyclone Exit ColdFire 52xx 53xx 54xx PowerPC Sxx 8xx PowerPC 55xx Nexus MAC 7xxx ARM Figure 3 2 Target Class Selection via File Menu ColdFire V1 The user may configure the Cyclone PRO to operate on a ColdFire V1 target by selecting ColdFire V1 from the Specify Target Architecture drop down menu Alternatively the user may select the ColdFire V1 target through the File menu Figure 3 3 shows the ColdFire V1 specification configuration The target BDM header connections are shown on the right hand side for user reference The Cyclone PRO will automatically detect the communications speed Cyclone PRO User Manual CYCLONE PRO m Cro Cyclone Image Creation Utility ver 3 11 Eile Options Help Specify Target Architecture ColdFire V1 z Required P amp E Hardware CYCLONE PRO Programming Sequence CM Choose Algorithm A SS RiprodtestiDEMOJMIV JM1 28 1 JM128_Hid_Demo 519 F SS Specify S Record EM Erase Module EN Erase if not Blank BM Blank Check Module EM Erase Module PM Program M
56. S508GB32 Connect GT Family RC Family 9508GB324 RD Family RE Family RG Family RT Family JR Family AW Family QG Family LC Family QC Family P amp E Micro Hardware Documentation 9508GB604 vvryrrvrvyYyYYYY Figure 7 31 HCS08 Device Menu 7 4 3 2 Connect The Connect option initiates an attempt to communicate with the device chosen under the device section of the menu 7 4 4 Active Mode Menu Options When the microprocessor is connected more menu entries become available to the user Load Ctrl L Reset Ctrl R Command Files Device 9508GB60 Communication P amp E Micro Hardware Documentation Advanced Programming Debug Options Start Expert Mode Programmer View Register Files Show Communication Dialog Trigger Module Settings Bus Trace 124 Cyclone PRO User Manual CYCLONEPRO gt miero Figure 7 32 Active Mode Menu 7 4 4 1 Advanced Programming Debug Options The Start Advanced Programming Debug Options menu entry take user to the Advanced Options dialog where he can configure the software settings for the FLASH programming procedure E Advanced Options Prompt on Flash Program Flash Algorithm Selection Use the Following Flash Algorithm when Programming Flash Data N Calculate Trim and Program the Non Volatile Trim Register Trim Programming Sync to PLL Change M Automatically synchronize to the target frequency after each
57. Via LCD Menu cecene 36 4 STAND ALONE PROGRAMMER MANUAL CONTROL 43 4 1 Operation Via Cyclone PRO Buttons cccceeeeeeeeeeeeeeeneeeeeeeeentaeeeeeeeaas 43 4 2 Operation Via LCD Menu Rev C Only seseessseerssseeerrrseeerrssserrrrssreenn 45 5 STAND ALONE PROGRAMMER AUTOMATED CONTROL 6 50 5 1 Automated EXE Control Of The Cyclone sssseseeessseerisseeerrssserrnssseeresne 50 5 2 Automated DLL Control Of The Cyclone sssseeeeeeseesrresseerrrsseeerrssseerrrsnne 54 5 3 Control Of Multiple Cyclone Units 2000 0 eeceeeeeeeecneeeeeeeeneeeeeeeeneeeeeeeeaas 63 Cyclone PRO User Manual lt CYCLONE PRO mero 6 TARGET MONO8 HEADER PINOUTS ccccccccccccceeeeeeesesceseeeeseeeaeeeeeeees 65 6 1 OSEICQOBAB iis eces csi A E A O detain ewidas aided 65 6 2 GBEHCQOBAP einar eenaa AENEA EEEE EER EEEE EEEE EAEE E 66 6 3 GBH COOBAS aaa EE AEAEE A 66 6 4 OBHCOIOBAT ainai REEERE A AEREE 67 6 5 GBH CQOBAZ aiana annn e aaen a AEEA AARTE AE OCEA AERE EEEE AE 68 6 6 OSH C9OSB D arnancii E E saciid 69 6 7 GSH COOBEY asias a e a TE 69 6 8 G68HC9O8GP iiaiai aE a AEAEE AA EEE TESA 70 6 9 BBHC9O8BGR 116 32 area a E T N Reig ie N 71 6 10 68HC9OBGRA4 B ooo eee ccccccne cece ecene eee eeceaeeeeeecaaeeeeeecaeeeeescnaeeeesecsieeeeeseeaes 72 G11 GCBACQOBG T oa anaE EASE eck ondhd ceeeetdladcedecdutdacecaddshecneeetsiats 72 6 12 GBH CQO8GZ niana a igen eel AEE eed ates wa eee aa 73 6 13 BBHC9OBIB1 8 oreren
58. aning that any supported Freescale devices can be programmed in parallel even if they are different devices with different data More information may be found at www pemicro com Cyclone PRO User Manual m Cro CYCLONEPRO 6 TARGET MONO8 HEADER PINOUTS This chapter details the MONO8 connector signals according to the individual target MCU types 6 1 68HC908AB M Cyclone Pro amp T arget Specific Panel HCOS Target A3 Port Pin Settings During Reset i A Pin 1 gt NCo o GND lt Pin 2 Baud Rate amp Security Setti aui ate ae ettings j i i NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate f 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o NC NC o o PTAQ COM f Clock Selection 7 Clock Division r Pro Clock ae oS i Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout o o PTC3 0 lt Pin16 C Target Clock C D4 C 4 9152MHz Figure 6 1 68HC908AB Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO8 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resisto
59. ayed on the second line Use the Up Down buttons to scroll through the characters To select a character hit the Select button When you are finished scroll through the characters until you reach the right arrow character Selecting this character will complete the Cyclone PRO User Manual CYCLONE PRO mero process Edit IP Gateway 209 10 112 201 Up Down to scroll Select to choose Choose gt when done Figure 3 26 Edit IP Settings Edit IP Gateway Edit IP Settings Show MAC Address Show MAC Address displays the current MAC address for the Cyclone PRO Show MAC Address 10 22 33 44 55 0 Figure 3 27 Edit IP Settings Show MAC Address 3 8 6 2 Configure Cyclone Edit Cyclone Name Edit Cyclone Name allows the user to set the name for the Cyclone PRO The current name is displayed on the second line Use the Up Down buttons to scroll through the characters To select a character hit the Select button When you are finished scroll through the characters until you reach the right arrow character Selecting this character will complete the process Press the Cancel button at any point to leave the Cyclone PRO User Manual 41 gt CYCLONE PRO inicro name as is and return to the Main Menu Edit Cyclone Name Manufacturing Up down to scroll Select to choose Choose gt when done Figure 3 28 Configure Cyclone Edit Cyclone Name 3 8 6 3 Configure Cyclone Set AUX B
60. ceeeseeeeeeeeeeeeeeeeeeneeeceeeeeneneeeeeeeneeaaees 4 2 4 USB Communications cc ccceceeeeeeeeeeeeecneeeeeeeeaeeeeeeeaaeeeeeeeeaeeeeeeeeneeeeeneeaes 4 2 5 Electromechanical Relays cs cccccecseeeceseeeseeeeeeeesenceeceenneneeeeeeeneeeeeneetenaaes 5 2 6 Power ConneClors sidnsosnis saii ia tated ee 6 2 7 Jumper Settings 0 0 0 ener eee eiirnee etnies eee taeee eee tieeeeeeeeieeeeeetaeeeeeeeaa 6 2 8 Optional Oscillator MONO8 Only 0 eeececeeeeeeeeeeeeeeeeeneeeeeeeetaeeeeeeenaeeeeeeeaaes 7 2 9 Target BDM Connect saini nni a E AAE ENSAI SATENE 7 210 Target MONO8 Connector eee eeeeee eee niidi ranan udun ANNEN ENE NEEN EAN ARAN EEE 8 2 11 Ribbon Cables R E eee edidieds 10 2 12 Target Power Management ccccceeeceeeeeeeeneeeeeeeecieeeeeeeeceeeeeeenaeeeeeeeaas 10 2 13 CompactFlash Portesson siia a caatecersaaczacenneecaaess 17 3 STAND ALONE PROGRAMMER CONFIGURATION cccccceeeeeeeeeees 19 3 1 Target Architecture sorsia E E E 19 3 2 Specify Frogramming Script sssrini E 28 3 3 Script Wizard iiienscsinetne anada ana aia cued ia adai 31 3 4 Programming Operations ccececceeeeeeeeeeeeeceeeeeeeaaeeeseeenaeeeeeeeeeaeeeeeeeeaas 33 3 5 Image DESCHPUOM n enscreiinaninsara eediaadveneeadisdeeeecddatiseeheuitateeestavineiet 34 3 6 Store Image TO Cyclones iraina in aN Aaa RAAE 34 3 7 Save Image Cyclone Configuration eeesseeeeessseseserrsasesnnnesrssnnaaserenneesnannns 36 3 8 Configuration
61. ch to choose Edit IP Settings Edit IP Numbers Edit IP Numbers allows the user to set an IP number for the Cyclone PRO The current IP number is displayed on the second line Use the Up Down buttons to scroll through the characters To select a character hit the Select button When you are finished scroll through the characters until you reach the gt right arrow character Selecting this character will complete the process Press the Cancel button at any time to leave the IP Cyclone PRO User Manual 39 gt CYCLONE PRO inicro 40 number as is and return to the Main Menu Edit IP Number 200 0 0 0 Up Down to scroll Select to choose Choose gt when done Figure 3 24 Edit IP Settings Edit IP Number Edit IP Settings Edit IP Mask Edit IP Mask allows the user to set an IP Mask for the Cyclone PRO The current IP Mask is displayed on the second line Use the Up Down buttons to scroll through the characters To select a character hit the Select button When you are finished scroll through the characters until you reach the right arrow character Selecting this character will complete the process The default IP mask is 255 255 255 0 Edit IP Mask Up Down to scroll Select to choose Choose gt when done Figure 3 25 Edit IP Settings Edit IP Mask Edit IP Settings Edit IP Gateway Edit IP Gateway allows the user to set the IP Gateway for the Cyclone PRO The current IP Gateway is displ
62. ck C DN4 4 9152MHz Figure 6 18 68HC908JL Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTBO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTB1 PORTB2 and PORTB3 are used for entering monitor mode By default the user may directly bring these signals out to the target MON08 Header Alternatively the user may pull up PORTB1 and pull down PORTB2 and pull up down PORTB3 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 19 68HC908JR M Cyclone Pro amp T arget Specific Panel coe Tot Pot Fin Settings Dung Reset Baud Rate amp Security Settings Pin 1 gt NCo o GND lt Pin 2 B a TRE gt aT NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o NC NC o o PTAQ COM Clock Selection 7 Clock Division Pro Clock Be X A a 3 D Greken SE le DENNE Pint5 gt Vout o o PTC1 0 lt Pin Target Clock C Did C 4 9152MHz
63. d or else return a 0 if the operation failed 5 2 3 6 Call toggle_power_no_background_entrance C C Prototype bool toggle_power_no_background_entrance unsigned long cyclonepromaxhandle Description Causes the RESET line of the target processor to be driven low then pulled up high to enter normal operation mode Cyclone PRO User Manual 61 _ CYCLONE PRO mero 5 2 4 62 5 2 3 7 Call set_local_machine_ip_number C C Prototype void set_local_machine_ip_number char ip_ number Description If a machine has more than one network card this routine may be called to indicate the IP address of the network card which should be used during communications This should be called prior to calling any other routines DLL Information Interface Code and Examples The documented interface routines are available in the CYCLONEPROMAX_SAP_CONTROL DLL library included in the software install This DLL is callable from almost any 32 bit Windows development environment The method of calling the DLL varies for different compilers so DLL interface code and sample applications are provided for each of the following compilers Microsoft Visual C 5 0 Visual MFC Application Borland Delphi 4 0 Pascal Visual Application The sample applications come with project and workspaces defined for ease of use Just open the project workspace in your compiler and you will be able to build the sample applica
64. d to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON0O8 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTBO and PORTB2 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTBO and pull down PORTB2 In which case the user does not need to connect these signals to the target MONO8 Header The clock division is fixed Div 4 6 36 68HC908RK M Cyclone Pro amp T arget Specific Panel HC oct A Pot Fn Setings Dung Reset P i Pin 1 gt NC o o GND lt Pin 2 Baud Rate amp Security Setti eat eo ste ET 3 A NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 9600 Security Bytes 00 00 00 00 00 00 00 00 NC o o NC NC o o PTAQ COM Clock Selection p Clock Division Pro Clock ae e libs R l Cyclone Clock C DY2 9 8304MHz Pin15 gt Voa o o NE lt Pint Target Clock Dyg C 4 9152MHz 92 Cyclone PRO User Manual CYCLONEPRO m Cro Figure 6 36 68HC908RK Family MONO8 Pinout The target GND
65. ded with the Cyclone PRO is a DLL which allows control of a Cyclone unit Example code and documentation is included which demonstrates use of the DLL with a Microsoft Visual C C application and a Borland Delphi application although the DLL is not limited to these development environments Any application which can load and use a DLL can be used for automated control of a single Cyclone unit Automated DLL Control Of Multilple Cyclones For controlling multiple Cyclone units in parallel the required DLL is available in the Cyclone Automated Control SDK Please visit www pemicro com for more information about this product 5 2 1 Connecting Disconnecting from the Cyclone In order to control a Cyclone PRO or Cyclone MAX unit from a host computer the host computer must initiate a connection to a Cyclone unit The connect_to_cyclonepromax_by_ip call opens a connection to the Cyclone unit via Ethernet The return handle is used by the calling application while controlling the Cyclone unit The host PC should disconnect from the Cyclone unit when the programming process has completed 54 Cyclone PRO User Manual CYCLONE PRO miero connect_to_cyclonepromax_by_ip Before calling any Cyclone control and status routines a connection must first be established with the Cyclone unit All other Calls After all calls are complete the calling application should disconnect from the Cyclone disconnect_from_cyclonepro
66. demni Pinl3 o Pinl4 Cyclone Clack G Div2 9 8304MHz i Pinl5 o Pinl6 Target Clock C Div4 C 4 3152MHz Target Voltage amp Power Settings F yol Target Voltage 5V v Power Down Delay ms 250 Power Up Delay ms 250 J7 Power off target after SAP operations are complete Image Description 6 29 2006 7 05 32 PM Store Image to Cyclone Save Image to Disk Figure 3 7 HC08 Class Settings Cyclone PRO User Manual gt CYCLONE PRO 26 micro Cyclone Pro amp T arget Specific Panel HCO8 Target x Port Pin Settings During Reset Baud Rate amp Security Settings Pin 1 gt Pint me Pin2 lt Pin 2 i eee San Pin3 Pind IV Before attempting Auto Baud amp ignoring security try these settings Pin5 PinG BaudRate 19200 Security Bytes FF FF FF FF FF FF FF FF Pin o Pin8 Pind o Pinl0 Clock Selection Clock Division Pro Clock ay Bad a inl3 o Pin oe Di iC Cyclone Clock Div2 9 8304MHz Pinl5 gt Pinl5 o Pinl6 Pinl6 Target Clock C Div4 49152MH2 Target Voltage amp Power Settings VV Target Voltage 5V Ei Power Down Delay ms 250 Power Up Delay ms 250 I Power off target after SAP operations are complete 3 1 5 1 3 1 5 2 3 1 5 3 Figure 3 8 Port Pin Settings 68HC908AB Family HC08 Target The user should choose the HC08 target that best describes the target MCU to be programmed For example choose AB for a 6HC908A
67. dule I Verify Module via CRC Check All Preview of Programming Sequence CM C pemicro cyclone_pro Algorithms HC084908_as60 08P SS C test s19 EM Erase Module PM Program Module YM Verify Module Figure 3 14 Script Wizard Dialog Programming Functions Selected Upon completion click OK and the script information will appear in the Specify Programming Script dialog Programming Sequence CM Choose Algorithm CM C pemicro cyclone_pro Algorithms HCO8 908_as60 08P SS Specify S Record SS C est s19 E EN Erase if not Blank M Erase Module EM Erase Module PM Program Module BM Blank Check Module YM Verify Module PB Program Bytes a Pw Program Words PM Program Module VM Werify Module VC Nerify Checksum v I Ignore 19 Range Check Default Clear Move up Move down Remove Launch Script Wizard Figure 3 15 Results Of Script Wizard Dialog Cyclone PRO User Manual m Cro CYCLONEPRO 3 4 Programming Operations Programming Sequence CM Choose Algorithm a CM C pemicro cyclone_pro AlgorithmsSHC08 908_as60 08P SS Specify Record SS C Mest s19 EN Erase if not Blank EM Erase Module EM Erase Module PM Program Module BM Blank Check Module PB Program Bytes E Pw Program Words PM Program Module YM Verify Module VC Nerify Checksum v I Ignore 19 Range Check Default Clear Move up Move down Remove Launch Script Wizard Figure 3 16 Progra
68. e Po CYCLONEPROUM oe Rev 1 10 freescale January 2008 Alliance Member Purchase Agreement P amp E Microcomputer Systems Inc reserves the right to make changes without further notice to any products herein to improve reliability function or design P amp 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 amp E Microcomputer Systems Inc Copyright notices have been included in the software P amp 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 amp E expects that group programming projects making use of this software will purchase a copy of the software and documen
69. e Codewarrior User s manual 6 After you have configured the Cyclone Pro properly click the Contact Target with These Setting button The Attempting to contact target and pass security window appears 7 Select the appropriate class in Target Hardware Type Class VII for MONO8 MULTILINK and Class VIII for Cyclone PRO 8 Click Contact target with these settings 9 Follow the Power Cycle dialog instructions 10 Click Yes in Confirm window Figure 7 6 11 Click Yes in Erase and Program FLASH window Figure 7 7 12 Follow the subsequent Power Cycle dialog instructions as the scripted procedure automatically establishes communications erases the FLASH if necessary and programs the FLASH LM ij xi Q Current debug mode changed do you wish to reload object file data gt Figure 7 6 Confirm Window lan Frase and Program Flash l0 x Load image contains flash memory data Erase and Program flash Cyclone PRO User Manual 101 gt gt CYCLONE PRO mero Figure 7 7 Erase And Program Flash Window At this point the FLASH memory is programmed and ready for debug The True Time Simulator amp Real Time Debugger integrates the debugger tools from P amp E Microcomputer Systems in this example The windows look slightly different between the ICD and True Time tools but the same basic debugger ICD drives both 7 3 HC08 P amp E Multilink Cyclone PRO Connections 7 3 1 Introduction
70. e Refresh List Port Cyclone Pro on USB1 Name Ophiuchus Autodetected A Interface Detected Firmware Version Socket Programming Adapter Settings Target CPU Information CPU HCSO8 Processor Autodetect MCU reset line MCU Voltage Reset Delay Delay after Reset and before communicating to target for 0 milliseconds decimal IV When initiating a debugger reset the MCU Reset Pin should be used else use a debug module reset Cyclone Pro Power Relay Control Voltage gt Power Out Jack I Use Cyclone Pro relays fe S Connect Hotsync Figure 7 29 HCS08 Connection Assistant Interface Selected The Hotsync button in the Connection Assistant see Figure 7 29 allows the user to connect to an already running target 7 4 3 MultilinkCyclonePro Menu Description Load Ctrl L Reset Ctrl R Command Files Device HC9084B32 Connect P amp E Micro Hardware Documentation Figure 7 30 MultilinkCyclonePro Menu 7 4 3 1 Device Selection The Device option in the MultilinkCyclonePro menu allows the user to select Cyclone PRO User Manual 123 gt gt CYCLONE PRO mero the particular Freescale processor that they wish to use When choosing Device from the MultilinkCyclonePro menu additional boxes will open which allow you to select the family e g GB Family and device type e g 9S0GB60 of the MCU that you are using Load Ctrl Reset Ctrl R Command Files v Device 9508GB60 GB Family 9
71. e The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTCO PORTC1 and PORTC3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTCO and pull down PORTC1 and pull up down PORTCS3 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 7 68HC908EY M Cyclone Pro amp T arget Specific Panel HCO8 Target et x M Port Pin Settings During Reset Baud Rate amp Security Settings Pin gt NC a o GND lt Pin2 Seeley NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC IRQ High Auto detect Baud Rate Security Bytes FF FFFF FF FF FF FFFF NC o PTAO COM NC o o PT l 0 Clock Selection 7 Clock Division r Pro Clock ee BIE A h Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout o o PTB5 0 lt Pinl6 Target Clock C DN4 4 9152MHz Cyclone PRO User Manual 69 _ CYCLONE PRO inficre 6 8 70 Figure 6 7 68HC908EY Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 ac
72. e Creation Wizard This Wizard automatically creates the order of operations based on information you provide Step 1 Select Programming Algorithm amp S Records Programming Algorithm Specify Programming Algorithm x Browse S Record Selection Z Step 2 Select Programming Operations Programming Functions jE f jc je Check All Preview of Programming Sequence Cancel Figure 3 13 Script Wizard Dialog The user must first select a programming algorithm and an S Record Click the corresponding Browse buttons to select a file or use the drop down list to choose a previously selected file Once this is complete the programming functions are enabled At this point the user has only to select the programming steps that are required with no further attention to the order of operations Cyclone PRO User Manual 31 gt CYCLONE PRO miero 32 For example in Figure 3 14 three programming functions have been selected and sequenced by the Script Wizard Script Wizard Image Creation Wizard This Wizard automatically creates the order of operations based on information you provide Step 1 Select Programming Algorithm amp S Records Programming Algorithm C pemicro cyclone_pro Algorithms HCO8 908_as60 v Browse S Record Selection C test s19 X Browse Step 2 Select Programming Operations Programming Functions IV Erase Module Blank Check Module IV Program Module V Verify Mo
73. e Cyclone Pro can be used to debug and program the firmware Cyclone PRO User Manual CYCLONEPRO gt miero inside of Freescale HC08 microprocessors via a standard 16 pin MON08 ribbon cable The Cyclone Pro can provide its own power and clock signals to the microprocessor as long as proper signals are connected to the corresponding pins of the 16 pin MONO8 header In addition the Cyclone PRO can be used for programming and debugging the ColdFire V1 HC S 12 X HCS08 RS08 Freescale microprocessors via a standard 6 pin ribbon cable To take advantage of this functionality one should connect proper signals to the standard 6 pin Background Debug Module header 7 4 HCS08 P amp E Multilink Cyclone PRO Connections 7 4 1 Introduction The HCS08 P amp E Multilink Cyclone Pro Connection setting permits a connection to Multilink Cyclone PRO devices HCSO8 P amp E Multilink Cyclone Pro Connection Interface mode allows the user to debug code as the firmware is fully resident in the FLASH of the microprocessor The operation of all modules fully reflects the actual operation of the on board resources 7 4 2 Connection Procedure 1 Choose the P amp E Multilink Cyclone Pro option from the set connection dialog See Figure 7 27 Set Connection Processor es ooo Connection P amp E Muttilink Cyclone Pro hd Cancel BDM_HCS08 Target Interface Full Chip Simulation P amp E Multilink Cyclone Pro HCSO8 Serial Monitor Help Soffec
74. e PRO User Manual CYCLONEPRO C m Cro BDM users and four schemes for MONO8 users The target board may derive power by the use of power jacks or by the use of MONO8 connector Pin 15 or by the use of BDM connector Pin 6 or a combination of both The options are explained in detail below Each configuration will have an associated jumper setting that MUST be set on the Cyclone PRO The jumper header is found on the long side of the unit opposite from the side where the power jack is located Note In order for the Cyclone PRO to handle power sequencing for MONO8 targets automatically power MUST be provided to the target system by the Cyclone PRO CYCLONE PRO JUMPER SETTINGS Power IN Jack gt Power OUT Jack Cyclone PRO Internal Power gt Power OUT Jack Cyclone PRO Internal Power gt BDM Pin 6 Cyclone PRO Internal Power gt MONO8 Pin 15 Power IN Jack gt MONO8 Pin 15 Figure 2 6 Jumper Settings Rev C 2 12 1 Using Power In Jack and Power Out Jack The target power supply is connected to the Power In Jack of the Cyclone PRO The Power Out Jack of the Cyclone PRO is connected to the target system Figure 2 7 shows the connections Cyclone PRO User Manual 11 tinicre gt gt CYCLONE PRO Figure 2 7 Via Power In and Power Out Jacks of Cyclone PRO All of the jumpers except Jumper 5 should be left open for this mode as shown in Figure 2 8 Note This setting differs from the Rev B Cycl
75. e Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTBO and PORTB1 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTBO pull down PORTA and PORTB1 In which case the user does not need to connect these signals to the target MONO8 Header The clock division is fixed Div 4 6 11 68HC908GT M Cyclone Pro amp T arget Specific Panel HCO8 Target EE TTT x M Port Pin Settings During Reset 4 A M Baud Rate amp deo Settings T i l Pin1 gt ce z sie lt Pin 2 JV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Auto detect Baud Rate Security Bytes FF FF FF FF FF FFFFFF NC o o PTAD COM NCo o NC M Clock Selection 7 Clock Division 7 Pro Clock NC o o PTCO 1 OSC o o PTC1 0 Cyclone Clock f DIV 2 f 9 8304MHz Pin15 gt Vout o o PTC3 0 lt Pin16 Target Clock C DN4 4 9152MHz2 72 Cyclone PRO User Manual CYCLONEPRO miero Figure 6 11 68HC908GT Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of
76. e setup of system registers such as O timer and COP watchdog A 68HC9IOBRK2 Timer Interface Module TIM olx Timer Status and Control Counter Counter Modulo Channel 6 Status Control Channel 6 Register Channel 1 Status Control Channel 1 Register Figure 7 36 Register Block Register Listing Selecting a file brings up the Register Window see Figure 7 37 which displays the values and significance for each bit in the register The registers can be viewed and their values modified and the values can be stored back Cyclone PRO User Manual 127 gt CYCLONE PRO mero into debugger memory 5 Register Window ioj x R W Register Value Read Write 00100000 20 032T i Description Current Value TOF Timer Overflow Flag 8 TCNT not reached THOD value TOIE Timer Overflow Enable Overflow interrupts disabled TSTOP Timer Stop Timer counter stopped 64 TRST Timer Reset No effect 63 Not implemented Always returns zero 62 66 PS Prescaler Select Internal bus clock 1 Mouse Left Button Select which Bit Field Key Up Down Select which Bit Field Mouse Double Click Change current bit field value Key Left Right Change Current Bit Field Value Mouse Right Button Show all settings for bit field Key Space bar Show all settings for bit field Figure 7 37 Register Window 7 4 4 3 Trigger Module Settings For more information about the Trigger Module Settings menu opti
77. e signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and pull down PORTA4 In which case the user does not need to connect these signals to the target MON08 Header The clock division is fixed Div 4 Please note that the Cyclone PRO will calculate the proper trim value for the device being programmed Cyclone PRO User Manual 85 gt gt CYCLONE PRO micro 6 28 68HC908MR4 8 M Cyclone Pro amp T arget Specific Panel HCO8 Target M Port Pin Settings During Reset Baud Rate amp a Settings I Pin1 gt Ay 2 ae lt r JV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 11796 Security Bytes FF FF FF FF FF FFFFFF fee Te Clock Selection Clock Division Pro Clock be i ie Cyclone Clock MUL 2 l g HaUailrl Pin15 gt Vout o oNC lt Pinl6 Target Clock MUL 2 4oi52MHe The target should have bypass capacitors on VDD and RST Figure 6 28 68HC908MR4 8 Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTBO from the target processor is connected to the target MONO8 Header Pin 8 acting as the target MR4 8 data receiving line The Cyclone PRO pulls up th
78. ebateceannbatiaes 92 6 36 68HC9O8RK ee 92 0 37 G8BHCIQBSR aie A EE ATALA LEEA 93 7 PC HOSTED DEBUG PROGRAMMING SOFTWARE 2 00seeeeeeee 95 7 1 P amp E Microcomputer Systems Software 00 0 cceeceeeeeeeeeeeeeceeeeeeeeneeeeeeeaas 95 7 2 Freescale SORWANGC s ccecisscecvetssicctecee sts a E cee suasstecteasessneetesaceets 98 7 3 HC08 P amp E Multilink Cyclone PRO Connections 0 ceeeeeeeteeeeeeeaes 102 7 4 HCS08 P amp E Multilink Cyclone PRO Connections cceeeeeeseeeeeeeenees 121 8 ETHERNET CONFIGURATION 0 ccecceeeeee eect eeeeeeeeeeeeeeeeeeeeeeeeeeeseeeseeees 129 8 1 Network Architectures esiisad anana aaia AANA NEATA 129 8 2 Network Parameters eccone saree Oa 130 8 3 internet Prototolecresrcniccne i e EAT 131 8 4 Connecting The Cyclone Device ssssseseesssesrrrsseserrsssttrrrnsterrssstenrnssenn 131 8 5 Cyclone IP Setup Via LCD Menu seessssesesrrnesessnnneesennnaaarenneeetnannaaenenaneenna 133 8 6 Cyclone IP Setup Utility User Interface ConfigurelP essees 133 8 7 Using ConfigurelP exe To Configure The Cyclone PRO 135 8 8 Managing Multiple Images seeeseeeeeinseeernnnsessrnnssennnnnssnnnnnnnnnenninannnnenenn 137 9 SERIAL PORT CONFIGURATION cccccccecccceccececeeeeeeeeeeeeeeeeeeeeeeeees 140 10 USB PORT CONFIGURATION cccccccceeceeeeeee eee eeeee tee teeeteeeteeeteeeeeeeeeees 141 Cyclone PRO User Manual lt CYCLONE PRO inicre Cyclone PRO U
79. ency To trim to a specified frequency simply select the corresponding algorithm Cyclone PRO User Manual 89 gt CYCLONE PRO micro 6 33 68HC908QT Cyclone Pro amp T arget Specific Panel coe Toc Pot Pin Setings Dung Reset Baud Rate amp Security Settings Pini gt NC o o GND lt Pin 2 J pees TEN NC o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC IRQ High Auto detect Baud Hate Security Bytes FF FF FF FF FF FF FF FF NC o o PTAQ COM NC o o PTA4 0 Clock Selection f Clock Division m Pro Clock ae i Ta al Cyclone Clock c ott 2 9 8304MH2 Pinl5 gt Vout o o NC lt Pint Target Clock D4 4 3152MHz Note The processor RESET line must have an external pullup Figure 6 33 68HC908QT Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The user must pull up the RESET line to target VDD with an external resistor The target IRQ line is directly connected to the Pin 6 of the target MON08 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 and PORTA4 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may
80. ened for access 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 PRO User Manual CYCLONEPRO C maicro has been selected through the second drop down box and is opened for access its information will be displayed at the bottom of the dialog box 5 Refresh List Will refresh the dialog boxes by searching for devices which are currently connected via the Serial or USB interfaces or are found on the network 6 Cyclone IP Number This is the IP number which will be associated with the Cyclone PRO 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 PRO 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 This is programmed by P amp E and cannot be modified 9 Cyclone Device Type This displays the type of Cyclone hardware 10 Gateway IP Number The IP number of a gateway on the network 11 Subnet Mask The subnet mask of the network 12 Firmware Version A read only field which returns information pertaining to the build date and firmware version of the Cyclone PRO device 13 FPGA Version A read only field which returns the hardware version of the FPGA 14 Progra
81. equency Settings is checked the Cyclone PRO will first contact the target with the specified frequency If the Cyclone PRO contacts the target successfully with the provided frequency the Cyclone PRO will continue executing the rest of the commands If the operation is unsuccessful or if the checkbox is not checked the Cyclone PRO will automatically detect the correct communication speed and begin executing the commands The autodetection process will add time to the programming process Depending on the programming algorithm the user may be required to enter the base address for the module If the programming algorithm requires a Cyclone PRO User Manual m Cro CYCLONEPRO C gt base address the Module Base Address Settings will be displayed The user must enter the correct base address Otherwise the default value 0 will be used The base address is the address of the start of the flash module on the device HCS08 The user may configure the Cyclone PRO to operate on an HCS08 target by selecting HCS08 from the Specify Target Architecture drop down menu Alternatively the user may select the HCS08 target through the File menu Figure 3 5 shows the HCS08 specification configuration The target BDM header connections are shown on the right hand side for user reference The Cyclone PRO will automatically detect the communications speed Cyclone Image Creation amp Management Utility Specify Target Architecture
82. espond properly to this command this flag will be N 5 Reset was Power On Reset If the device properly entered monitor mode 4 the software will read the reset status register RSR This read does not affect the security sequence and occurs purely for diagnostic reasons The reset status register indicates the conditions under which the processor underwent the last reset For the Cyclone PRO User Manual 113 c gt CYCLONE PRO D mero software to pass the security check properly it MUST first cause the processor to undergo a Power On Reset The software reads the reset status register to determine if the last reset was indeed caused by power on The result of the reset status register is indicated in parentheses after the flag value If the highest bit is not set then the reset was not a power on reset and the flag will indicate N Reasons for this include 1 The processor did not power all the way down because power was being supplied to the processor through either the port pins IRQ line RESET line or power pins 2 The voltage driven on the power pin of the processor did not go below 0 1 volts 3 The processor was not reset properly Check the Target Hardware Type If you are connecting to a class Il board check the MON08 cable communication connections type in the advanced settings dialog 6 ROM is accessible un secured If the device properly entered monitor mode
83. gories listed are for future use and are not currently implemented 48 Cyclone PRO User Manual m ero CYCLONE PRO S Cyclone PRO User Manual Show Statistics NumProgs ProgsLeft PCIP 0 0 0 0 Figure 4 6 Show Statistics 49 Ca 2 CYCLONE PRO m Cro 5 STAND ALONE PROGRAMMER AUTOMATED CONTROL There are various means of controlling the Cyclone PRO in an automated environment Included with the Cyclone PRO are 1 The CYCLONEPRO_LAUNCH utility which allows control via script files 2 The Basic Edition of P amp E s Cyclone Automated Control SDK which includes a DLL which may be used by a host application to control the Cyclone PRO via Ethernet In addition P amp E offers the Professional and Enterprise editions of the Cyclone Automated Control SDK separately which allow control of multiple Cyclones in parallel via serial USB or Ethernet These editions also include support for and management of multiple programming images Visit www pemicro com for more information about the Cyclone Automated Control SDK 5 1 Automated EXE Control Of The Cyclone 5 1 1 50 The user can use the Cyclone PRO in an automated production environment via PC software called CYCLONEPRO_LAUNCH EXE This utility may be invoked in a batch file to carry out pre configured operations in the Cyclone PRO Startup a Connect the Cyclone PRO to the PC via RS232 USB or Ethernet b Connect the Cyclone
84. gure 6 14 68HC908JB12 MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTA2 PORTA3 and PORTE3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and PORTES pull down PORTA2Z and pull up down PORTAS for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 15 68HC908JB16 M Cyclone Pro amp T arget Specific Panel HCO8 Target fuBi6 x M Port Pin Settings During Reset Baud Fes oa Settings i Pin gt nes ae lt Pin 2 IV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High af 15728 i ifFFFF FF FF FFFF FF FF NC o o PTE3 1 Baud Rate Security Bytes Eo APEI Clock Selection Clock Division Pro Clock eee 3 KAT Cyclone Clock DYI 9 8304MHz Pin15 gt TNA PTAS lt 1 lt Pinl6 Target Clock Div2 4 9152MH2 Warming Do not set the bus frequency to exceed BMHz 75 c gt CYCLONE PRO micro Figure 6 15 68HC9
85. har E commend ___ STARTED RUNNING Auto Symb Global Eremo Breakpoint Preset breakpoint encountered STARTED Auto E 0050 uu uu uu uu wu uu uu uu wuuuuuuu 4 ING 0058 uu uu uu uu uu wu uu uu uuuwuuuu Lay 0060 uu uu uu uu wu uu uu uu ouuuuuuuu xl HC908GP32 Breakpoint 4 For Help press F1 Figure 7 5 True Time Simulator amp Real Time Debugger Window 5 If you created a new product using the Codewarrior project wizard and selected a P amp E Debug Interface for your project target then at this point you should see the P amp E Communication Assistant Alternately you can select your connection type target manually through the HiWave software In the Component menu select the set connection menu option This will allow you to choose from the various connection types available in your version of Codewarrior In Depth detail about selecting and configuring any of the P amp E connections can be found later in the manual For more information using a Cyclone Pro in Codewarrior with an HC08 device please see Section 7 3 HC08 P amp E Multilink Cyclone PRO Connections For more information using a Cyclone Pro in Codewarrior with an HCS08 100 Cyclone PRO User Manual CYCLONE PRO m Cro device please see Section 7 4 HCS08 P amp E Multilink Cyclone PRO Connectionssection 7 4 For more information using a Cyclone Pro in Codewarrior with an HC S 12 device please see th
86. he Cyclone PRO has eight 8 LEDs to indicate the current operation stage LED FUNCTION Power Indicates that the target board power is connected Standby The Cyclone PRO is waiting for instructions Security The Cyclone PRO is trying to pass the target security and enter monitor mode for MONO8 only Erase The Cyclone PRO is erasing the target Flash EEPROM Program The Cyclone PRO is programming the target Flash Cyclone PRO User Manual 43 Ca YCLONE PR j micro EEPROM Verify The Cyclone PRO is verifying that the contents programmed Error The Cyclone PRO failed to execute the functions as instructed Success The Cyclone PRO executed the functions 4 1 2 4 1 3 44 successfully Procedure via Buttons and LEDs The following steps must be followed in order for the Cyclone PRO to operate properly after the Cyclone PRO has been configured 1 2 3 4 Turn off the target power supply if the POWER IN Jack is adopted Turn off the Cyclone PRO board power Set the correct Jumper settings Connect the target power supply to the POWER IN Jack if applica ble Connect the POWER OUT Jack to the target board power if appli cable Connect the MONO8 Header Ribbon Cable to the target MONO8 port or the BDM Header Ribbon Cable to the target BDM port Turn on the Cyclone PRO board power Turn on the target power supply if applicable Press the START push button on the Cyclone
87. he target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this Cyclone PRO User Manual 73 _ CYCLONE PRO inicre 6 13 74 signal with a 10K Ohm resistor to the target VDD PORTA1 PORTBO PORTB1 and PORTB4 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTBO pull down PORTA and PORTB1 and pull up down PORTB4 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 68HC908JB1 8 M Cyclone Pro amp T arget Specific Panel HCO8 Target IIA Port Pin Settings During Reset Baud Rate amp Security Settings Pin 1 gt a 2 Sie lt Pin 2 JV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 31457 Security Bytes FF FF FF FF FF FF FF FF NC o o NC l NC o o PTAQ COM m Clock Selection p Clock Division p Pro Clock nes P y x l Cyclone Clock DIV1 9 8304MHz Pinl5 gt Vout o o PTA3 0 lt Pini I Target Clock C Div2 4 3152MH2 Warning Do not set the bus frequency to exceed BMHz Figure 6 13 68HC908JB1 8 MONO8 Pinout The target GND is connected to the Pin 2 of the target MON
88. hecked the Cyclone PRO will perform a Blank Check Module on the target device Program Bytes Prompts for a starting address which must be in the module You are then asked to enter in hexadecimal a byte to be programmed into the current location Clicking the OK button will automatically advance to the next data byte location Program Words Prompts for a starting address which must be in the module You are then asked to enter in hexadecimal a wordto be programmed into the current location Clicking the OK button will automatically advance to the next data word location Program Module For this command to work you must have previously selected an S record file Verify Module For this command to work you must have previously selected an S record file Verify Checksum This command verifies the module content via a CRC calculation 3 5 Image Description The Cyclone PRO Configuration Utility allows the user to summarize the purpose of current configuration for future reference The description will be either programmed into the Cyclone PRO or saved into an encrypted file This field will not affect the Cyclone PRO s operations with the target 3 6 Store Image To Cyclone Store Image to Cyclone allows the current configuration to be programmed 34 Cyclone PRO User Manual iaicro CYCLONE PRO into the Cyclone PRO The Cyclone PRO will then be ready for operations Cyclone Selection
89. ire V1 device with on chip EEPROM FLASH either from an object file Motorola S19 format or byte by byte PROGO8SW Programmer iol x File Device Program Verify Upload Windows Blank check module Blank check range Erase byte range Erase word range Erase module Program bytes Program words Program module Choose module 68P Verify module Verify range Upload module Status Window NOT ACTIVE NOT ACTIVE NOT ACTIVE NOT ACTIVE Loading programming algorithm Erasing Module has been erased Checking range of S records Programming Address SFFFF Programmed Checking range of S records erifying Address SFFFF Verified Module C PEMICRO ICSO8GPY 908_GP20 7 19 File C PEMICROWCSO8GPYADEMOGP20 819 Base B000 amp M5 amp G E TET Done Checked Checked Executing command ESC to Abort Figure 7 3 PROG08SZ Programmer Screen Snapshot Cyclone PRO User Manual 97 CYCLONE PRO mero 7 1 4 7 2 7 2 1 98 The PROGO8SZ is simple to operate after clicking the Contact target with these settings button if the programmer successfully contacts the target it will ask you for the algorithm you wish to use during programming Select the proper algorithm for the device you are attempting to program Then simply select the s record object you wish to program using the SS command Now the setup of the PROGO8SZ is complete and you are ready
90. irectly connected to the Pin 4 of the target MONO08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD Cyclone PRO User Manual 93 Ca eed CYCLONE PRO mero 94 PORTA1 PORTA2 and PORTC1 are used for entering monitor mode By default the user may directly bring these signals out to the target MON08 Header Alternatively the user may pull up PORTA1 and pull down PORTA2 and pull up down PORTC1 for clock division In which case the user does not need to connect these signals to the target MONO8 Header Cyclone PRO User Manual CYCLONE PRO m Cro 7 PC HOSTED DEBUG PROGRAMMING SOFTWARE Free or low cost software options for interactively programming and debugging HC08 HCS08 HC12 HC S 12 X ColdFire V1 MCUs from the PC are available from P amp E Microcomputer Systems www pemicro com and Freescale www freescale com Note The user should make sure they have the most recent version of these software kits The latest updates can be downloaded from the web pages listed in Section 7 1 1 Latest Updates P amp E Software and Section 7 2 1 Freescale CodeWarrior 7 1 P amp E Microcomputer Systems Software P amp E s software packages contain the WinIDE integrated devel
91. is signal with a 10K Ohm resistor to the target VDD PORTB 1 from the target processor is connected to the target MONO8 Header Pin 3 acting as the target MR4 8 data transmitting line The user need to pull down this signal with a 10K resistor to GND 6 29 68HC908MR16 32 M Cyclone Pro amp T arget Specific Panel HCO8 Target TW M Port Pin Settings During Reset Baud Rate amp Sei Settings _ l l Pin 1 gt bes z aha lt Pin 2 IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High pn nas 19200 Secut Bytes FF FF FF FF FF FF FFFF y K Soi Clock Selection 7 Clock Division r Pro Clock _ NC o PTC3 1 G Cyclone Clock DIV2 9 8304MHz anes oor ee orale Target Clock C D4 4 9152MHz Figure 6 29 68HC908MR16 32 Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header 86 Cyclone PRO User Manual CYCLONEPRO miero The target RESET line is directly connected to the Pin 4 of the target MONO8 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA7 PORTC2 PORTC3 and PORTC4 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alterna
92. k with one of several protocols By far the most prevalent protocol is the Transmission Control Protocol TCP which runs on top of the Internet Protocol in what is collectively known as the TCP IP protocol The TCP IP protocol was developed by the Department of Defense to connect different computers from different vendors by a network of networks which has become what is known as the Internet today The primary purpose of the TCP IP protocol was to prevent a complete network outage in the case of a nuclear attack by automatically rerouting data traffic through the functioning part of the network As such the TCP IP mechanism guaranteed delivery of data packets by introducing a system of acknowledgements and sequence numbers for the data packets This mechanism while good for transacting large amounts of data such as email or file transfers is unsuitable in the real time type environment in which the Cyclone operates Because the Cyclone needs to transact data as quickly as possible to the target it takes advantage of TCP IP s alternative the UDP IP protocol Unlike TCP IP the UDP IP protocol is a connectionless single packet protocol that sends short data packets at the expense of not guaranteeing their delivery This makes the UDP IP protocol efficient in real time applications such as broadcasting video over the Internet where the occasional loss of a frame of data is not going to hamper the overall viewing experience Left un
93. m Cyclone Parameters This button saves the information as it appears in the Reconfigure IP Numbers area onto the Cyclone device 8 7 Using ConfigurelP exe To Configure The Cyclone PRO Before the Cyclone PRO is ready to communicate over an Ethernet network Cyclone PRO User Manual 135 gt gt CYCLONE PRO mero it will need to be configured with the relevant network parameters The application that provides this capability is the Cyclone Configuration Utility IPSetup exe and is provided as part of the standard Cyclone PRO software distribution In order to update the network parameters perform the following steps 1 Connect a Cyclone PRO to the PC via a serial or a USB cable and make sure that it is powered before launching the Cyclone Configuration Utility The Cyclone PRO Configuration Utility starts up with the following screen Cyclone IP Configuration Utility 1 10 Choose Connection Port amp Cyclone Device Etheret Port 209 61 110 65 Leo Close Refresh List Reconfigure IP Numbers Cyclone IP Number Gateway IP Number eosert10251 Cyclone Device Name Subnet Mask 255 255 255 0 Network MAC Address Firmware Version 7 29 Cyclone Device Type FPGA Version Program IP Parameters Figure 8 2 Cyclone IP Setup Utility Initial Screen 2 Assuming that the Cyclone PRO is connected to the COM1 serial port of the PC switch from Ethernet Port to Serial Port
94. max Figure 5 7 Call Sequence Detail 5 2 1 1 Call connect_to_cyclonepromax_by_ip C C Prototype unsigned int connect_to_cyclonepromax_by_ip char port_identifier Description This function opens a session with a Cyclone PRO or Cyclone MAX by its IP address The port_identifier parameter is a pointer to a null terminated character string in the format xxx xxx xxx xxx where xxx 0 255 The return value is the handle to the open Cyclone PRO or Cyclone MAX which must be passed to other routines as a parameter A return value of 0 indicates a failure to connect to the Cyclone PRO or Cyclone MAX at that address Cyclone PRO User Manual 55 c gt CYCLONE PRO D micro 5 2 1 2 Call disconnect_from_cyclonepromax C C Prototype bool disconnect_from_cyclonepromax unsigned long cyclonepromaxhandle Description When processing is complete the session with the Cyclone PRO or Cyclone MAX should be terminated Calling this routine with the appropriate handle terminates the session and allows opening of a different Cyclone PRO MAX unit 5 2 2 Controlling Cyclone Programming There are two main programming commands which start the programming process on a Cyclone The START_execute_all_commands call is used to launch a programming image which is stored on the Cyclone unit and has been pre configured in terms of all the steps to be accomplished during programming Once started the check_STARTED_cyclonepromax_status r
95. ming the FLASH with CodeWarrior and starting a debug session 1 a Launch the CodeWarrior CW08 software and create a new project or b Double click on your project file projectname mcp Cyclone PRO User Manual CYCLONE PRO m ero The Project Manager window appears See Figure 7 4 PTE ASM Generic 2 y B p Files Link Order Targets g File Code Data AB readme txt n a nao a Sources 128 11 xi M GP32 asm 128 ie x AB gpregs inc 0 0 x 3 Debugger Cmd Files 0 0 af AB Startup cmd n a na sod AB Preload cmd n a na x BM Postload cmd n a na sod AB Reset cmd n a na x AB Setcpu cmd n a na x 3E Pim 0 o of AB default prm na na x AB burmner bbl n a na x 24 Debugger Project File Oo o af AB project ini n a na x I 11 files 128 A Figure 7 4 CodeWarrior Project Window Click the sign to expand the Sources folder Modify the source file if necessary Click the Debug icon green arrow The True Time Simulator and Real Time Debugger launches See Figure 7 5 Cyclone PRO User Manual 99 CYCLONE PRO mero C Program Files Metrowerks CodeWarrior HCOS_V2 0 Examples HCO8 PE Line 189 bsr Sci Init Initialize peripherals bsr Init_Timer clr Timeoutl Entry SP FF Status VHINZC I GP32 dbg temp_long array 4 of unsigned char temp_word array 2 of unsigned char temp_byte undefined unsigned c
96. mming Operations Dialog Section In the Programming Sequence field the user may specify the algorithm S Record and operations to be carried out Choose Module Presents a list of available programming files Each programming file contains information on how to program a particular module Usually the name of the file indicates what kind of module it relates to Specify S Record Asks for the name and or path to a file of Freescale S records to be used in programming or verifying a module If the file is not found an error message is given The currently selected file is shown in the S19 file selected window The programmer accepts S1 S2 and S3 records All other file records are treated as comments If you do not specify a file name extension a default of S19 is used The programmer also supports ELF Dwarf 2 0 object files Your S19 file may contain data for both EEPROM and flash If you know that your S19 file contains the correct data Ignore S19 Range may be checked This will cause any out of range errors to be ignored Erase If Not Blank 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 PRO will perform an Erase Module on the target device after entering the Monitor Mode or BDM mode Blank Check Module Cyclone PRO User Manual 33 c gt CYCLONE PRO D mIGroO If Blank Check Module is c
97. modified the UDP IP with its lack of guarantees for packet delivery would be unusable in an environment where the delivery of a single byte of data needs to be guaranteed The Cyclone firmware adds mechanisms to the UDP IP protocol without affecting its underlying efficiency to guarantee delivery of data packets 8 4 Connecting The Cyclone Device There are two methods for establishing a connection between a Cyclone and a 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 PRO User Manual 131 lt gt CYCLONE PRO m Cro through a Hub 8 4 1 Connecting the Cyclone to the PC over a network The Cyclone was intended for use on a network of multiple computers and other Cyclones There are many possible network configurations and to describe them all is beyond the scope of this document However most configurations are a modification of a basic theme which is that of connecting one or more PCs through a Hub to one or more Cyclones In order to connect these devices to the Hub you will need to use the provided straight through Ethernet cable The straight through cable which is the standard Ethernet cable is used to connect devices of different types together such as a PC to a Hub or a Hub to a Cyclone At this point it once again becomes nece
98. n Circuit Clock Divider 2 Simulation Mode This software does not require any m access to the FLASH array Status Connection Status Summary ___ MONOS Diagnostics Disabled S Contact Target with These Settings To add a serial parallel port P amp E device such as Cyclone Pro Serial MONO8 Multilink and Cyclone Pro Ethernet IP outside of subnet mask proceed to the Interface Selection Manager by pressing the Add A Connection button See Figure 7 12 For more information about configuring Cyclone Pro for ethernet operation please see the Cyclone Pro User s Manual Cyclone PRO User Manual CYCLONE PRO m Cro W Interface Selection Configure P amp E Interface The Interface am Using is A MONOS Cyclone Connected to my PC s Serial Port Class 5 A Cyclone Pro Connected to my PC s Serial Port Class 8 A Cyclone Pro with a non automatically detected IP Address Class 8 Clicking OK will allow you to configure communication port for this interface on the main Connection Manager Screen OK Cancel Figure 7 12 P amp E Multilink Cyclone Pro Manual Interface Selection 6 To remove a manually configured interface please click on the Remove Connection button and choose the interface to be deleted See Figure 7 13 Cyclone PRO User Manual 105 gt CYCLONE PRO mero E Connection Manager DER Autodetected Interfaces The f
99. n field provides faster monitor ROM entrance for known baud rate and security bytes If the Before attempting auto baud and ignoring security try these settings checkbox is checked the Baud Rate and Security Bytes that are specified in this field are tried first when the Cyclone PRO contacts the target If the target enters the Monitor Mode successfully the Cyclone PRO will execute the instructed programming operations immediately If Before attempting auto baud and ignoring security try these settings is NOT checked or if the target fails to enter the Monitor Mode using the specified baud rate and security bytes the Cyclone PRO will automatically detect the communications baud rate ignore the security enter the Monitor Mode erase the target device power cycle the target and re enter the Monitor Mode using blank security bytes 3 1 5 5 Target Voltage and Power Settings 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 The reset driver delays power stabilization time and the target clock stabilization time should be considered for the Power Up delay Cyclone PRO User Manual 27 _ CYCLONE PRO micro 3 2 Specify Programming Script Programming Sequence CM Choose Algorithm SS Specify S Record 5 I Ignore 19 Range Check Default Clear Move up Move down Remove Launch Script Wizard Figure
100. nch Programming i Perform Verify Only i Toggle Power Compact Flash Status Programming Stats A Configure Cyclone Edit IP Settings i Edit IP Numbers Edit IP Mask i Edit IP Gateway i Show MAC Address F Edit Cyclone Name i Set AUX Button Function Perform Verify Only Toggle Power Figure 3 18 LCD Menu Overview 36 Cyclone PRO User Manual CYCLONE PRO micro 3 8 1 Status Window Cyclone PRO v8 04 1 2 IP 200 0 0 0 Name Manufacturing PC none Images 2 IN 3 EX IMG1 HC908GZ60 A io i Programming completed Figure 3 19 Status Window The status window appears when the Cyclone PRO is powered on This window lists the following information 1 Firmware version of the PRO 2 IP address assigned to the PRO 3 Name assigned to the PRO 4 Name of the PC connected to the PRO 5 Number of programming images in the PRO s memory 6 Name of the selected programming image 7 Current status 8 Results of the last operation performed 3 8 2 Main Menu Cyclone PRO User Manual Main Menu Select SAP Image Execute SAP Function Compact Flash Status Programming Stats Configure Cyclone Figure 3 20 Main Menu 37 gt gt CYCLONE PRO miero The Main Menu is accessible by pressing the Menu button when the status window is displayed The Main Menu contains the following selections 3 8 2 1 Select SAP Image Select SAP Image brings up a display listing the image
101. nd pull down PORTC3 In which case the user does not need to connect these signals to the target MON08 Header The clock division is fixed Div 4 Please note that the Cyclone PRO will calculate the proper trim value for the device being programmed Cyclone PRO User Manual CYCLONE PRO moicro 6 27 68HC908LV M Cyclone Pro amp T arget Specific Panel HCOS Target p Post Fn Settings During Reset Baud Rate amp Security Settings Pin 1 gt NCo o GND lt Pin 2 a eua peed NC o RESET JV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o PTAQ COM NC o o NC Clock Selection Clock Division r Pro Clock ae si x ae z A Cyclone Clock DIV2 9 8304MHz Pin 5 gt Vout o o PTC3 0 lt Pin16 Target Clock C DiV4 4 9152MHz Figure 6 27 68HC908LV Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The user must pull up the RESET line to target VDD with an external resistor The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 and PORTA4 are used for entering monitor mode By default the user may directly bring thes
102. ne PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTCO PORTC1 and PORTC3 are used for entering monitor mode By default the user may directly bring these signals out to the target MON08 Header Alternatively the user may pull up PORTCO and pull down PORTC1 and pull up down PORTCS3 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 4 68HC908AT Cyclone Pro amp T arget Specific Panel HCO Tape Pet Pin Setings During Reset i Pin 1 gt NC o o GND lt Pin 2 m Baud Rate amp Security Setti aud Rate bald ettings NC 6 RESET JV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High BaudRate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o NC NC o o PTAO COM Clock Selection gt Clock Division r Pro Clock ae a i l Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout o o PTC3 0 EAE Target Clock C DiV4 C 4 9152MHz Figure 6 4 68HC908AT Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO8 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this Cyclone PRO User
103. ns are inherent in MONO8 debugging and should be observed carefully Do not step a command that branches to itself e Do not step an SWI software interrupt command e The hardware breakpoint registers are reserved for use by the debugger Attempting to use these registers for other purposes may not work e Be careful about showing peripheral status and data registers in the memory or variables window A refresh of the window will read these registers and may cause the clearing of flags e The debug monitor built into CPU08 processors uses up to 13 bytes of the stack Do not write to these addresses from SP 13 to SP To load a program into RAM move the stack to the end of RAM e If interrupts are turned on during stepping the debugger will not step into the interrupt Instead it will execute the whole interrupt and stop on the command returned to after the interrupt e Do not set hardware breakpoints within the monitor ROM area itself or they will not function properly 7 3 9 Debugging Tips The following tips may prove useful Cyclone PRO User Manual 119 CYCLONE PRO m Cro 7 3 10 120 e Single stepping is allowed in both RAM or ROM The first breakpoint set is always a hardware breakpoint and any additional breakpoints set are software breakpoints To make sure that a hardware breakpoint is being set make sure only one breakpoint is being used e Hardware breakpoints will stop execution in
104. ns are provided so they may be tested in BAT files The error codes used are Cyclone PRO User Manual 51 lt gt CYCLONE PRO inicre Application handling related error codes 190 No command line parameters specified 191 Specified COM port is not available 192 Specified USB port is not available Please make sure the USB port is available and the USB cable is connected 193 Specified Ethernet IP address is incorrect 199 The Cyclone PRO device is not ready Please check power and connections Execution related error codes 0001 Unable to detect target communication speed 0002 Unable to enter debug mode 0003 Operation cancelled by user 0004 Error writing data byte block 0005 Error writing data byte block 0006 Error during execution 0007 Error enabling module 0008 Error enabling module 0009 Error enabling module 000A Error testing target timing 1001 Blank_Check_Word Algorithm is not supported 1002 Blank_Check_Byte Algorithm is not available 1003 Error during blank checking device using blank_check_byte algorithm 1004 Error during blank checking device using blank_check_word algorithm 2003 Error during erasing device 2004 Error during erasing device 3001 Program_Word Algorithm is not supported 3002 Program_Byte Algorithm is not available 3003 Error during programming device 5003 Error during verifying module 52 Cyclone PRO User Manual
105. o RESET JV Before attempting Auto Baud amp ignoring security try these settings Auto detect Baud Rate Security Bytes FF FF FF FF FF FF FF FF NC o IRQ High Baud Rate amp Security Settings NC o o PTA0 COM NC o o PT 4 0 Clock Selection 7 Clock Division r Pro Clock Fi i r i Cyclone Clock ile l 2 9 8304MHz Pin15 gt EAA Ofte lt Pinl6 2 Ves Clock amp DIa C 4 3152MH2 Note The processor RESET line must have an external pullup Figure 6 22 68HC908LB Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The user must pull up the RESET line to target VDD with an external resistor The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 and PORTA4 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and pull down PORTA4 In which case the user does not need to connect these signals to the target MON08 Header The clock division is fixed Div 4 An external clock signal must be provided to the target MCU s OSC pin The Cyclone PRO provides this signal to MONO8 header Pin 13 Please note that the Cyclone PRO
106. oad the Cyclone accordingly No changes made to the Cyclone PRO until the Commit Changes button is pressed Note Any images that are already stored on the Cyclone PRO or CompactFlash can only be removed by using the Remove All button Cyclone PRO User Manual 139 _ CYCLONE PRO mro 9 SERIAL PORT CONFIGURATION Standard serial cables may be used for serial port Cyclone PRO configuration 140 Cyclone PRO User Manual CYCLONEPRO m Cro 10 USB PORT CONFIGURATION Standard USB cables may be used for USB port Cyclone PRO configuration The user may use network hubs as necessary Cyclone PRO User Manual 141 CYCLONE PRO inicre 142 Cyclone PRO User Manual CYCLONEPROUM Rev 1 10 January 2008 Freescale Controller Continuum 68HC08 S08 RS08 S 12 X ColdFire V1 ColdFire V2 V3 V4 PowerPC Nexus wn Cyclone MAX 2008 P amp E Microcomputer Systems Inc All rights reserved P amp E Micrcomputer Systems Inc P O Box 2044 Woburn MA 01888 www pemicro com Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2006
107. odule BM Blank Check Module vm verify Module PB Program Bytes VC_Verify Checksum PW Program Words PM Program Module Mi VM Verify Module Ba lt J gt Ignore 19 Range Check Defaut Clear Move up Move down Remove Cyclone Pro amp Target Specific Panel Target is ColdFire V1 ColdFire V1 Target BDM Header Pint gt BKGD a o GND lt Pin2 NC o RESET Pin 5 gt NC o o VDD lt Pin6 Target Voltage amp Power Settings Reset Delay FF Use Cyclone Pro Relays Trace Voltage Iv z I After reset delay D ms before attempting communication i BKGD Status Power Down Delay ms 250 Power Up Delay ms 250 Jw Drive BKGD signal LOW after operations are complete I7 Power off target after SAP operations are complete Image Description 4 21 2008 4 53 28 PM Note Cyclone Pro will calculate a proper trim value for the device to be programmed Store Image to Cyclone Store Image to Disk Figure 3 3 ColdFire V1 Class Settings 3 1 2 HC9 S 12 X The user may configure the Cyclone PRO to operate on a HC9 S 12 X target by selecting HC9 S 12 X from the Specify Target Architecture drop down menu Alternatively the user may select the HC9 S 12 X target through the File menu Figure 3 4 shows the HC9 S 12 X specification configuration Cyclone PRO User Manual 21 gt gt CYCLONE PRO mero 22 Cyclone Image Creation amp Management Utility File Options Help
108. of the target MONO8 Header Cyclone PRO User Manual CYCLONEPRO miero PORTAO from the target processor is connected to the target MON08 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA7 PORTCO PORTC1 and PORTC3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull down PORTA7 and PORTC1 pull up PORTCO and pull up down PORTC3 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 9 68HC908GR16 32 Cyclone Pro amp T arget Specific Panel HCOB Target Z p Port Pin Settings During Reset Baud Rate amp Security Settings Pin 1 gt NC a o GND lt Pin 2 i ESN ae NC o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High BaudRate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o PTAO COM NC o PTAI 0 Clock Selection 7 Clock Division Pro Clock LE x 7 ig Z Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout oo PTB4 0 ce Pint 6 Target Clock C DW4 C 4 9152MHz Figure 6 9 68HC908GR16 32 MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO8 Header The target IR
109. ogramming Sync to PLL Change MV Automatically synchronize to the target frequency after each step Figure 7 22 Advanced Programming Procedure Prompt on Flash Program Checking Always Erase and Program flash without asking lets the software 116 Cyclone PRO User Manual p3 CYCLONEPRO C gt miero transparently program the microprocessor Trim Programming The Trim Programming checkbox enables automatic calculation and programming of the trim value in a designated Non Volatile memory location Sync to PLL Change Sync to PLL Change is required for the software hardware connection to synchronize with the microprocessor during the flash erasing programming procedure Start Expert Mode Programmer Start Expert Mode Programmer grants the user access to P amp E s graphical flash programming utility PROGO8SZ PROGO8SZ lets an advanced user control the step by step execution of the flash erase programming procedure See Figure 7 23 More information on how to use PROGO8SZ can be found on P amp E Microcomputer Systems website at www pemicro com E PROGOSSZ Programmer Version 2 17 x E Configuration BM Blank check module Module C Program Files Freescale CW08 V5 0 pra BR Blank check range NOT ACTIVE Object File none EB Erase byte range NOT ACTIVE Base EE00 EW Erase word range NOT ACTIVE EM Erase module PB Program bytes PW Program words NOT ACTIVE PH Program module UM Verify mod
110. ollowing interfaces have been automatically detected To remove them from the list of displayed interfaces they should be unplugged from your PC Cyclone Pro on USB1 Name Ophiuchus Autodetected Refresh Automatically Detected Interfaces Manually Configured Interfaces The following interfaces have been manually configured by the user They may be removed from the list of previously configured interfaces by highlighting them and clicking the Remove button P amp E Multilink on LPT1 User Specified MONOS Cyclone on COM1 User Specified Remove Selected Interface a OK Cancel Figure 7 13 Remove A Manually Configured Multilink Cyclone Pro Interface 7 3 3 Advanced Settings Tab The Advanced Settings tab allows the user to set specific protocol settings The following is an explanation of each part of the advanced settings dialog 106 Cyclone PRO User Manual CYCLONEPRO gt miero P amp E Connection Manger Connect to Target Advanced Settings Programming Adapter Connections MONOS 16 Pin Header Signals Tpd 250 ms Tedis the time delayed after the partis powered down and before the device is powered back up again Tpu Tpu is the time delayed after the part is powered up that the software waits before attempting communications The is to account for startup time and any extended RESET due to a reset driver r MONO8 Cable connection communications type Class Il boards Only c e P
111. oming on one port as data outgoing on the other ports In this manner if there are four computers connected through a Hub and if the first computer is sending data to the second computer then the third and the fourth computers will also receive an identical copy of that data Hubs are usually used to set up a small Local Area Network LAN which may have on the order of 10 to 20 computers Cyclone PRO User Manual 129 CYCLONE PRO m Cro 8 2 130 Switches The aforementioned type of process where the data is simply replicated onto every available port quickly becomes inefficient for larger sized networks For this reason a larger sized LAN employs the usage of Switches instead of Hubs A Switch is essentially a smart Hub in that it limits the input and output of data to the two transacting computers Routers Larger networks such as Wide Area Networks WANs or the Internet for that matter use progressively more sophisticated devices to transact data At the core of these devices is the Router which functions as a switch between networks The Cyclone performs irrespective of the connection mechanism with one very important caveat it needs to be set up with the appropriate network parameters for the underlying network architecture Network Parameters A typical network becomes operational not after the physical connections have been established but after network parameters in the form of IP Internet P
112. on please see the CodeWarrior User Manual 7 4 4 4 Bus Trace For more information about the Bus Trace menu option please see the CodeWarrior User Manual 128 Cyclone PRO User Manual CYCLONE PRO Micro 8 ETHERNET CONFIGURATION This section describes the mechanism used by the Cyclone PRO 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 The Cyclone takes advantage of the UDP protocol s penchant for speed and adds an extra layer of logic to guarantee the delivery of UDP packets in order to offer a best of both worlds solution 8 1 Network Architectures Before delving into the innards of Ethernet message passing it is prudent to briefly describe the different network architectures in use today and how they pertain to the operation of the Cyclone Computers are of course connected to one another through intermediary devices in order to form networks There are several classes of these intermediary devices but they generally fall into one of the following three groups Hubs At the most basic level computers are connected to one another through a Hub A Hub is a device with several ports that are used to connect multiple computers together It is a repeater device a Hub simply copies the data inc
113. one PRO which requires no jumpers 12 Cyclone PRO User Manual CYCLONE PRO gt toicro Figure 2 8 Jumper Settings for Target Power Connection via Power In and Power Out Jacks Of Cyclone PRO Only Jumper 5 is installed 2 12 2 Using Cyclone PRO Board Power and Power Out Jack The target power supply is not needed The Power Out Jack of the Cyclone PRO will act as a center positive power supply to the target system Figure 2 9 shows the connections CYCLONE SPRO Figure 2 9 Via Cyclone PRO Board Power and Power Out Jack of Cyclone PRO Jumpers 2 and 3 are enabled Jumpers 1 4 and 5 are left open as shown in Figure 2 10 Cyclone PRO User Manual 13 CYCLONE PRO mero Figure 2 10 Jumper Settings for Target Power Connection via Cyclone PRO Board Power and Power Out Jack of Cyclone PRO Jumpers 2 and 3 are installed Jumpers 1 4 and 5 are left open 2 12 3 Using Cyclone PRO Board Power and Pin 15 for MONO8 or Pin 6 For BDM The target power supply is not needed Pin 15 of the Cyclone PRO MONO8 connector provides the appropriate voltage for MONO8 targets Pin 6 of the Cyclone PRO BDM header provides the appropriate voltage for BDM targets The Power Out jack of the Cyclone PRO connector is not needed Figure 2 11 shows the connections Figure 2 11 Via Cyclone PRO Board Power and Pin 15 of Cyclone PRO MON08 Connector 14 Cyclone PRO User Manual CYCLONE PRO m ero
114. opment environment which pulls together an assembler in circuit simulator flash memory programmer and in circuit debugger Attempting to contact target and pass security Target Hardware Type Class 8 P amp E CYCLONE PRO Interface connected to target via ribbon cable z Advanced Motorola ICS Board with processor installed Emulation connection ok Power controlled via DTR Motorola ICS Board without processor Connected to target via 16 pin ribbon Cable Direct serial to target w MONOS serial port circuitry built in Direct serial to target w MONOS serial port circuitry and additional auto reset circuit built in P amp E MONO8 CYCLONE Interface connected to target via ribbon cable P amp E PO WEROS Interface to target w MONOS circuitry built in P amp E MONOS MULTILINK or USB MONOS MULTILINK connected to target via ribbon cable P amp E CYCLONE PRO Interfac ed to target via ribbon cable Figure 7 1 Hardware Selection in P amp E PROGO8SZ 7 1 1 Latest Updates P amp E Software The most recent updates of P amp E s 68HCO08 software products are available to download after a brief registration at http www pemicro com ics08 Cyclone PRO User Manual 95 gt CYCLONE PRO mero 7 1 2 In Circuit Debugger The ICD In Circuit Debugger uses the Cyclone PRO to control the target HC08 HCS08 HC S 12 X ColdFire V1 device With the ICD In Circuit Debugger you can load code into the on
115. orrect jumper settings for other power management options 6 Cyclone PRO User Manual CYCLONE PRO m Cro 2 8 Optional Oscillator MON08 Only The Cyclone PRO provides a software configurable 9 8304MHz or 4 1952 MHz oscillator clock signal to Pin 13 of the MONO8 Connector The user may use this clock signal to overdrive the target RC or crystal circuitry If this signal is not used just leave Pin 13 of the target MONO8 header unconnected Please note that if the target already uses an oscillator as its clock the Cyclone PRO will NOT be able to overdrive it The clock should have sufficient drive to be used with a target system even if the target system has an RC circuit or crystal connected 2 9 Target BDM Connector The Cyclone PRO provides a standard 6 pin 0 100 inch pitch dual row 0 025 inch square header for ColdFire V1 68 S 12 X 68HCS08 and RS08 targets The BDM Header uses the Motorola standard pin configuration listed here for reference PIN 1 BKGD GND PIN2 PIN 3 NC RST Vpp PIN4 PIN5 NC Vdd PIN6 Please see Figure 2 2 for the physical location of the BDM connector on the Cyclone PRO O e Figure 2 2 6 Pin BDM Connector Pin Connections Cyclone PRO User Manual 7 gt gt CYCLONE PRO inicre The mechanical drawing is shown in Figure 2 3 2 10 Target MONO8 Connector The Cyclone PRO provides a standard 16 position 0 100 inch pitch dual row 0 025 inch square header for the H
116. outine may be called until it indicates that the Cyclone programming has completed At this point the get_last_error_code routine should be called to determine if an error has occurred or if the programming was successful Another command START_dynamic_program_bytes allows data which has not been pre configured into the Cyclone unit to be programmed to the target This is useful for programming the date a serial number MAC address or other dynamically generated data to the target The check_STARTED_cyclonepromax_status routine is used to wait for programming completion 56 Cyclone PRO User Manual CYCLONE PRO m Cro START_execute_all_ commands or START_dynamic_program_bytes Result 1 check_STARTED_cyclonepromax_status Result 0 get_last_error_code Figure 5 8 Call Sequence Detail 5 2 2 1 Call START_execute_all_commands C C Prototype bool START_execute_all_commands unsigned long cyclonepromaxhandle unsigned long imagenumber Description A Cyclone unit may have several independent programming images in non volatile memory A programming image contains the programming algorithms binary data and programming sequence Calling this routine instructs the Cyclone unit to start execution of a particular image If the Cyclone unit only holds one image the imagenumber should be set to a 1 If the Cyclone unit Cyclone PRO User Manual 57 CYCLONE PRO mero
117. ower Management on software exit for P amp E hardware interfaces Class 5 6 7 8 C Tum target power OFF upon software exit Leave target power ON upon software exit Serial Port stop bits E Pulse IRQ on stop Pulse IRQ low for 500us when attempting to stop a running target X Abort Figure 7 14 Advanced Settings Tab 7 3 3 1 Tpd And Tpu Timing Tpu and Tpd will set the power up and power down delay respectively that will be observed when power cycling a target for entry into Monitor Mode These settings are only valid for devices with automatically controlled power Whenever power is automatically switched off or is manually requested to be switched off the software waits for an amount of time equal to the Tpd delay time before proceeding to the connection protocol This is because a board or power supply may have capacitance which holds the power up for a short time after the supply has been switched off but the supply voltage must reach less than 0 1v before it is turned back on if a Power On reset is to occur Whenever power is automatically switched on or is manually requested to be switched on the software waits for an amount of time equal to the Tpu delay time before attempting to contact the 68HC08 processor This is to allow time not only for power to be fully available but to wait until any reset driver has finally released the RESET line Cyclone PRO User Manual 107 CYCLONE PRO m Cro
118. programming operation started with either the START_execute_all_commands or START_dynamic_program_bytes routines The results are 1 Currently Programming 0 Completed with or without error After this call returns the completed value get_ ast_error_code should be Cyclone PRO User Manual CYCLONE PRO maicro called to determine the programming result 5 2 2 4 Call get_last_error_code C C Prototype unsigned short get_last_error_code unsigned long cyclonepromaxhandle Description Returns the last error code of the Cyclone PRO or Cyclone MAX 0 No Error 5 2 2 5 Call get_last_error_addr C C Prototype unsigned int get_last_error_addr unsigned long cyclonepromaxhandle Description If the get_last_error_code call returned a non zero value i e there was an error this routine can be used to query the address where the error occurred 5 2 3 Configuration Image Maintenance These calls are used to perform operations on the Cyclone units such as reset check image erase image and add new image to the Cyclone Due to security concerns the calling application will not read or upload images from the Cyclone unit All images which are to be verified or downloaded onto the Cyclone must have been generated by the Cyclone Configuration utility 5 2 3 1 Call reset_cyclonepromax C C Prototype bool reset_cyclonepromax unsigned long cyclonepromaxhandle unsigned long reset_delay_in_ms Description
119. pulls up this signal with a 10K Ohm resistor to the target VDD PORTCO PORTC1 and PORTC3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTCO and pull down PORTC1 and pull up down PORTCS3 for clock division In which case the user does not need to connect these signals to the target MONO8 Header Cyclone PRO User Manual CYCLONE PRO miero 6 6 68HC908BD M Cyclone Pro amp T arget Specific Panel HCO8 Target i20 Port Pin Settings During Reset Baud Rate amp Security Settings Pin 1 gt NC a o GND lt Pin 2 2 ER NC o o RESET JV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FFFFFF a on Clock Selection Clock Division r Pro Clock a Aa f Cyclone Clock f DI 2 l 9 8304MHz Pin15 gt Vout o o PTC3 0 lt Pinl6 Target Clock C DIV4 C 4 9152MHz Figure 6 6 68HC908BD Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 10 acting as the communications lin
120. quency to exceed BMHz Figure 6 16 68HC908JG Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this 76 Cyclone PRO User Manual CYCLONEPRO mero signal with a 10K Ohm resistor to the target VDD PORTA1 PORTA2 PORTA3 and PORTE3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and PORTES pull down PORTA2 and pull up down PORTAS for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 17 68HC908JK Cyclone Pro amp T arget Specific Panel HCO8 Target M Port Pin Settings During Reset Baud Rate amp Security Settings Pin 1 gt ce ee lt Pin 2 IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 19200 Security Bytes FF FFFF FF FF FFFFFF ae Loe Clock Selection Clock Division r Pro Clock NC o PTBI 1 OSC o o PTB2 0 Cyclone Clock f DI 2 l 9 8304MHz Pin15 gt Vout o o PTB3 0 lt Pin16 Target Clock C D4 C 4 9152MHz
121. r to the target VDD PORTCO PORTC1 and PORTC3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTCO and pull down PORTC1 and pull up down PORTCS3 for clock division In which case the user does not need to connect these signals to the target MONO8 Header Cyclone PRO User Manual 65 gt gt CYCLONE PRO micro 6 2 68HC908AP M Cyclone Pro amp T arget Specific Panel HC0e Tage SAT a Po Fe Stings During Rese P Pin 1 gt NC o o GND lt Pin 2 M Baud Rate amp Security Setti aud Rate td ettings EO Gan IV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o NC NC o o PTAO COM M Clock Selection 7 Clock Division Pro Clock ee 2 pe z H Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout o o PTBO 0 lt Pin16 Target Clock C DW4 C 4 9152MHz Figure 6 2 68HC908AP Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone P
122. rd D tati k GP GT Family gt icro Hardware Documentation GR Family gt JB Family gt JL JK Family gt LJ Family HC908KXS MR Family 2 RK Family gt SR Family EY Family gt QT QY Family gt GZ Family gt AP Family LD Family gt BD Family LK Family gt QL Family gt QB Family LB Family gt LV Family LT Family gt QC Family JW Family gt Figure 7 20 HC08 Device Menu 7 3 6 2 Connect The Connect option initiates an attempt to communicate with the device chosen under the device section of the menu 7 3 7 Active Mode Menu Options When the microprocessor is connected more menu entries become available to the user Cyclone PRO User Manual 115 gt gt CYCLONE PRO miero Load Ctrl L Reset Ctrl R Command Files Device HC908GP32 gt Communication P amp E Micro Hardware Documentation gt Advanced Programming Debug Options Start Expert Mode Programmer View Register Files Figure 7 21 Additional Menu Options 7 3 7 1 Start Advanced Programming Debug Options The Start Advanced Programming Debug Options menu entry take user to the Advanced Options dialog where he can configure the software settings for the FLASH programming procedure E Advanced Options Prompt on Flash Program Flash Algorithm Selection Use the Following Flash Algorithm when Programming Flash Data V Calculate Trim and Program the Non Volatile Trim Register Trim Pr
123. rnatively the user may pull up PORTA1 and pull down PORTA2 and pull up down PORTC1 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 25 68HC908LK M Cyclone Pro amp T arget Specific Panel maed a lt Pot PinSetings Dung Reset i 3 Pin 1 gt NC o o GND lt Pin 2 Baud Rate amp Security Setti aud Rate ettings E EET IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o o NC NC o o PTAQ COM m Clock Selection 7 Clock Division r Pro Clock E i AR i Cyclone Clock DIV2 9 8304MHz Pin15 gt Vout o o PICI D lt Pint Target Clock C DW4 4 9152MHz Figure 6 25 68HC908LK Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this Cyclone PRO User Manual 83 _ CYCLONE PRO mero 6 26 84 signal with a 10K Ohm resistor to the target VDD PORTA1 PORTA2 and PORTC1 are used for entering monitor mode By default the user may directly bring these
124. rol Utility Example Uses P amp E DLL DLL Successfully Loaded fv iP1 20961 110153 Powertrain EC7 v2 11 P ip2 20961 110127 P ip3 20961 110128 OO P iP4 20961110130 I ips 20961110131 Read Image Descriptions of all checked Cyclone PRO MAXs Execute programming image in all Checked Cyclone PRO MAXs Figure 5 10 Multiple Cyclone PRO MAX Control Utility Example However it may also be desirable to control multiple Cyclone units simultaneously from a host PC Since the Cyclone is a self contained computer system including all programming algorithms data and processing Cyclone PRO User Manual 63 CYCLONE PRO mero 64 power necessary for programming the host PC only needs to provide minimal control information This means that an enormous number of Cyclone units may be controlled from a single PC P amp E offers a software development kit the Multi Cyclone Automated Control SDK which is designed to provide this control information This kit consists of the following components 1 A DLL which allows control of up to 1000 or more Cyclone units in parallel 2 An EXE which allows control of up to 1000 or more Cyclone units in parallel 3 A UDP packet specification for controlling the Cyclone via Ethernet packets 4 A serial packet specification for controlling the Cyclone via RS232 packets This SDK software development kit supports both the Cyclone PRO and the Cyclone MAX programmers me
125. rotocol numbers have been assigned to the individual computers An IP number is a unique string that consists of four numbers ranging between 0 and 255 separated by dots e g 192 168 1 2 Every computer that is on a network needs to have a unique IP number The computer uses this IP number to identify itself on the network and also to address the recipient of its data Assignation of this IP number is sufficient information to transact data on a simple network connected by a hub On a more complex network however routing information becomes important The routing information consists of two more IP numbers The first of these is called the Subnet Mask and is used to determine whether or not the destination address resides on the same subnet i e doesn t need to be forwarded to another network The other IP number is the Gateway Address which is the address of the computer that handles forwarding and receiving of packets to and from other networks 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 PRO User Manual CYCLONEPRO C m Cro greater detail in the Configuring the Cyclone section of this manual 8 3 Internet Protocol Once the network has been established and the IP numbers have been assigned data can be transacted over a networ
126. rovided by P amp E is normally used to connect two similar devices such as a PC to a PC or a Hub to a Hub It is a cable that has its receive and transmit wires crossed over so that the similar devices can effectively communicate with one another With this configuration it is still important to assign IP numbers to both the PC and the Cyclone device Although at first glance it may not seem necessary to assign a Gateway address in this configuration the Cyclone was designed to operate on a network of more than two computers and therefore it needs to be programmed with a Gateway address Assuming the desktop s IP number to be 192 168 100 1 this is an example of the three IP numbers that would need to be programmed into the Cyclone IP Number Gateway IP Subnet Mask PC 192 168 100 1 none 255 255 255 0 CYCLONE 192 168 100 2 192 168 100 1 255 255 255 0 For more information on programming these IP numbers into the Cyclone device please see the following section 8 5 Cyclone IP Setup Via LCD Menu For instructions on how to configure the Cyclone PRO using the LCD Menu please see Section 4 2 Operation Via LCD Menu Rev C Only 8 6 Cyclone IP Setup Utility User Interface ConfigurelP Before the Cyclone device transacts data on an Ethernet network it will need to be configured with the relevant network parameters The application that provides this capability is the Cyclone IP Setup Utility ConfigurelP which can be found as pa
127. rt of the distribution software This utility is used to configure the Cyclone PRO with network parameters Cyclone PRO User Manual 133 gt gt CYCLONE PRO miero 134 and also to update the firmware of the Cyclone PRO Cyclone IP Configuration Utility 1 10 Choose Connection Port amp Cyclone Device Ethernet Port 209 61 110 125 PEMICRO_PRO 3 Close tl Refresh List Reconfigure IP Numbers Cyclone IP Number 209 61 110 125 Gateway IP Number 209 61 110 251 Cyclone Device Name PEMICRO_PRO Subnet Mask 255 255 255 0 Network MAC Address 10 22 33 44 59 FD Firmware Version 92 06 Cyclone Device Type Cyclone PRO FPGA Version 44 Program IP Parameters Figure 8 1 IPSetup exe Default Screen 1 Drop down Box 1 There are three options available in this drop down box of which Ethernet Port is displayed The other options are Serial Port and USB Port Changing to any one of the three Ports will list the devices which are found over that specific Port 2 Drop down Box 2 Once one of the three Serial USB or Ethernet communication interfaces has been selected in the first drop down box a list of all available Cyclone devices over that interface will be displayed for selection 3 Close Button The Close button is active only when a device has been opened for access Once a device has been opened for access it needs to be closed before another device can be op
128. s RS 232 USB or Ethernet e Jumper settable power management schemes for MONO8 and BDM targets e CompactFlash storage available with purchase of CompactFlash Cyclone PRO User Manual 1 c gt CYCLONE PRO ae mero activation license 2 Cyclone PRO User Manual CYCLONE PRO 5 miero 2 CYCLONE PRO HARDWARE The following is an overview of the features and interfaces of the Cyclone PRO unit 2 1 Cyclone PRO Power Supply The Cyclone PRO requires a regulated 6V DC Center Positive power supply with 2 5 5 5mm female plug The Cyclone PRO derives its power from the Power Jack located on the side of the unit bas as SS Figure 2 1 Cyclone PRO Power Jack 2 2 RS232 Communication The Cyclone PRO 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 Cyclone PRO User Manual 3 CYCLONE PRO mero Figure 2 2 Cyclone PRO RS232 Connector 2 3 Ethernet Communication The Cyclone PRO provides a standard RJ45 socket to communicate with a host computer through the Ethernet Port 10 100 BaseT Figure 2 3 Cyclone PRO Ethernet Connector 2 4 USB Communications The Cyclone PRO provides a USB connector for Universal Serial Bus communications between the Cyclone PRO and the host computer The Cyclone PRO is a USB 1 1 compliant device 4 Cyclone PRO User Manual m Cro CYCLONE PRO
129. s directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 and PORTA4 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and pull down PORTA4 In which case the user does not need to connect these signals to the target MON08 Header The clock division is fixed Div 4 An external clock signal must be provided to the target MCU s OSC pin The Cyclone PRO provides this signal to MONO8 header Pin 13 The internal clock on this device has several different tap points each of which will result in different clock frequencies There are several different Cyclone PRO User Manual m Cro CYCLONEPRO algorithms for the device each of which is optimized for a specific tap point frequency To trim to a specified frequency simply select the corresponding algorithm r Cyclone Pro amp T arget Specific Panel C06 Tap a Pot Pir Stings using Reset Baud Rate amp Security Settings Pin 1 gt NCo o GND lt Pin 2 ai ERIN ww NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Auto detect Baud Hate Security Bytes FF FF FF FF FF FF FF FF NC o o
130. s that are stored in the Cyclone PRO s memory You may select the appropriate image by using the Up Down arrows to highlight it and then pressing the Select button The image name shown is the one specified in the Cyclone configuration utility when programming the image to the Cyclone HC908GZ60 MC9S08Q0E128 HC912B32 HC9S12DP256B RSO8KA2 Figure 3 21 Select SAP Image Execute SAP Function The Execute SAP Function menu selection is discussed in Section 4 2 Operation Via LCD Menu Rev C Only Please refer to that section for additional menu information Compact Flash Status The Compact Flash Status menu selection is discussed in Section 4 2 Operation Via LCD Menu Rev C Only Please refer to that section for additional menu information Programming Stats The Programming Stats menu selection is discussed in Section 4 2 Operation Via LCD Menu Rev C Only Please refer to that section for additional menu information Cyclone PRO User Manual CYCLONE PRO miero 3 8 6 Configure Cyclone Configure Cyclone Edit IP Settings Edit Cyclone Name Set AUX Button Func Figure 3 22 Configure Cyclone Configure Cyclone brings up a submenu with three options from which to choose 3 8 6 1 Configure Cyclone Edit IP Settings IP Settings IP Numbers IP Mask IP Gateway MAC Address Figure 3 23 Configure Cyclone Edit IP Settings Edit IP Settings brings up a submenu with four options from whi
131. ser Manual CYCLONEPRO C gt m Cro 1 INTRODUCTION The Cyclone PRO is part of P amp E s line of stand alone programming hardware The Cyclone PRO is able to debug and program Motorola 68HC908 targets in circuit via the Monitor ROM MONO8 Port In addition the Cyclone PRO is able to program and debug the ColdFire V1 HC S 12 X HCS08 and RS08 families of microcontrollers through the on board Background Debug Modules of those processors The Cyclone PRO acts as a debugging programming tool It can communicate with a PC through either RS 232 Ethernet or USB interfaces In addition the Cyclone PRO can function as a stand alone programmer once configured properly it can program target devices independent of a PC Some of the features that make the Cyclone PRO so versatile are e Software configurable port pin settings for Monitor ROM entrance e Works with 1 6V to 5V targets with internal bus frequency ranges from 1MHz to 8MHz MONO8 or 16KHz to 50MHz BDM e Automatically detects target internal bus frequency and sets communications speed e Automatically cycles target power using electromechanical relays during security protocol MONO8 e Automatically provides Vpp voltage for RSO8 targets during flash erasing and programming operations e Provides 9 8304 MHz oscillator signal to overdrive target crystal and RC clock circuitry MONO8 e PC connection can be achieved with a variety of convenient interface
132. sets to drive it into moni tor mode If these pins are not set up properly before the processor powers up the processor may start up in user mode Power Down ICS Ask the user to power down their board Power Up ICS Ask the user to power up their board This is the default option and should work for most if not all CS08 Target Board solutions Refer to the manual addendum under startup for the settings for a specific ICS board It requires the user go through two dialog stages and requires more time than simply cycling the power 1 Software automatically powers down the ICS Cyclone PRO User Manual CYCLONEPRO gt Micro 2 Software asks the user to power down the board as follows Power Down Dialog OY x Turn MCU power off Under 0 1 and Click OK Do NOT turn it back on yet Cancel M IGNORE security failure and enter monitor mode Figure 7 15 Power Down Dialog 3 Software automatically powers up the ICS which configures the pro cessor s MONO8 configuration pins 4 Software asks the user to power up the board as follows Power Up Dialog OF x Tum MCU power on and Click OK Cancel I IGNORE security failure and enter monitor mode Figure 7 16 Power Up Dialog Power Down ICS Ask the user to power cycle their board Power UP ICS This option will work for many ICS boards as well but relies on the fact that while the ICS is powered off it will
133. signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 and pull down PORTA2 and pull up down PORTC1 for clock division In which case the user does not need to connect these signals to the target MONO8 Header Cyclone Pro amp T arget Specific Panel HCO8 Target ut 7 Port Pin Settings During Reset Baud Rate amp Security Settings Pin 1 gt NC a o GND lt Pin 2 RT ees NC o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o IRQ High Baud Rate 9600 Security Bytes FF FF FF FF FF FF FF FF NC o o PTAQ COM J NC o o NC r Clock Selection Clock Division r Pro Clock RE A A AR F I Cyclone Clock C DIY2 9 8304MHz Pin15 gt Vout o o PTC3 1 PE Target Clock DIV4 4 9152MHz Figure 6 26 68HC908LT Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The user must pull up the RESET line to target VDD with an external resistor The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MON08 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 and PORTA2 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively the user may pull up PORTA1 a
134. ssary to program the Cyclone with valid IP numbers the process for which is described in greater detail in the following section However it is important for the Cyclone and the PCs to have matching Subnet and Gateway IP numbers and for each to have a unique IP number on the network An example of a setting for above is as follows IP Number Gateway IP Subnet Mask PC1 192 168 100 1 192 168 100 3 255 255 255 0 PC2 192 168 100 2 192 168 100 3 255 255 255 0 CYCLONE 192 168 100 4 192 168 100 3 255 255 255 0 Gateway 192 168 100 3 192 168 100 3 255 255 255 0 It is important to briefly touch upon the underlying network architecture which can be a 10Mb Megabit 100Mb 10 100Mb half duplex or a full duplex connection The details of the underlying network architecture are beyond the scope of this document but it is sufficient to note that most modern network cards as well as the Cyclone device have the capability to configure themselves for the underlying network through the Auto negotiation mechanism Auto negotiation is performed as soon as a network cable is connected to the device and it sets the operating parameters of the device to match those of the network 8 4 2 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 132 Cyclone PRO User Manual CYCLONEPRO C m Cro not p
135. tation for each user in the group Contact P amp E for volume discounts and site licensing agreements P amp 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 amp 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 amp 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 amp Windows are registered trademarks of Microsoft Corporation IBM is a registered trademark of IBM corporation Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2004 P amp E Microcomputer Systems Inc P O Box 2044 Woburn MA 01888 617 353 9206 http www pemicro com Manual version 1 10 CYCLONE PRO gt mero 1 INTRODUCTION eect niiinnniniedi cid a es 1 2 CYCLONE PRO HARDWARE cccccccceccceecceeeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeteness 3 2 1 Cyclone PRO Power Supply c cccecessecceceeseseneeceeesseaeaeneesenateceeesseneeeeenseaties 3 2 2 RS232 COMmMMUNICAUON siiicecedies cacedendvee E 3 2 3 Ethernet Communication ccccccccceeecce
136. ted Switched by P amp E Interface pa 5 Volts Generated Switched by P amp E Interface 5 Volts User Switched when prompted 3 Volts Generated Switched by P amp E Interface 3 Volts User Switched when prompted 2 Volts Generated Switched by P amp E Interface 2 Volts User Switched when prompted Figure 7 9 Device Power Dialog Clock Driven by P amp E Interface on Pin 13 Target self clocked P amp E Clock Disabled Figure 7 10 HC08 Device Clock Selection Box 3 The device clock menu allows two options See Figure 7 10 P amp E provides clock to target The device has its own clock 4 Click on Refresh which should display all P amp E devices that are auto matically detected such as Cyclone Pro USB Cyclone Pro Ethernet Cyclone PRO User Manual 103 gt gt CYCLONE PRO mero 104 Figure 7 11 P amp E Multilink Cyclone Pro Connection Manager 5 and USB ML MONO8 Multilink See Figure 7 11 P amp E Connection Manager Connect to Target Advanced Settings Programming Adapter Connections MONOS 16 Pin Header Signals Interface Details Cyclone Pro on USB1 Name Ophiuchus Autodetected bd Remove Connections Add A Connection Refresh 2 Curent Chipmode HC908AB32 Power Clock Details Security Options Device Power 5 Volts Provided by P8E Interface z Device Clock T arget self clocked P amp E Clock Disabled v os Security is always ignored when using I
137. the user may pull up PORTCO pull down PORTA and PORTC1 and pull up down PORTC3 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 24 68HC908LJ M Cyclone Pro amp T arget Specific Panel HCO8 Target ic s lt C S S lt lt 7 lt 7SES Y x M Port Pin Settings During Reset M Baud Rate amp Security Settings Pin 1 gt NC a o GND lt Pin 2 A NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF Es aE M Clock Selection 7 Clock Division 7 Pro Clock ae X an z Cyclone Clock DIV 2 f 9 8304MHz Pin15 gt Vout o o PTC1 0 lt Pint Target Clock C DV4 C 4 9152MHz 82 Cyclone PRO User Manual CYCLONEPRO miero Figure 6 24 68HC908LJ Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MONO8 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 10 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTA2 and PORTC1 are used for entering monitor mode By default the user may directly bring these signals out to the target MON08 Header Alte
138. their descriptions This begins interactive setup of system registers such as I O timer and COP watchdog A 68HC908RK2 Timer Interface Module TIM Oy x Timer Status and Control Counter Counter Modulo Channel 6 Status Control Channel 6 Register Channel 1 Status Control Channel 1 Register Figure 7 25 Register Block Register Listing Selecting a file brings up the Register Window see Figure 7 26 which displays the values and significance for each bit in the register The registers can be viewed and their values modified and the values can be stored back Cyclone PRO User Manual CYCLONE PRO m Cro into debugger memory Register Window _ Oy x RAW _ oor Value Read Write 00100000 20 032T Description Current Value TOF Timer Overflow Flag 0 TCNT not reached THOD value TOIE Timer Overflow Enable Overflow interrupts disabled TSTOP Timer Stop Timer counter stopped TRST Timer Reset No effect Not implemented Always returns zero 00 PS Prescaler Select Internal bus clock 1 Mouse Left Button Select which Bit Field Key Up Down Select which Bit Field Mouse Double Click Change current bit field value Key Left Right Change Current Bit Field Value Mouse Right Button Show all settings for bit field Key Space bar Show all settings for bit field Figure 7 26 Register Window 7 3 8 Debugging Limitations The following limitatio
139. ting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 PORTB3 PORTB4 and PORTBS are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header An external clock signal must be provided to the target MCU s OSC pin The Cyclone PRO provides this signal to MONO8 header Pin 13 Alternatively the user may pull down PORTA1 and PORTB3 and pull up PORTB4 and pull up down PORTB5 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 68HC908GP Cyclone Pro amp T arget Specific Panel HCO8 Target fefs Port Pin Settings During Reset Pin 1 gt NC o o GND lt Pin 2 NC o RESET JV Before attempting Auto Baud amp ignoring security try these settings Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF NC o IRQ High Baud Rate amp Security Settings NC o o PTAO COM NC o o PTA7 0 Clock Selection Clock Division r Pro Clock ae x i ae a Cyclone Clock DIV2 9 8304MHz Pinl5 gt Vout o PTC3 0 RAE Target Clock C D4 4 9152MHz Figure 6 8 68HC908GP Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6
140. tion without any modifications e MS C Cyclone Pro Max Control Utility Example Uses P amp E DLL E x Load DLL First Step DLL Successfully Loaded IP1 209 61 110 153 Powertrain EC v2 11 Read Image Description for specified Cyclone PROZ MAX Execute programming image for specified Cyclone PRO MAX Figure 5 9 Cyclone PRO MAX Control Utility Example The sample applications come pre compiled with ICONS so you can run Cyclone PRO User Manual CYCLONEPRO miero them before jumping into the code The callable interface routines are defined in INSTALLDIR msvc50 cyclonepromax_sap_control h For MSVC 5 0 INSTALLDIR Delphi20 cyclonepromax_sap_control pas For Delphi 4 0 If you add the above mentioned interface file and associated CPP file for the C compilers to your own application you will be able to directly access all the Cyclone control routines Remember that the CYCLONEPROMAX_SAP_CONTROL DLL file has to be in the executable s directory or system directory 5 3 Control Of Multiple Cyclone Units The utilities included with the Cyclone allow the unit to be updated and controlled in an automated fashion The user can change the image in the Cyclone and execute the programming images resident on the unit under control from a host computer or without a computer at all These utilities drivers focus on controlling a single Cyclone unit e MS C Multiple Cyclone Pro Max Cont
141. tively the user may pull up PORTC3 pull down PORTA and PORTC4 and pull up down PORTC2 for clock division In which case the user does not need to connect these signals to the target MONO8 Header 6 30 68HC908QL Cyclone Pro amp T arget Specific Panel HC08 Target SOs ee ed 7 p Port Pin Settings During Reset A Pin 1 gt NC o o GND lt Pin 2 Baud Rate amp Security Setti aud Rate amp Security Settings ee o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC IRQ High Aute detect Baud Rate Security Bytes FF FF FF FF FF FF FF FF ae sis Harta o o Clock Selection Clock Division 4 p Pro Clock J ae Ag ai Cyclone Clock f Dy 2 9 8304MHz Pin15 gt Vout o o NC lt Pinl6 Target Clock Diy 4 4 3152MH2 Note The processor RESET line must have an extemal pullup Figure 6 30 68HC908QL Family MONO8 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The user must pull up the RESET line to target VDD with an external resistor The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA1 and PORTA4 are used for entering monitor mode By default the user may directly bring these
142. ule UR Verify range UM Upload module Upload range Specify Object File SM Show module Return to Debugger Reset chip Verify CRC Checksum Show Algorithm Src Un Secured No EE Status Window Initializing Bus Freg 2918Khz Initialized version 1 20 11 22 2004 Copyright P amp E Microcomputer Systems www pemicro com device Freescale 68HC908Q 4 All High Speed Version shegin_cs Loading programming algorithm Done Figure 7 23 PROGO8SZ Software Cyclone PRO User Manual 117 gt CYCLONE PRO mero 7 3 7 2 118 View Register Files The View Register Files menu selection also gives the user the option of running the register file viewer editor If register files are available for the device that you have chosen the Choose a Register Block window see Figure 7 24 will be opened You may also open it by entering the R command in the Command Window command line A Choose a Register Block or press ESC 8HC9O8RK2 Parallel Input Output Ports Keyboard Interrupt Module KBI Internal Clock Generator Module ICG System Integration Module SIM System and Memory Control SYS 68HC9 OBRK2 Timer Interface Module TIM Figure 7 24 Choose A Register Block Window If register files have been installed on the host computer selecting a block brings up the Register Block register listing see Figure 7 25 which shows a list of the associated registers their addresses and
143. utton Func Set AUX Button Func allows the user to assign a function to the AUX button of the Cyclone PRO Highlight the function you wish to assign to the AUX button and press the Select button to choose it Set AUX Button Func Perform Verify Only Toggle Power Figure 3 29 Configure Cyclone Set AUX Button Func 42 Cyclone PRO User Manual CYCLONEPRO C calcro 4 STAND ALONE PROGRAMMER MANUAL CONTROL The Cyclone PRO must be configured before it may serve as a Stand Alone Programmer for HC08 HCS08 HC S 12 X ColdFire V1 targets The user may manually control the Cyclone PRO via the buttons LEDs LCD menu or via PC software The target power management schemes remain the same for each control method 4 1 Operation Via Cyclone PRO Buttons There are five 5 buttons on the top of the Cyclone PRO which are used for stand alone programming and to navigate the LCD menus They are specified as follows Button Function START It Start executing the tasks pre configured into the Cyclone PRO Menu Mode Navigate upwards in LCD menu AUX l Perform auxilliary function stand alone verification Menu Mode Navigate downwards in LCD menu MENU SELECT Toggles ON OFF the Target Board Power Menu Mode Select highlighted item in LCD menu CANCEL Cancel the tasks being executed and go back to the standby state RESET Hardware reset of the Cyclone PRO 4 1 1 Cyclone PRO LED Indicators T
144. will calculate the proper trim value for the device being programmed The user has the option to program this trim value to FFCO Cyclone PRO User Manual 81 gt gt CYCLONE PRO miero 6 23 68HC908LD Cyclone Pro amp T arget Specific Panel HCO8 Target w Port Pin Settings During Reset m Baud Rate amp Security Settings Pin 1 gt NC a o GND lt Pin 2 aus h NC o o RESET IV Before attempting Auto Baud amp ignoring security try these settings NC o o IRQ High Baud Rate 19200 Security Bytes FF FFFF FF FF FFFFFF ee eae Clock Selection 5 Clock Division f Pro Clock Ri oe a et Cyclone Clock f DIV 2 9 8304MHz Pin15 gt Vout o o PTC3 0 lt Pinl6 Target Clock C DiV4 C 4 9152MHz Figure 6 23 68HC908LD Family MONO08 Pinout The target GND is connected to the Pin 2 of the target MONO8 Header The target RESET line is directly connected to the Pin 4 of the target MON08 Header The target IRQ line is directly connected to the Pin 6 of the target MONO8 Header PORTAO from the target processor is connected to the target MONO8 Header Pin 8 acting as the communications line The Cyclone PRO pulls up this signal with a 10K Ohm resistor to the target VDD PORTA7 PORTCO PORTC1 and PORTC3 are used for entering monitor mode By default the user may directly bring these signals out to the target MONO8 Header Alternatively
145. xplained in detail below Cyclone Image Creation amp Management Utility Specify Target Architecture HCO8 MONOS x Required P amp E Hardware CYCLONE PRO Programming Sequence CM Choose Algorithm SS Specify S Record gt I Ignore 19 Range Check Defaut Cear Moveup Movedown Remove Launch Script Wizard Cyclone Pro amp Target Specific Panel HCOB Target Port Pin Settings During Reset Baud Rate amp Security Settings al ae in in IF Before attempting Auto Baud amp ignoring security try these settings ERE Baud Rate 19200 Security Bytes FF FF FF FF FF FF FF FF Pin Pin8 Pind PintO Clock Selection Clock Division Pro Clock Rates rele Pinl3 Pind Cyclone Clock G Div2 9 8304MHz Pinl5 o Pinl6 Target Clock C Div4 4 9152MHz Target Voltage amp Power Settings F Target Voltage Power Down Delay msl 250 Power Up Delay ms 250 Power off target after SAP operations are complete Image Description 6 29 2006 7 05 32 PM Store Image to Cyclone Save Image to Disk Figure 3 1 Cyclone Image Creation And Management Utility 3 1 Target Architecture The Cyclone Pro supports ColdFire V1 HC9 S 12 X HCSO8 RSO8 and HC08 targets Cyclone PRO User Manual 19 gt gt CYCLONE PRO mero 20 The user may select the target architecture by clicking the corresponding tab ColdFire V1 HC9 S 12 X HCS08 R

Download Pdf Manuals

image

Related Search

Related Contents

電気料金のご負担の軽減方法(オール電化住宅にお住まい  SALARIÉS MODE D`EMPLOI - Challenge de la Mobilité  Caractéristiques techniques LINER Andaineurs à dépose    Simply the best.  Multicalor 170.1 P AB Multicalor 200.1 P AB  AT&T 874 User's Manual  Manual de instalación y mantenimiento Advertencia  Cirago IPA3000 mobile device charger    

Copyright © All rights reserved.
Failed to retrieve file