The following document contains information on Cypress products. Colophon The products described in this document are designed, developed and manufactured as contemplated for general use, including without limitation, ordinary industrial use, general office use, personal use, and household use, but are not designed, developed and manufactured as contemplated (1) for any use that includes fatal risks or dangers that, unless extremely high safety is secured, could have a serious effect to the public, and could lead directly to death, personal injury, severe physical damage or other loss (i.e., nuclear reaction control in nuclear facility, aircraft flight control, air traffic control, mass transport control, medical life support system, missile launch control in weapon system), or (2) for any use where chance of failure is intolerable (i.e., submersible repeater and artificial satellite). Please note that Spansion will not be liable to you and/or any third party for any claims or damages arising in connection with above-mentioned uses of the products. Any semiconductor devices have an inherent chance of failure. You must protect against injury, damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy, fire protection, and prevention of over-current levels and other abnormal operating conditions. If any products described in this document represent goods or technologies subject to certain restrictions on export under the Foreign Exchange and Foreign Trade Law of Japan, the US Export Administration Regulations or the applicable laws of any other country, the prior authorization by the respective government entity will be required for export of those products. Trademarks and Notice The contents of this document are subject to change without notice. This document may contain information on a Spansion product under development by Spansion. Spansion reserves the right to change or discontinue work on any product without notice. The information in this document is provided as is without warranty or guarantee of any kind as to its accuracy, completeness, operability, fitness for particular purpose, merchantability, non-infringement of third-party rights, or any other warranty, express, implied, or statutory. Spansion assumes no liability for any damages of any kind arising out of the use of the information in this document. ® ® ® TM Copyright © 2013 Spansion Inc. All rights reserved. Spansion , the Spansion logo, MirrorBit , MirrorBit Eclipse , TM ORNAND and combinations thereof, are trademarks and registered trademarks of Spansion LLC in the United States and other countries. Other names used are for informational purposes only and may be trademarks of their respective owners. Fujitsu Microelectronics Europe Application Note MCU-AN-300022-E-V14 F²MC-8L/16LX/16FX/FR FAMILY 8/16/32-BIT MICROCONTROLLER ALL SERIES GALEP-5 APPLICATION NOTE Galep-5 Revision History Revision History Date 2007-12-20 2008-11-18 2008-11-26 2008-12-02 2008-12-18 Issue V1.0, Initial Version V1.1, MSc, TTL ASYNC programming option added V1.2, MSc, SYNC 2MBaud performance test V1.3, MSc, programming time corrected V1.4, MSc, RS232/TTL maximum rate updated This document contains 28 pages. MCU-AN-300022-E-V14 -2- © Fujitsu Microelectronics Europe GmbH Galep-5 Warranty and Disclaimer Warranty and Disclaimer To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH restricts its warranties and its liability for all products delivered free of charge (eg. software include or header files, application examples, target boards, evaluation boards, engineering samples of IC’s etc.), its performance and any consequential damages, on the use of the Product in accordance with (i) the terms of the License Agreement and the Sale and Purchase Agreement under which agreements the Product has been delivered, (ii) the technical descriptions and (iii) all accompanying written materials. In addition, to the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH disclaims all warranties and liabilities for the performance of the Product and any consequential damages in cases of unauthorised decompiling and/or reverse engineering and/or disassembling. Note, all these products are intended and must only be used in an evaluation laboratory environment. 1. Fujitsu Microelectronics Europe GmbH warrants that the Product will perform substantially in accordance with the accompanying written materials for a period of 90 days form the date of receipt by the customer. Concerning the hardware components of the Product, Fujitsu Microelectronics Europe GmbH warrants that the Product will be free from defects in material and workmanship under use and service as specified in the accompanying written materials for a duration of 1 year from the date of receipt by the customer. 2. Should a Product turn out to be defect, Fujitsu Microelectronics Europe GmbH´s entire liability and the customer´s exclusive remedy shall be, at Fujitsu Microelectronics Europe GmbH´s sole discretion, either return of the purchase price and the license fee, or replacement of the Product or parts thereof, if the Product is returned to Fujitsu Microelectronics Europe GmbH in original packing and without further defects resulting from the customer´s use or the transport. However, this warranty is excluded if the defect has resulted from an accident not attributable to Fujitsu Microelectronics Europe GmbH, or abuse or misapplication attributable to the customer or any other third party not relating to Fujitsu Microelectronics Europe GmbH. 3. To the maximum extent permitted by applicable law Fujitsu Microelectronics Europe GmbH disclaims all other warranties, whether expressed or implied, in particular, but not limited to, warranties of merchantability and fitness for a particular purpose for which the Product is not designated. 4. To the maximum extent permitted by applicable law, Fujitsu Microelectronics Europe GmbH´s and its suppliers´ liability is restricted to intention and gross negligence. NO LIABILITY FOR CONSEQUENTIAL DAMAGES To the maximum extent permitted by applicable law, in no event shall Fujitsu Microelectronics Europe GmbH and its suppliers be liable for any damages whatsoever (including but without limitation, consequential and/or indirect damages for personal injury, assets of substantial value, loss of profits, interruption of business operation, loss of information, or any other monetary or pecuniary loss) arising from the use of the Product. Should one of the above stipulations be or become invalid and/or unenforceable, the remaining stipulations shall stay in full effect Trademarks The following trade names are referenced throughout this manual: TextoolTM-socket is a registered trademark of 3M © Fujitsu Microelectronics Europe GmbH -3- MCU-AN-300022-E-V14 Galep-5 Contents Contents REVISION HISTORY ............................................................................................................ 2 WARRANTY AND DISCLAIMER ......................................................................................... 3 Trademarks ...................................................................................................................... 3 CONTENTS .......................................................................................................................... 4 1 INTRODUCTION .............................................................................................................. 6 2 SYSTEM SETUP.............................................................................................................. 7 2.1 Parallel mode .......................................................................................................... 7 2.2 Serial-Synchronous-Mode ....................................................................................... 8 2.3 Serial- Asynchronous-Mode (TTL)........................................................................... 9 2.4 Serial-Asynchronous-Mode (RS232) ..................................................................... 10 2.5 Synch/Asynch Adapter .......................................................................................... 11 3 SOFTWARE................................................................................................................... 12 3.1 Select a device...................................................................................................... 13 3.2 Load data-file ........................................................................................................ 14 3.3 Edit data................................................................................................................ 15 3.4 Device Options ...................................................................................................... 16 3.5 3.4.1 Action Options ......................................................................................... 17 3.4.2 ISP Options ............................................................................................. 18 3.4.3 SYNC Options ......................................................................................... 19 3.4.4 ASYNC Options ....................................................................................... 20 Programming......................................................................................................... 21 4 BATCH MODE ............................................................................................................... 22 4.1 The CFG-file.......................................................................................................... 22 4.2 Action Options....................................................................................................... 22 4.3 Supplement Options.............................................................................................. 22 4.4 Application return value ......................................................................................... 23 4.5 Example ................................................................................................................ 23 5 CONTACT ADDRESSES............................................................................................... 24 5.1 Europe .................................................................................................................. 24 5.2 USA....................................................................................................................... 24 6 APPENDIX..................................................................................................................... 25 6.1 Quick start with evaluation board Flash-CAN-100P-340 ........................................ 25 6.2 Synchronous mode ............................................................................................... 25 MCU-AN-300022-E-V14 -4- © Fujitsu Microelectronics Europe GmbH Galep-5 Contents Hardware............................................................................................................... 25 Software................................................................................................................ 26 6.3 Asynchronous mode.............................................................................................. 27 Hardware............................................................................................................... 27 6.4 Time Measurements.............................................................................................. 28 © Fujitsu Microelectronics Europe GmbH -5- MCU-AN-300022-E-V14 Galep-5 Chapter 1 Introduction 1 Introduction This application note describes the set up and using of the third party Flash-Programmer GALEP-5. This programmer allows parallel as well as serial programming of Fujitsu microcontrollers. In case of parallel programming different socket-adapters are available, depending on the microcontroller series and device package. For serial-synchronous and asynchronous programming an optional ISP-adapter is offered. The GALEP-5 is a PC-controlled programmer using an USB-Port. It can be powered by an external power-supply (12V,400mA) but also by accumulators (6x Type AAA NiMh 1.2V). The PC-frontend incl. the supported device list, is updated frequently on CONITEC’s webpage www.conitec.de. This application note is based on version 2.02.22. Socket Adapter GALEP-5 ISP-Adapter Figure 1-1: System Overview MCU-AN-300022-E-V14 -6- © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 2 System Setup 2 System Setup This chapter reflects the hardware of the GALEP-5 The GALEP-5 is connected to the USB-port of the PC, using a cable with an USB-Type A connector on PC side and a USB-Type B connector on GALEP side. Depending on the programming mode, parallel, synchronous- or asynchronous-serial, an optional adapter has to be used. 2.1 Parallel mode The GALEP-5 programmer includes a 48-pin TextoolTM-socket, for devices with Dual-InlinePackages (DIP). For other packages optional adapters are available, e.g.: Package GALEP-Adapter Remark LQFP-48-M26 210880 MB90F387PMT MB90F455PMT LQFP-64-M09 210879 MB90F351PFM LQFP-64-M23 210879 MB90F352APMC LQFP-64-M24 210895 MB96F356APMC1 QFP-100-M06 210877 MB90F342ASPF QFP-100-M22 210886 MB96F348HWAPQC LQFP-100-M05 210878 MB90F342ASPFV LQFP-100-M20 210885 MB96F348HWAPMC LQFP-144-M08 BGA-320P-M06 210892 MB91F467CAPMC 210884 MB91F469GAPB Please refer to CONITEC’s webpage www.conitec.de to find out further adapters. The required adapter is also displayed within the device menu (F8) in the PC-software. Please refer to chapter 3.1. To the power-supply USB-Type A - Cable (2m) - USB-Type B Software V2.02 or higher Figure 2-1: GALAP-5 used as Parallel-Programmer © Fujitsu Microelectronics Europe GmbH -7- MCU-AN-300022-E-V14 Galep-5 Chapter 2 System Setup 2.2 Serial-Synchronous-Mode The most Fujitsu microcontrollers include a burn-in bootloader for in-circuit serialsynchronous programming. Please refer to the application-note “an-900031” to get more details about this mode. CONITEC offers an ISP-adapter 210915 for all devices with serial-synchronous burn-in bootloader. This adapter will be put into the TextoolTM-socket (Pin 5-44) and a 10-pin cableconnector is used for the connection to the microcontroller. Please see the user guide of the ISP-Adapter from CONITEC, too. Figure 2-2: GALEP-5 with Serial-Synchronous Adapter (ISP) MCU-AN-300022-E-V14 -8- © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 2 System Setup 2.3 Serial- Asynchronous-Mode (TTL) The most Fujitsu microcontrollers include a burn-in bootloader for in-circuit serialasynchronous programming. Please refer to the application-note “an-900031” to get more details about this mode. CONITEC offers an ISP-adapter 210915 for all devices with serial- asynchronous burn-in bootloader. This adapter will be put into the TextoolTM-socket (Pin 5-44) and a 10-pin cableconnector is used for the connection to the microcontroller. Please see the user guide of the ISP-Adapter from CONITEC, too. Figure 2-3: GALEP-5 with Serial-Synchronous Adapter (ISP) © Fujitsu Microelectronics Europe GmbH -9- MCU-AN-300022-E-V14 Galep-5 Chapter 2 System Setup 2.4 Serial-Asynchronous-Mode (RS232) The most Fujitsu microcontrollers include a burn-in bootloader for in-circuit serialasynchronous programming. Please refer to the application-note “an-900031” to get more details about this mode. CONITEC offers an ISP-adapter 210915 for all devices with serial-asynchronous burn-in bootloader. This adapter will be put into the TextoolTM-socket and a RS-232 cable, which is plugged to the RS232 connector on the ISP-adapter, is used for the connection to the microcontroller. The GALEP-5 manages the translation from USB to serial. *Usage of DTR/RTS is optional and software selectable Figure 2-4: GALEP-5 used in Asynchronous-Mode Serial-Cable pin connection RS232 pin 1 2 3 4 5 6 7 8 9 Signal name DCD RXD TXD DTR GND DSR RTS CTS RI Pin description Data Carrier Detect Receive Transmit Data Terminal Ready Ground Data Set Ready Request To Send Clear To Send Ring Indicator For details of the 16FX minimum hardware-setup please refer to the application note “an-300223” MCU-AN-300022-E-V14 - 10 - © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 2 System Setup 2.5 Synch/Asynch Adapter Figure: 2-5 ISP-ASYNC/SYNC Adapter 210915 The following adapter shows the connection between Galep-5 TextoolTM-socket, the 16-pin SYNC connector and the standard 10-pin target-connector. ISP cable pin 1 Signal name Px0 Galep-5 Pin no 25 2 Px1 24 3 4 5 6 7 8 9 10 NC NC NC NC NC MD0 MD2 /RST SIN SOT SCK VCC GND WDT Power_On GND(Out-,In-) In+ Out+ 26 23 27 22 28 21 29 20 44 6 5 7 8 Pin description For many devices this is the control pin for boot up programming mode selection in SYNC mode. This pin is used as a BUSY or acknowledge signal for GALEP SW when MCU kernel is running. It Should be connected to GALEP for best performance. Otherwise fixed delay times are assumed by GALEP SW. Don't connect this pin without pull-up or pull-down to VCC or GND. This could damage the device or programmer during SYNC mode. Mode pin0 / controls the operation mode of the MCU Mode pin2 / controls the operation mode of the MCU Reset pin Serial data input pin Serial data output pin Serial clock signal input/output pin Power supply pin (max 200mA/5V) Ground pin Watch-Dog Trigger Switch for external power supply (high active) Common GND for Power_On, WDT, Out- and InExternal VCC input (test purposes) External VCC output (test purposes) Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1 GALEP-5 3MTM – Pin 24 © Fujitsu Microelectronics Europe GmbH ~ ~ GALEP-5 3MTM TextoolTM – 220Ω Microcontroller SOT-pin ~ ~ Note: A 220 Ohm resistor should be added on the target side at the microcontroller pins SOT and Px1 in order extend the adapter cable length: 220Ω Microcontroller Px1-pin - 11 - MCU-AN-300022-E-V14 Galep-5 Chapter 3 Software 3 Software This chapter describes the basic functions of the software Take care that the GALEP-5 always is connected to the PC before the software is started. The white LED and the red LED should light permanent, which means GALEP-5 is ready. The initialization takes approximately 60 seconds. Click to the button “Connect” After the software is started the following window should be visible: Main-Menu Messagewindow Main-Functions: - Workspace - Device-Selection - Programming Action-Buttons while programming Device-dependent menu Figure 3-1: Start-up window MCU-AN-300022-E-V14 - 12 - © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 3 Software Note: Check in the message-window of the workspace that the GALEP-5 programmer was detected and tested successfully. In case of any error, please check the power-supply and cable-connection. After the error-reason is solved the software has to be closed and restarted again, otherwise no device can be selected. If the programmer is ready the green LED will light. 3.1 Select a device Change to the Device-Selection menu and choose the manufacturer of the device. All supported devices will be displayed. For some devices sub-folders exist, where the different programming modes can be found: E.g.: QFP100 Parallel programming (see chapter 2.1) SYNC Serial synchronous programming (see chapter 2.2) ASYNC Serial asynchronous programming (see chapter 2.4) Required adapter Further, the required adapter is named. Confirm selection Finally, choose the button “Select Device !” Two additional folders “Device Options” and “Device Help” are added: © Fujitsu Microelectronics Europe GmbH - 13 - MCU-AN-300022-E-V14 Galep-5 Chapter 3 Software 3.2 Load data-file In order to load the programming data switch to the menu “File/Buffer options“. Take care, that the GALEP-5 software uses a virtual memory buffer. This means, that the displayed addresses may not be the absolute addresses but relative addresses. Therefore always check the Address-offset, as well as start- and end-address with the datasheet of the related microcontroller. Normally, after the corresponding device-selection, the memory-settings should be correct, if the “Load…” function from this “File/Buffer options”-folder is used. - Select file-format (BINary or HEXadecimal) - Load the data-file Check Memory-address Select File-format Load data-file Figure 3-2: File/Buffer Options Check in the message-window of the workspace that the data-file was loaded totally and successfully. Figure 3-3: File-Load result (good / failed) MCU-AN-300022-E-V14 - 14 - © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 3 Software 3.3 Edit data The loaded data can be inspected and edited in the folder “Data Buffer”. Since software version 2.02.22 the real device-address is visible. Figure 3-4: Check within this view that the user-program is located in the right memory-space. © Fujitsu Microelectronics Europe GmbH - 15 - MCU-AN-300022-E-V14 Galep-5 Chapter 3 Software 3.4 Device Options Change to the device-option folder (the name depends on the chosen device e.g. MB96F348HSA Options). Further folders, depending on the chosen device and the available programming-modes, will be visible now. Figure 3-5: Device Options Within the folder “Device Options” the relation of the addresses between the device-memory and the virtual buffer of the GALEP-5 software are shown. Generally these setting are defined by choosing the right device-type and there should be no need to change it. MCU-AN-300022-E-V14 - 16 - © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 3 Software 3.4.1 Action Options Within the folder “Action Options” programming related items can be found. Figure 3-6: Action Options Program Flow Some programming functions can be linked together. In the example above the action “Program” will include an erasing and verifying and will activate the reset-signal afterwards, if this signal is supported by the adapter. Compare / Blank check In order to speed up the “Blank Check-” and “Verify-” action, two modes are supported: The Single byte option will compare byte for byte and is slower than an CRC check, where the memory contents will be proven by building a checksum. Sector Map This list shows the partitioning of the total flash-memory. Generally all sectors are enabled. Change this setting if e.g. only some sectors shall be read out or programmed. If all sectors are enabled the Flash-command “Chip-Erase” will be performed otherwise “Sector Erase” will be used, when the action “ERASE” is selected. NOTE: The flash security settings are located at the “Start.ASM”. © Fujitsu Microelectronics Europe GmbH - 17 - MCU-AN-300022-E-V14 Galep-5 Chapter 3 Software 3.4.2 ISP Options Within the folder “ISP Options” special features for the in circuit serial programming can be chosen. Figure 3-7: ISP Options VCC by GALEP This option allows powering the external target system. If the CONITEC ISP-adapter 210915 is used, up to 200 mA can be driven via the 10-pin ISPconnector at pin 9(Vcc) and pin 10(GND). Without the ISP-adapter up to 50 mA are driven via the TextoolTM-socket at pin 25(Vcc) and pin 16(GND). Connecting pin 25(Vcc) and 35(Vcc) together allows driving also 200 mA. Adapter Ext. Power ON Connecting an external power-supply to the IN- and IN+ input of the ISP-adapter can drive higher currents, up to 2 A / 20 V, via the outputs OUT- and OUT+. In this case the option “Adapter Ext. Power ON” has to be enabled, what automatically will disable the option “VCC by GALEP”. With a delay of 100ms, to respect external Vcc raise time, the signal POWER_ON at pin 2 of the TextoolTM -socket becomes high. If this feature is not enabled the output is High-Z. Reset by GALEP The duration and polarity of the reset-signal (pin 23 of TextoolTM –socket, pin 5 of 10-pin ISP-connector) can be defined. This option can be disabled only in asynchronous-mode. WDT Trigger by GALEP Enable this option, if the target-system requires a periodically signal for an external watchdog to prevent reset-generation while programming. MCU-AN-300022-E-V14 - 18 - © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 3 Software 3.4.3 SYNC Options If a device, supporting the synchronous mode (SYNC), is chosen from the device list, then the folder “SYNC Options” is available in order to define the clock-speed. Figure 3-8: SYNC Options For longer programming cable length the clock-speed should be decreased. Also a 220 Ohm resistor in the “Px1”-signal will help to extend the interface cable length. © Fujitsu Microelectronics Europe GmbH - 19 - MCU-AN-300022-E-V14 Galep-5 Chapter 3 Software 3.4.4 ASYNC Options If a device, supporting the asynchronous mode (ASYNC), is chosen from the device list, then the folder “ASYNC Options” is available in order to define the COM-port, baud rate and the crystal-frequency of the device. Figure 3-9 ASYNC Options Additionally (see chapter 2.4) the handshake-lines DTR and RTS can be selected to use as reset- and mode-selection line. The polarity of the mode-selection can be defined here, too. The polarity of the reset-signal is defined in the folder ISP-options (see chapter 3.4.2). Also there is the possibility to use a RS232 connector or the TTL ISP connector to flash the MCU. MCU-AN-300022-E-V14 - 20 - © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 3 Software 3.5 Programming Switch to the “Action” folder, and select one of the basic programmer functions: Next press the “Start”-button to execute the selected function. The action process can be observed in the small message-window. After the action is terminated another action can be chosen or the checkbox IC1 can be marked to repeat the action. Important for Asynchronous mode If DTR/RTS is not used by the target system to generate a system reset (see chapter 3.4.4), then the reset-signal has to be asserted manually (e.g. press the reset button) before each action or better use the “Program Flow” options as described in chapter 3.4.1. © Fujitsu Microelectronics Europe GmbH - 21 - MCU-AN-300022-E-V14 Galep-5 Chapter 4 Batch Mode 4 Batch Mode This chapter explains how to use the GALEP-5 with command line options Instead of the interactive window mode as described in chapter 3, the GALEP-5 can also be controlled by command line options. This may be useful for e.g. an automatic assembly line. The format is as follows: GALEP32mad [CFG-File][LOG-File] [/ActionOption] [/SupplementOption 1] .. [/SupplementOption n] Note: No relative paths are allowed for LOG, CFG and GPF-Files! The location for files without path is the application directory. 4.1 The CFG-file The configuration-file (*.cfg) stores the device- and user- settings. All necessary settings should be done within the window-version first. Then create the cfgfile by the “Save Config” command from the file-menu. 4.2 Action Options The following self-explaining Action Options are supported: /auto, /prog, /read, /blank, /verify, /erase 4.3 Supplement Options /console The program messages will appear inside a new console window. Use this option to test your batch file. /ShowWindow The GALEP-5 main windows will be shown on the screen. Use this option to test your batch file. /NoExit The program will not terminate after the batch run. This option works only with the /ShowWindow flag! /SaveFile-“filename” The data window will be saved to the specified file. This Option is intentionally used in conjunction with the /red action. The file type depends on the file extension. /VerboseLevel0 At level „0“ program issues only the batch messages to the log-file. Default is verbose level 0. /VerboseLevel1 VerboseLevel1 issues the messages usually shown inside the action tab window. /VerboseLevel2 This level will issue all messages to the log-file. MCU-AN-300022-E-V14 - 22 - © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 4 Batch Mode 4.4 Application return value The result of the action is stored in the errorlevel 0 1 2 4.5 No batch-job was executed. The batch-job terminated successfully. The batch-job terminated with an error. Example The following example demonstrates a batch-job for erasing and programming a device. “Save Config” from the file-menu exported the configuration file based on the settings done in the windows version. @echo off rem Sample 2:erase and program start /wait galep32mad /erase batchtest.cfg5ui /console if errorlevel 2 goto error2 if errorlevel 1 goto success1 if errorlevel 0 goto nobatchjob :error2 echo Action not successfull! goto end :success1 start /wait galep32mad /prog batchtest.cfg5ui /console if errorlevel 2 goto error2 if errorlevel 1 goto success2 if errorlevel 0 goto nobatchjob :success2 echo Action successfull! goto end :nobatchjob echo nobatchjob :end Figure 4-1: Batch-mode example © Fujitsu Microelectronics Europe GmbH - 23 - MCU-AN-300022-E-V14 Galep-5 Chapter 5 Contact Addresses 5 Contact Addresses 5.1 Europe CONITEC Datensysteme GmbH Dieselstr. 11c D-64807 Dieburg / Germany Tel +49 (6071) 9252-0 Fax +49 (6071) 9252-33 [email protected] www.conitec.net 5.2 USA CONITEC Corporation 1951 4th Ave, Ste 301 San Diego, CA 92101 Tel +1 (619) 702-4420 Fax +1 (619) 702-4419 [email protected] www.conitec.net MCU-AN-300022-E-V14 - 24 - © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 6 Appendix 6 Appendix 6.1 Quick start with evaluation board Flash-CAN-100P-340 This chapter shows how to use the GALEP-5 with a Fujitsu evaluation board. Please refer always to the user guide of the corresponding evaluation board, too. 6.2 Synchronous mode Hardware Referring to chapter 2.2 the GALEP-5 is connected to the connector (X17) of the evaluation board Flash-CAN-100P-340 by using the ISP-adapter. Remove the jumper JP24 in order to avoid a Reset during programming and remove jumper JP44. Other jumpers are default. Set DIP-switches (S2) 1 and 3 to position “ON”. Figure 6-1: GALEP-5 and Flash-CAN-100P-340 (Synchronous mode) © Fujitsu Microelectronics Europe GmbH - 25 - MCU-AN-300022-E-V14 Galep-5 Chapter 6 Appendix Software After the GALEP-5 software (GALEP32mad.exe) is started, check in the workspace message window that the GALEP-5 programmer was found successfully (see chapter 3) Select the MB96F348HSA-SYNC from the device-selection folder. Load the data-file (e.g. 96340_io.mhx) using the “Load…”-button from the folder “File/Buffer Options” (see chapter 3.2). Observe the workspace message window for errors! Define in the folder “MB96F348HSA Options / ISP Options” whether the target should be powered by the GALEP-5 (see chapter 3.4.2). If not, please connect a power-supply to the evaluation board. Choose from the folder “Action” a basic programming-function and confirm it by pressing the button “Start” (see chapter 3.5) Observe the action message window for the processing status. MCU-AN-300022-E-V14 - 26 - © Fujitsu Microelectronics Europe GmbH Galep-5 Chapter 6 Appendix 6.3 Asynchronous mode Hardware Referring to chapter 2.4 the GALEP-5 is connected to the target board. Remove the Jumpers: JP24, JP35, JP41, JP42 Connect pin 1 of JP35 with pin 1 of JP24 (LED side) to generate Reset by RS232. Set DIP-switches (S2) to position “ON OFF ON OFF OFF OFF OFF OFF” (PROG-mode). NOTE: The internal level shifter of the GALEP-Programmer does only support data rates up to 1MBit through the RS232 connection (TTL up to 2MBit) UART0: Connect the serial port of the GALEP-5 ISP-Adapter 210915 to the dedicated bootloaderUART (UART0, X3) of the evaluation board "Flash-CAN-100P-340”. Set the jumpers JP1a and JP2a in order to make connection with the RS232-transceiver. Set the jumpers: JP3 1-2, JP4 1-2, JP31, JP44. UART1: (NOTE: This is only possible on 16FX devices) Connect the serial port of the GALEP-5 ISP-Adapter 210915 to the dedicated bootloaderUART (UART1, X5) of the evaluation board "Flash-CAN-100P-340”. Set the jumpers JP6a and JP8a in order to make connection with the RS232-transceiver. Set the jumpers JP4 1-2, JP5 1-2, JP32, JP44 Figure 6-2: GALEP-5 and Flash-CAN-100P-340 (Asynchronous mode) © Fujitsu Microelectronics Europe GmbH - 27 - MCU-AN-300022-E-V14 Galep-5 Chapter 6 Appendix 6.4 Time Measurements Based on a MB96F348RWA with 544 KByte Flash the following approximate execution time was measured with random testpattern: Asynchronous Mode (ASYNC-speed 2Mbit/s, TTL 20cm cable) Command Time Remarks ERASE 13 sec Incl. Kernel upload (1.5sec) BLANK CHECK 3 sec Incl. Kernel upload (1.5sec) ERASE (incl. Blank Check) 15 sec Incl. Kernel upload (1.5sec) PROGRAM (544 KB) 10 sec PROGRAM (incl. Verify) 11 sec CRC check PROGRAM (incl. Erase and Verify) 22 sec CRC check VERIFY (544 KB) 1 sec CRC check VERIFY (544 KB) 5 sec Byte compare READ (544KB) 6 sec Incl. Kernel upload (1.5sec) Synchronous Mode (SYNC-speed 2Mbit/s, TTL 20cm cable) Command Time Remarks ERASE 13 sec Incl. Kernel upload (1.5sec) BLANK CHECK 3 sec Incl. Kernel upload (1.5sec) ERASE (incl. Blank Check) 15 sec Incl. Kernel upload (1.5sec) PROGRAM (544 KB) 10 sec PROGRAM (incl. Verify) 11 sec CRC check PROGRAM (incl. Erase and Verify) 22 sec CRC check VERIFY (544 KB) 1 sec CRC check VERIFY (544 KB) 6 sec Byte compare READ (544KB) 9 sec Incl. Kernel upload (1.5sec) Synchronous Mode (SYNC-speed 1Mbit/s) Command Time ERASE 13 sec BLANK CHECK 3 sec Incl. Kernel upload (1.5sec) ERASE (incl. Blank Check) 15 sec Incl. Kernel upload (1.5sec) PROGRAM (544 KB) 14 sec PROGRAM (incl. Verify) 15 sec PROGRAM (incl. Erase and Verify) 27 sec CRC check 1 sec CRC check VERIFY (544 KB) VERIFY (544 KB) READ (544KB) MCU-AN-300022-E-V14 9 sec 10 sec - 28 - Remarks Incl. Kernel upload (1.5sec) CRC check Byte compare Incl. Kernel upload (1.5sec) © Fujitsu Microelectronics Europe GmbH