f²mc-8l/16lx/fr family - fujitsu · 2006. 6. 12. · the galep-4 is connected directly to the...

26
Fujitsu Microelectronics Europe Application Note FMEMCU-AN-000004-11 F²MC-8L/16LX/FR FAMILY 8/16/32-BIT MICROCONTROLLER ALL SERIES GALEP-4 APPLICATION NOTE

Upload: others

Post on 06-Feb-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

  • Fujitsu Microelectronics Europe Application Note

    FMEMCU-AN-000004-11

    F²MC-8L/16LX/FR FAMILY 8/16/32-BIT MICROCONTROLLER

    ALL SERIES

    GALEP-4

    APPLICATION NOTE

  • GALEP-4 Revision History

    AN-000004-11 - 2 - © Fujitsu Microelectronics Europe GmbH

    Revision History

    Date Issue 2004-04-14 V1.0, HWe, Initial Version 2004-04-20 V1.1, HWe, Chapter 2.7 updated

    This document contains 26 pages.

  • GALEP-4 Warranty and Disclaimer

    © Fujitsu Microelectronics Europe GmbH - 3 - AN-000004-11

    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

  • GALEP-4 Contents

    AN-000004-11 - 4 - © Fujitsu Microelectronics Europe GmbH

    Contents

    REVISION HISTORY............................................................................................................ 2

    WARRANTY AND DISCLAIMER ......................................................................................... 3

    CONTENTS .......................................................................................................................... 4

    1 INTRODUCTION.............................................................................................................. 6

    2 SYSTEM SETUP.............................................................................................................. 7 2.1 Parallel-Mode .......................................................................................................... 7 2.2 Synchronous-Serial-Mode ....................................................................................... 8 2.3 Asynchronous-Serial-Mode ..................................................................................... 9

    3 QUICK START WITH EVALUATION-BOARD FLASH-CAN-100P-340......................... 10 3.1 Synchronous mode ............................................................................................... 10

    3.1.1 Hardware................................................................................................. 10 3.1.2 Software .................................................................................................. 10

    3.2 Asynchronous mode.............................................................................................. 11 3.2.1 Hardware................................................................................................. 11 3.2.2 Software .................................................................................................. 11

    4 SOFTWARE................................................................................................................... 12 4.1 Configuration......................................................................................................... 13 4.2 Select a device...................................................................................................... 13 4.3 Load data-file ........................................................................................................ 14 4.4 Edit data................................................................................................................ 15 4.5 Device Options...................................................................................................... 16

    4.5.1 Action Options ......................................................................................... 17 4.5.2 ISP Options ............................................................................................. 18 4.5.3 SYNC Options ......................................................................................... 19 4.5.4 ASYNC Options....................................................................................... 19 4.5.5 Auto Action Options ................................................................................. 19

    4.6 Programming......................................................................................................... 20

    5 BATCH MODE............................................................................................................... 21 5.1 The CFG-file.......................................................................................................... 21 5.2 Action Options....................................................................................................... 21

  • GALEP-4 Contents

    © Fujitsu Microelectronics Europe GmbH - 5 - AN-000004-11

    5.3 Supplement Options.............................................................................................. 21 5.4 Application return value ......................................................................................... 21 5.5 Example ................................................................................................................ 22

    6 CONTACT ADDRESSES............................................................................................... 23 6.1 Europe .................................................................................................................. 23 6.2 USA....................................................................................................................... 23

    7 APPENDIX..................................................................................................................... 24 7.1 Time Measurements.............................................................................................. 24 7.2 FlashKit-Adapter.................................................................................................... 25

    8 REMARKS ..................................................................................................................... 26

  • GALEP-4 Chapter 1 Introduction

    AN-000004-11 - 6 - © Fujitsu Microelectronics Europe GmbH

    1 Introduction This application note describes the set up and using of a third party Flash-Programmer,

    CONITEC’s “GALEP-4”.

    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 family and device package.

    In case of serial programming both, synchronous and asynchronous, modes are supported. For serial-synchronous programming an optional ISP-adapter is offered. For serial-asynchronous programming the programmer itself behaves like a dongle, the programming is done directly via the PC’s COM-port connected to the microcontroller.

    The GALEP-4 is a PC-controlled programmer using the parallel-port (LPTx). It can be powered by an external power-supply (12V,400mA) but also by accumulators (6x Type AAA NiMh 1.2V).

    The PC-frontend is updated frequently on Conitec’s webpage www.conitec.de. This application note is based on beta-version 1.16.23.

    Figure 1-1: System overview

    Socket adapter for parallel programming

    ISP-adapter

  • GALEP-4 Chapter 2 System setup

    © Fujitsu Micr

    2 System setup

    This chapter reflects the hardware of the GALEP-4

    The GALEP-4 is connected directly to the parallel LPTx-port of the PC, using a cable with SUB-D25 male connector on both sides. Depending on the programming mode, parallel, synchronous- or asynchronous-serial, an optional adapter has to be used.

    2.1 Parallel-Mode The GALEP-4 programmer includes a 40-pin TextoolTM-socket, for devices with Dual-Inline-Packages (DIP). For other packages optional adapters are available, e.g.:

    Package GALEP-Adapter Remark QFP48 / M26 210880 MB90385series

    MB90455series MB90890series

    QFP64 / M09 210873 MB90495series MB90560series

    QFP100 / M06 210871 MB90340series MB90435series MB90540series MB90580series MB90590series MB90867series

    QFP120 / M21 210854 MB90390series

    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 4.2.

    Softwaor h

    SubD25m - Cable (2m) - SubD25m

    oelectronics Europe GmbH - 7 -

    Figure 2-1: GALAP-4 used as P

    re V1.16igher

    To the power-supply

    AN-000004-11

    arallel-Programmer

    http://www.conitec.de/

  • GALEP-4 Chapter 2 System setup

    AN-000004-11 - 8 - © Fujitsu Microelectronics Eur

    2.2 Synchronous-Serial-Mode Some Fujitsu microcontrollers (e.g. 16LX series) include a burn-in bootloader for in-circuit serial-synchronous programming. Please refer to the application-note “an-900031” to get more details about this mode.

    Conitec offers an ISP-adapter 210865 for all devices with serial-synchronous burn-in bootloader. This adapter will be put into the TextoolTM-socket and a 10-pin cable-connector is used for the connection to the microcontroller. The pin-out and signals are the same as already known from an older programming-tool called “FlashKit”.

    Figure 2-2: GALEP-4 with Serial-Synchronous Adapter

    Instead of the ISP-adapter 210865 a customer-specified programming-cable can beasily using the pin cross-reference below.

    Signal Textool-Socket Px0 21 Px1 20 MD0 22 MD2 19 /RST 23 SIN 18 SOT 24 SCK 17 VCC 25,35 GND 16

    Figure 2-3: Pinout of the Textool-socket

    SubD25m

    Cable (2m)

    SubD25m

    Note:

    GND (1) Ground for PW

    PWR (2) Switch for exteSupply (high-a

    WDT (40) Watch-Dog Tr

    PWR and WDwithin ISP-opti

    Pin Signal 1 Px0 2 Px1 3 MD0 4 MD2 5 /RST 6 SIN 7 SOT 8 SCK 9 VCC 10 GND

    ISP-cable (ca. 12cm)

    ISP-Adapter 210865

    10-pin Connector:

    Software V1.16or higher

    To the power-supply

    e wired

    R and WDT

    rnal Power-ctive)

    igger

    T are selectable on

    Px0 Px1 MD0 MD2 /RST SIN SOT SCK VCC GND

    VCC

    PWR WDT GND

    ope GmbH

  • GALEP-4 Chapter 2 System setup

    © Fujitsu M

    2.3 Asynchronous-Serial-Mode Some Fujitsu microcontrollers (e.g. 16LX series) include a burn-in bootloader for in-circuit serial-asynchronous programming. Please refer to the application-note “an-900031” to get more details about this mode.

    No adapter is needed for this mode. The target microcontroller is connected directly to the COMx-port of the PC using an RS232-transceiver. But the GALEP-IV programmer has to be connected, too, because it behaves like a dongle.

    For details

    Softwaor h

    SubD25m - Cable (2m) - SubD25m

    icroelectronics Europe GmbH - 9 -

    Figure 2-4: GALAP-4 used in

    for the minimum hardware-setup pleas

    re V1.16igher

    To the power-supply

    X232 MD

    0

    MD

    2

    Serial-Cable

    COMx

    LPTx

    *Usage of DTR/RT

    Asynchronous-mo

    e refer to the app

    MA

    SIN

    S is

    de

    lic

    SOT

    TXD

    RXD

    DTR*

    RTS*

    option

    ation

    /RST

    AN-000004-11

    al and software selectable

    note an-900098.

  • GALEP-4 Chapter 3 Quick start with Evaluation-board Flash-CAN-100P-340

    AN-000004-11 - 10 - © Fujitsu Microelectronics Europe GmbH

    3 Quick start with Evaluation-board Flash-CAN-100P-340

    This chapter shows how to use the GALEP-4 with a Fujitsu Evaluation board. Please refer always to the user guide of the corresponding evaluation board, too.

    3.1 Synchronous mode

    3.1.1 Hardware Referring to chapter 2.2 the GALEP-4 is connected to the “FlashKit”-connector (X17) of the evaluation board Flash-CAN-100P-340 by using the ISP-adapter.

    Remove the jumpers JP1 and JP2 in order to avoid short-circuit with the RS232-transceiver.

    Set all DIP-switches (S2) to position “OFF”.

    Figure 3-1: GALEP-4 and Flash-CAN-100P-340 (Synchronous mode)

    3.1.2 Software After the GALEP-4 software (GALEP32.exe) is started, check in the workspace message window that the GALEP-4 programmer was found successfully (see chapter 4)

    Select the MB90F340A-SYNC from the device-selection folder (see chapter 4.1) Load the data-file (e.g. FlashCan100P340.mhx) using the “Load…”-button from the folder “File/Buffer Options” (see chapter 4.3). Observe the workspace message window for errors!

    Define in the folder “MB90F347A Options / ISP Options” whether the target should be powered by the GALEP-4 (see chapter 4.5.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 4.6)

    Observe the action message window for the processing status.

    Remove jumpers JP1 and JP2

    ONOFF

    1 2 3 4 5 6 7 8

    MD0 MD1 MD2 nc nc nc P01 P00

    “FlashKit”- connector X17

  • GALEP-4 Chapter 3 Quick start with Evaluation-board Flash-CAN-100P-340

    © Fujitsu Microelectronics Europe GmbH - 11 - AN-

    3.2 Asynchronous mode

    3.2.1 Hardware Referring to chapter 2.3 the GALEP-4 is connected only to the PC. Neither adapter nor connection between GALEP-4 and evaluation-board is necessary.

    Connect the PC-COMx port to the dedicated bootloader-UART (UART0, X3) of the evaluation board "Flash-CAN-100P-340”.

    Set the jumpers JP1 and JP2 in order to make connection with the RS232-transceiver.

    Set DIP-switches (S2) to position “ON OFF OFF OFF OFF OFF OFF OFF” (PROG-mode).

    Figure 3-2: GALEP-4 and Flash-CAN-100P-340 (Asynchronous mode)

    3.2.2 Software After the GALEP-4 software (GALEP32.exe) is started, check in the workspace message window that the GALEP-4 programmer was found successfully (see chapter 4)

    Select the MB90F340A-ASYNC from the device-selection folder (see chapter 4.1) Load the data-file (e.g. FlashCan100P340.mhx) using the “Load…”-button from the folder “File/Buffer Options” (see c ). Observe the workspace message window for errors!

    Define the COM-port an te in the folder “MB90F347A Options / ASYNC(see chapter 4.5.4).

    Choose from the folder “Action” a basic programming-function and confirm it by prbutton “Start” (see chapter 4.6)

    Observe the action message window for the processing status.

    Set DIP-switches (S2) to position “OFF OFF ON OFF OFF OFF OFF OFF” (RUN-mreset the target to start application.

    ONOFF

    1 2 3 4 5 6 7 8

    MD0 MD1 MD2 nc nc nc P01 P00

    Dedicated bootloader (UART0, X3)COMx

    LPTx

    Options”

    Set jumpers JP1 and JP2

    d data-ra

    hapter 4.3

    000004-11

    essing the

    ode) and

  • GALEP-4 Chapter 4 Software

    4 Software

    This chapter describes the basic functions of the software

    Take care that the GALEP-4 always is connected to the PC before the software is started.

    After the software is started the following window should be visible:

    Main-Menu

    Message-window

    Main-Functions:

    - Workspace

    - Device-Selection

    - Programming

    Device-dependent menu

    Action-Buttons while programming

    AN-000004-11 - 12 - © Fujitsu Microelectronics Europe GmbH

    Figure 4-1: Start-up window

    Note:

    Check in the message-window of the workspace that the GALEP-4 programmer was detected and tested successfully.

    In case of any error, please check the power-supply, cable-connection and port setting (see chapter 4.1).

    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 lit.

  • GALEP-4 Chapter 4 Software

    © Fujitsu Microelectronics Europe GmbH - 13 - AN-000004-11

    4.1 Configuration If necessary, the LPT-port can be selected in the main-menu: Options / Application

    The result of the function “Test Galep!” will be output to the workspace-message window (see chapter 4). No pop-up window will be displayed!

    After port-selection and successful testing of the GALEP-4 hardware, the software has to be closed and restarted again. Otherwise no device can be selected.

    4.2 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.3)

    Further, the required adapter is named.

    Finally, choose the button “Select Device !”

    Two additional folders “Device Options” and “Device Help” are added:

    Select LPT-port:

    LPT1: 378

    LPT2: 278

    Test it!

    Required adapter

    Confirm selection

  • GALEP-4 Chapter 4 Software

    AN-000004-11 - 14 - © Fujitsu Microelectronics Europe GmbH

    4.3 Load data-file In order to load the programming data switch to the menu “File/Buffer options“.

    Take care, that the GALEP-4 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

    Figure 4-2: File/Buffer Options

    Check in the message-window of the workspace that the data-file was loaded totally and successfully.

    Figure 4-3: File-Load result (good / failed)

    Select File-format

    Check Memory-address

    Load data-file

  • GALEP-4 Chapter 4 Software

    © Fujitsu Microelectronics Europe GmbH - 15 - AN-000004-11

    4.4 Edit data The loaded data can be inspected and edited in the folder “Data Buffer”.

    Since software version 1.16.19 the real device-address is visible.

    Check within this view that the user-program is located in the right memory-space.

  • GALEP-4 Chapter 4 Software

    AN-000004-11 - 16 - © Fujitsu Microelectronics Europe GmbH

    4.5 Device Options Change to the device-option folder (the name depends on the chosen device e.g. MB90F347A Options). Further folders, depending on the chosen device and the available programming-modes, will be visible now.

    Figure 4-4: Device Options

    Within the folder “Device Options” the relation of the addresses between the device-memory and the virtual buffer of the GALEP-4 software are shown. Generally these setting are defined by choosing the right device-type and there should be no need to change it.

  • GALEP-4 Chapter 4 Software

    © Fujitsu Microelectronics Europe GmbH - 17 - AN-000004-11

    4.5.1 Action Options Within the folder “Action Options” programming related items can be found.

    Figure 4-5: Action Options

    Security

    The security-field is only available for devices that support the Flash-Security-Feature. Take care that modifying the security setting will change the value of the lowest odd flash-memory-cell. Please refer to the hardware-manual of the corresponding device.

    If this feature is used, then the actions “Verify” and “Read” will not work. Use the option “Verify after Program” instead.

    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. Note: The Reset-signal has to be supported by the programming-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.

    Security 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.

  • GALEP-4 Chapter 4 Software

    AN-000004-11 - 18 - © Fujitsu Microelectronics Europe GmbH

    4.5.2 ISP Options Within the folder “ISP Options” special features for the in circuit serial programming can be chosen.

    Figure 4-6: ISP Options

    VCC by GALEP

    This option allows powering the external target system. If the Conitec ISP-adapter 210865 is used, up to 200mA can be driven via the 10-pin ISP-connector at pin 9(Vcc) and pin 10(GND). Without the ISP-adapter up to 50mA 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 200mA.

    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 2A/20V, 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.

  • GALEP-4 Chapter 4 Software

    © Fujitsu Microelectronics Europe GmbH - 19 - AN-000004-11

    4.5.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. Respect the Sync-speed of 1/8 of the crystal frequency of the target microcontroller.

    Figure 4-7: SYNC Options For longer programming cable length the clock-speed should be decreased. Also a 220Ohm resistor in the “Px1”-signal will help to extend the interface cable length.

    4.5.4 ASYNC Options If a device supporting the synchronous 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 4-8: ASYNC Options

    Additionally (see chapter 2.3) 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 4.5.2).

    4.5.5 Auto Action Options Within the folder “Auto Action Option” a customized action-flow can be setup.

    E.g.: allow 2 tries for programming

    Note:

    The “Auto Action” will not work with devices where the Flash-Security-Feature is enabled.

  • GALEP-4 Chapter 4 Software

    AN-000004-11 - 20 - © Fujitsu Microelectronics Europe GmbH

    4.6 Programming Switch to the “Action” folder, and select one of the basic programmer functions:

    The “Auto” button will be visible if an “Auto Action” is defined. See chapter 4.5.4. The Start” button will be visible if an action is selected.

    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 4.5.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 4.5.1.

    Important for devices with Flash-Security-Feature:If the security-feature is enabled (see chapter 4.5.1) then the action “Verify” will result with an error, the action “Read” will always read 0xff, and a device is detected as erased by the Blank-check. For devices supporting the Flash-Security-Feature please use the Program Flow settings in the folder “Action Option”: ”Erase before Program” and “Verify after Program”.

    In order to re-program a flash-secured device, make sure that all sections of the section map (see chapter 4.5.1) are enabled to force the chip-erase comand. Otherwise the device can neither be erased nor re-programed.

    Note:In the current version the addresses of the virtual memory are displayed instead of the device-addresses.

  • GALEP-4 Chapter 5 Batch Mode

    © Fujitsu Microelectronics Europe GmbH - 21 - AN-000004-11

    5 Batch Mode

    This chapter explains how to use the GALEP-4 with command line options

    Instead of the interactive window mode as described in chapter 3, the GALEP-4 can also be controlled by command line options. This may be useful for e.g. an automatic assembly line.

    The format is as follows: GALEP32 [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.

    5.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 cfg-file by the “Save Config” command from the file-menu.

    5.2 Action Options The following self-explaining Action Options are supported:

    /auto, /prog, /read, /blank, /verify, /erase

    5.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 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 /read 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.

    5.4 Application return value The result of the action is stored in the errorlevel

    0 No batch-job was executed. 1 The batch-job terminated successfully. 2 The batch-job terminated with an error.

  • GALEP-4 Chapter 5 Batch Mode

    AN-000004-11

    5.5 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 galep32 /erase batchtest.cfg /consoleif errorlevel 2 goto error2 if errorlevel 1 goto success1 if errorlevel 0 goto nobatchjob :error2 echo Action not successfull! goto end :success1 start /wait galep32 /prog batchtest.cfg /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

    - 22 - © Fujitsu Microelectronics Europe GmbH

    Figure 5-1: Batch-mode example

  • GALEP-4 Chapter 6 Contact Addresses

    © Fujitsu Microelectronics Europe GmbH - 23 - AN-000004-11

    6 Contact Addresses

    6.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

    6.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

    http://www.conitec.net/mailto:[email protected]://www.conitec.net/mailto:[email protected]

  • GALEP-4 Chapter 7 Appendix

    AN-000004-11 - 24 - © Fujitsu Microelectronics Europe GmbH

    7 Appendix

    7.1 Time Measurements Based on a MB90F347A with 128KByte Flash the following execution time was measured:

    Synchronous Mode (SYNC-speed 500KB/s)

    Command Time Remarks ERASE 7 sec BLANK CHECK 4 sec ERASE (incl. Blank Check) 8 sec PROGRAM (128K) 15 sec PROGRAM (incl. Verify) 21 sec CRC check PROGRAM (incl. Erase and Verify) 24 sec CRC check VERIFY (128K) 7 sec CRC check VERIFY (128K) 33 sec Byte compare

    Asynchronous Mode (ASYNC-speed 115kBaud)

    Command Time Remarks ERASE 12 sec Incl. Kernel upload BLANK CHECK 10 sec Incl. Kernel upload ERASE (incl. Blank Check) 14 sec PROGRAM (128K) 31 sec PROGRAM (incl. Verify) 39 sec CRC check PROGRAM (incl. Erase and Verify) 43 sec CRC check PROGRAM (incl. Erase and Verify) 47 sec Batchmode, CRC check VERIFY (128K) 11 sec CRC check VERIFY (128K) 24 sec Byte compare

  • GALEP-4 Chapter 7 Appendix

    © Fujitsu Microelectronics Europe GmbH - 25 - AN-000004-11

    7.2 FlashKit-Adapter The Galep-4 programmer replaces the older FlashKit programmer. In order to use customized programming-cables also with Galep-4, the following adapter shows the connection between Galep-4 TextoolTM-socket, the 15-pin SUB-D connector of the FlashKit and the standard 10-pin target-connector.

    Signal Textool-Socket FlashKit SUB-D25 (female) FlashKit

    10-pin (female) Px0 21 1 1 Px1 201 91 21

    MD0 22 2 3 MD2 19 10, 72 4/RST 23 3 5 SIN 18 11 6 SOT 24 4 7 SCK 17 12 8 VCC 25,35 5 9 GND 16 13 10

    1Note: A 220Ohm resistor should be added on the target side at the microcontroller pins SOT and Px1 in order extend the adapter cable length:

    2Note: In case that a customized FlashKit-cable with SUB-D15 connector is used, take care that Pin19 (MD2) of the GALEP-4 is connected to Pin 7 and Pin 10 of the FlashKit-connector because of the “Pulldown on MD2” issue. Please refer to the documentation of the FlashKit.

    Px0 Px1 MD0 MD2 /RST SIN SOT SCK VCC GND

    VCC

    PWR WDT GND

    FlashKit

    Sub-D15 (female)

    1 (Px0)9 (Px1)

    2 (MD0) 10 (MD2)2

    3 (/RST) 11 (SIN)

    4 (SOT) 12 (SCK)

    5 (VCC) 13 (GND)

    614 (WDT)

    7 (MD2)2

    15 8

    GALEP-4

    TextoolTM FlashKit

    10-pin (female)

    1 (Px0) 2 (Px1)

    3 (MD0) 4 (MD2)))

    5 (/RST) 6 (SIN)

    7 (SOT) 8 (SCK)

    9 (VCC) 10 (GND)

    220ΩGALEP-4 TextoolTM – Pin 24 Microcontroller SOT-pin~ ~

    220ΩGALEP-4 TextoolTM – Pin 20 Microcontroller Px1-pin~ ~

  • GALEP-4 Chapter 8 Remarks

    AN-000004-11 - 26 - © Fujitsu Microelectronics Europe GmbH

    8 Remarks