28
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

F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

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

Page 2: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Revision History

MCU-AN-300022-E-V14 - 2 - © Fujitsu Microelectronics Europe GmbH

Revision History

Date Issue 2007-12-20 V1.0, Initial Version 2008-11-18 V1.1, MSc, TTL ASYNC programming option added 2008-11-26 V1.2, MSc, SYNC 2MBaud performance test 2008-12-02 V1.3, MSc, programming time corrected 2008-12-18 V1.4, MSc, RS232/TTL maximum rate updated

This document contains 28 pages.

Page 3: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Warranty and Disclaimer

© Fujitsu Microelectronics Europe GmbH - 3 - MCU-AN-300022-E-V14

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 l iable for any damages whatsoever (including but without limitation, consequential an d/or indirect damages for personal injury, assets of substantial value, loss of profit s, interruption of business operation, loss of information, or any other monetary or pecun iary 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

Page 4: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Contents

MCU-AN-300022-E-V14 - 4 - © Fujitsu Microelectronics Europe GmbH

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.4.1 Action Options ......................................................................................... 17

3.4.2 ISP Options ............................................................................................. 18

3.4.3 SYNC Options ......................................................................................... 19

3.4.4 ASYNC Options....................................................................................... 20

3.5 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

Page 5: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Contents

© Fujitsu Microelectronics Europe GmbH - 5 - MCU-AN-300022-E-V14

Hardware............................................................................................................... 25

Software................................................................................................................ 26

6.3 Asynchronous mode.............................................................................................. 27

Hardware............................................................................................................... 27

6.4 Time Measurements.............................................................................................. 28

Page 6: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 1 Introduction

MCU-AN-300022-E-V14 - 6 - © Fujitsu Microelectronics Europe GmbH

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-Ad apter

Figure 1-1: System Overview

Page 7: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 2 System Setup

© Fujitsu Microelectronics Europe GmbH - 7 - MCU-AN-300022-E-V14

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-Inline-Packages (DIP). For other packages optional adapters are available, e.g.:

Package GALEP-Adapter Remark

LQFP-48-M26 210880 MB90F387PMT MB90F455PMT

LQFP-64-M09

LQFP-64-M23

LQFP-64-M24

210879

210879

210895

MB90F351PFM

MB90F352APMC

MB96F356APMC1

QFP-100-M06

QFP-100-M22

LQFP-100-M05

LQFP-100-M20

210877

210886

210878

210885

MB90F342ASPF

MB96F348HWAPQC

MB90F342ASPFV

MB96F348HWAPMC

LQFP-144-M08 210892 MB91F467CAPMC BGA-320P-M06 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.

Figure 2-1: GALAP-5 used as Parallel-Programmer

Software V2.02 or higher

To the power-supply USB-Type A - Cable (2m) - USB-Type B

Page 8: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 2 System Setup

MCU-AN-300022-E-V14 - 8 - © Fujitsu Microelectronics Europe GmbH

2.2 Serial-Synchronous-Mode

The most Fujitsu microcontrollers 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 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 cable-connector 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)

Page 9: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 2 System Setup

© Fujitsu Microelectronics Europe GmbH - 9 - MCU-AN-300022-E-V14

2.3 Serial- Asynchronous-Mode (TTL)

The most Fujitsu microcontrollers 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.

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 cable-connector 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)

Page 10: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 2 System Setup

MCU-AN-300022-E-V14 - 10 - © Fujitsu Microelectronics Europe GmbH

2.4 Serial-Asynchronous-Mode (RS232)

The most Fujitsu microcontrollers 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.

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

For details of the 16FX minimum hardware-setup please refer to the application note

“an-300223”

RS232 pin

Signal name

Pin description

1 DCD Data Carrier Detect

2 RXD Receive 3 TXD Transmit

4 DTR Data Terminal Ready 5 GND Ground

6 DSR Data Set Ready

7 RTS Request To Send

8 CTS Clear To Send 9 RI Ring Indicator

Page 11: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 2 System Setup

© Fujitsu Microelectronics Europe GmbH - 11 - MCU-AN-300022-E-V14

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.

Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: 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:

ISP cable pin

Signal name

Galep-5 Pin no

Pin description

1 Px0 25 For many devices this is the control pin for boot up programming mode selection in SYNC mode.

2 Px1 24 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.

3 MD0 26 Mode pin0 / controls the operation mode of the MCU

4 MD2 23 Mode pin2 / controls the operation mode of the MCU

5 /RST 27 Reset pin 6 SIN 22 Serial data input pin

7 SOT 28 Serial data output pin

8 SCK 21 Serial clock signal input/output pin

9 VCC 29 Power supply pin (max 200mA/5V) 10 GND 20 Ground pin

NC WDT 44 Watch-Dog Trigger

NC Power_On 6 Switch for external power supply (high active)

NC GND(Out-,In-) 5 Common GND for Power_On, WDT, Out- and In- NC In+ 7 External VCC input (test purposes)

NC Out+ 8 External VCC output (test purposes)

220Ω GALEP-5 3MTM Textool TM – Microcontroller SO T-pin ~

~

220Ω GALEP-5 3MTM – Pin 24 Microcontroller Px1 -pin ~

~

Page 12: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

MCU-AN-300022-E-V14 - 12 - © Fujitsu Microelectronics Europe GmbH

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.

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

Figure 3-1: Start-up window

Main-Menu

Main-Functions:

- Workspace

- Device-Selection

- Programming

Action-Buttons while programming Device-dependent menu

Message-window

Click to the button “Connect”

Page 13: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

© Fujitsu Microelectronics Europe GmbH - 13 - MCU-AN-300022-E-V14

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)

Further, the required adapter is named.

Finally, choose the button “Select Device !”

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

Required adapter

Confirm selection

Page 14: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

MCU-AN-300022-E-V14 - 14 - © Fujitsu Microelectronics Europe GmbH

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

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)

Load data-file

Check Memory-address

Select File-format

Page 15: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

© Fujitsu Microelectronics Europe GmbH - 15 - MCU-AN-300022-E-V14

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-pr ogram is located in the right memory-space.

Page 16: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

MCU-AN-300022-E-V14 - 16 - © Fujitsu Microelectronics Europe GmbH

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.

Page 17: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

© Fujitsu Microelectronics Europe GmbH - 17 - MCU-AN-300022-E-V14

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

Page 18: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

MCU-AN-300022-E-V14 - 18 - © Fujitsu Microelectronics Europe GmbH

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 ISP-connector 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.

Page 19: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

© Fujitsu Microelectronics Europe GmbH - 19 - MCU-AN-300022-E-V14

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.

Page 20: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

MCU-AN-300022-E-V14 - 20 - © Fujitsu Microelectronics Europe GmbH

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.

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.

Figure 3-9 ASYNC Options

Page 21: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 3 Software

© Fujitsu Microelectronics Europe GmbH - 21 - MCU-AN-300022-E-V14

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.

Page 22: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 4 Batch Mode

MCU-AN-300022-E-V14 - 22 - © Fujitsu Microelectronics Europe GmbH

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 cfg-file 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.

Page 23: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 4 Batch Mode

© Fujitsu Microelectronics Europe GmbH - 23 - MCU-AN-300022-E-V14

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

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

Figure 4-1: Batch-mode example

@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

Page 24: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 5 Contact Addresses

MCU-AN-300022-E-V14 - 24 - © Fujitsu Microelectronics Europe GmbH

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

Page 25: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 6 Appendix

© Fujitsu Microelectronics Europe GmbH - 25 - MCU-AN-300022-E-V14

6 Appendix

6.1 Quick start with evaluation board Flash-CAN-100 P-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 (Synchro nous mode)

Page 26: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 6 Appendix

MCU-AN-300022-E-V14 - 26 - © Fujitsu Microelectronics Europe GmbH

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.

Page 27: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 6 Appendix

© Fujitsu Microelectronics Europe GmbH - 27 - MCU-AN-300022-E-V14

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 bootloader-UART (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 bootloader-UART (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 (Asynchr onous mode)

Page 28: F²MC-8L/16LX/16FX/FR FAMILY - Fujitsu...Instead of the ISP-adapter 210915 a customer-specified programming-cable can be wired using this pin cross-reference. 1Note: A 220 Ohm resistor

Galep-5 Chapter 6 Appendix

MCU-AN-300022-E-V14 - 28 - © Fujitsu Microelectronics Europe GmbH

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 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) 14 sec

PROGRAM (incl. Verify) 15 sec CRC check

PROGRAM (incl. Erase and Verify) 27 sec CRC check

VERIFY (544 KB) 1 sec CRC check

VERIFY (544 KB) 9 sec Byte compare

READ (544KB) 10 sec Incl. Kernel upload (1.5sec)