17
APPLICATION-NOTE final public (B) 2003-08-15 N21101-2e-ID-B.doc OBID i-scan ® ID ISC.M02-B Firmware Update from Firmware Version 1.1 and higher

ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

APPLICATION-NOTE

finalpublic (B)2003-08-15N21101-2e-ID-B.doc

OBID i-scan®

ID ISC.M02-BFirmware Update

from Firmware Version 1.1 and higher

Page 2: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 2 of 17 N21101-2e-ID-B.doc

Note

Copyright 2003 byFEIG ELECTRONIC GmbHLange Strasse 4D-35781 Weilburg-WaldhausenTel.: +49 6471 3109-0http://www.feig.de

With the edition of this document, all previous editions become void. Indications made in this manual may bechanged without previous notice.

Copying of this document, and giving it to others and the use or communication of the contents thereof areforbidden without express authority. Offenders are liable to the payment of damages. All rights are reserved in theevent of the grant of a patent or the registration of a utility model or design.

Composition of the information in this document has been done to the best of our knowledge. FEIG ELECTRONICGmbH does not guarantee the correctness and completeness of the details given in this manual and may not beheld liable for damages ensuing from incorrect or incomplete information. Since, despite all our efforts, errors maynot be completely avoided, we are always grateful for your useful tips.The instructions given in this manual are based on advantageous boundary conditions. FEIG ELECTRONICGmbH does not give any guarantee promise for perfect function in cross environments.FEIG ELECTRONIC GmbH assumes no responsibility for the use of any information contained in this documentand makes no representation that they free of patent infringement. FEIG ELECTRONIC GmbH does not conveyany license under its patent rights nor the rights of others.OBID i-scan® is registered trademark of FEIG ELECTRONIC GmbH.OBID® is registered trademark of FEIG ELECTRONIC GmbH.Windows® is a registered trademark of Microsoft Corporation

General information's regarding this documentThe sign " " indicates extensions or changes of this manual compared with the former issue.

Page 3: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 3 of 17 N21101-2e-ID-B.doc

Content

1. Introduction..................................................................................................................................... 4

2. Programming of the Firmware using Terminal-Program „Hyper Terminal“............................... 4

2.1. Required components.............................................................................................................. 5

2.2. Hardware preparation............................................................................................................... 6

2.3. „Hyper Terminal“.................................................................................................................. 72.3.1. Start Software-Flash-Loader................................................................................................. 72.3.2. Start and configuration of the „Hyper Terminal“. ................................................................... 72.3.3. Programming of the Firmware .............................................................................................. 92.3.4. Firmware VERIFY and RESET........................................................................................... 11

3. Programming with the Hardware-Flash-Loader (FUJITSU FLASH MCU Programmer)............... 12

3.1. Needed components .............................................................................................................. 12

3.2. Hardware setting ID ISC.M02 ................................................................................................. 13

3.3. Programming the Software-Flash-Loaders with „FUJITSU FLASH MCU Programmer“........ 143.3.1. Start „FUJITSU FLASH MCU Programmer“ with „flash.exe“ .................................................. 143.3.2. Port configuration ................................................................................................................ 143.3.3. Select target ....................................................................................................................... 153.3.4. Load file.............................................................................................................................. 153.3.5. Programming Firmware ...................................................................................................... 15

3.4. Error Messages....................................................................................................................... 16

Page 4: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 4 of 17 N21101-2e-ID-B.doc

1. Introduction

The firmware of the ID ISC.M02 is stored in a flash memory chip. This allows you to perform firmwareupdates through the serial RS232 (TTL) port of the Reader.

To perform the software update using the software flash loader you will need a terminal program. Werecommend the terminal program “Hyper Terminal”, which already exist in a Windows operatingsystem. You can also use any other terminal program which supports the X-Modem protocol.

Note:On condition that there is already installed the firmware version 1.01 (or higher) the terminalprogram can be used to perform a firmware update.

2. Programming of the Firmware using Terminal-Program „Hyper Terminal“

The software flash-loader can be started e.g. by using the demoprogram “ID ISOStart”. The command„[0x55] Start Flash Loader“ must be transferred over the RS232 (TTL) interface.

After receiving an “OK”, the program “ID ISOStart” must be closed and the “Hyper Terminal” can bestarted to perform the firmware update.

Page 5: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 5 of 17

2.1. Required components

Requiredcomponents

ID ISC.M02

X-Modem capable TerminalProgram

(e.g. Hyper Terminal)X

RS232-TTL converter1962.000.00

e.g. model 232LPTTLB&B Electronic Ltd(www.bb-europe.com)

X

5V DC PowersuppplyID Net.5V

1689.000.00X

Connection cableID CAB.RS-A1690.000.00or self-made

X

Adapter-cable

self madeX

ID ISC.M02-BF

B&B Electronic Ltdwww.bb-europe.com)

our-Channel RS-232 toTTL/CMOS Converter

Modell 232LPTTL

N21101-2e-ID-B.doc

Page 6: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 6 of 17 N21101-2e-ID-B.doc

2.2. Hardware preparation

1. Switch OFF the power supply of the Readers ID ISC.M02-B.

2. Connect the RS 232 / TTL converter to the serial RS232 Port of the PCs.

3. The TTL-output of the converter must be connected with the connector X1. For this you have touse the connection cable (see picture).

4. Switch ON the power supply.

PC123456789

123456789

RS232 to TTL

RDTD

RTSCTS

Ground

Four-Channel RS-232 to

TTL/CMOS ConverterB&B Model 232LPTTL

J2

J3

X2

X3

X4

X1

J1

V2V1

C65

C73

male

conn

ecto

r 9Pi

n

Adapter cable

Connection cableID CAB.RS-A1690.000.00

Powersupplyconnector

male

conn

ecto

r 9Pi

n

fem

ale co

nnec

tor 9

Pin

fem

ale co

nnec

tor 9

Pin

male

conn

ecto

r 9Pi

n

fem

ale co

nnec

tor 9

Pin

Page 7: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 7 of 17 N21101-2e-ID-B.doc

2.3. „Hyper Terminal“

„Hyper Terminal“ is a accessory of the Windows operating system. You will find it under “Programs /Accessories / Communication. If it is not so, you can install it using the Windows CD-ROM. Furtherinformation’s you will find in the description of the Windows operating system.

2.3.1. Start Software-Flash-Loader

To start the software flash loader in theReader, you must use the command „[0x55]Start Flash Loader“ using the “ID ISOStart“demo program.

! Please use only the Bus-Address which is currently programmed inthe reader (Defauld:“0“). In the case of using the Bus-Address „255“the error message: “ Errorcode:...-1038“ appears and the SoftwareFlashloader will not start!

After confirming with „OK“, you must quit the demo program “ID ISOStart“.

2.3.2. Start and configuration of the „Hyper Terminal“.

1. Start the „Hyper-Terminal“ Program from the “Start” menu “Programs / Accessories /Communication”.

Page 8: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 8 of 17 N21101-2e-ID-B.doc

Create a new connection, give a name (e.g. UpdateID ISC.M02) and choose a symbol for the connection.

If there already exist a configuration you can press“close” and open the existing configuration file usingthe „Hyper Terminal“ Menu „File / Open“.

Please choose in the following dialog the used COM-Port and press OK.

Configure the used COM-Port in the COM Properties-menu:

• Bits per second 38400 Baud

• Data bits: 8

• Parity: None

• Stop bits: 1

• Flow control: non

Page 9: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 9 of 17 N21101-2e-ID-B.doc

If the message: „Unable to open COM1......“,appears after pressing the “OK”-button, there ispossibly a different program active, which usesthe COM-Port. Please check if thedemoprogram ID ISOStart is still running andcomplete it if necessary.

2.3.3. Programming of the Firmware

To check the connection please press the Return-button once.Now the prompt „Bootloader“ with the current firmware versionshould appears.

Beside the prompt you have to write: „FLASHALL“, incapital letters.

• After sending the command „FLASHALL“ it is notallowed to interrupt the power supply of thereader”!

This will be receipted with the response „ERASE WAIT“.After a few seconds you will be requested by themessage „Start DOWNLOAD“ to send the new firmware-mhx-file to the reader.

To do this you have about 2minutes time. In this period oftime every 5 seconds the signs„C“ resp. „§“ will appear. If youdon’t send a mhx-file to the reader during this period of time, the error message „ERROR 1“ willappear. After that you have to send the “FLASHALL“-command again. Don’t switch off the reader.

By pressing the “Send” button you can call the dialog function“Send file”.

Page 10: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 10 of 17 N21101-2e-ID-B.doc

Ensure that the protocol is selected as“Xmodem” and choose the new firmware.mhxfile. Press the “Send” button.

The following programming procedure will bedisplayed in a window. This will take a fewseconds.

The successful programming procedure will be answeredwith an “OK”.

Page 11: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 11 of 17 N21101-2e-ID-B.doc

2.3.4. Firmware VERIFY and RESET

To ensure that there was no error while the programmingprocedure you can compare the programmed firmware withthe original mhx-file using the command “VERIFY”.

Please write the command “VERIFY” beside the prompt andchoose again the mhx-file by press the “Send” button.

Was the process also confirmed with "OK" you can perform aCPU Reset by using the command “RESET”.

If the LEDs are flashing alternating after a Reset you have toswitch off and on the reader again. Now only the green LEDshould flashing.

Now the programming of the new firmware is finished. Pleasecomplete the Hyper Terminal and check the reader functions using the demoprogram ID ISOStart.

Page 12: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 12 of 17 N21101-2e-ID-B.doc

3. Programming with the Hardware-Flash-Loader (FUJITSU FLASH MCU Programmer)

The hardware flash loader should only be used if the software flash loader is faulty. To activate thehardware flash loader you have to fit a jumper. Follow the instruction in chapter 2.2. Hardwarepreparation resp. 3.2. Hardware setting ID ISC.M02

3.1. Needed components

Needed components ID ISC.M02

Program:FUJITSU FLASH MCU

ProgrammerX

RS232-TTL converter1962.000.00

e.g. Model 232LPTTLB&B Electronic Ltd(www.bb-europe.com)

X

Power supplyID Net.5V

1689.000.00X

Connection cableID CAB.RS-A1690.000.00or self made

Adapter-cable

self madeX

Page 13: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 13 of 17 N21101-2e-ID-B.doc

3.2. Hardware setting ID ISC.M02

1. Switch OFF the power supply of the Readers ID ISC.M02-B.

2. Connect the RS 232 / TTL converter to the serial RS232 Port of the PCs.

3. The TTL-output of the converter must be connected with the connector X1. For this you have touse the connection cable (see picture).

4. The jumper J1 must be changed from position 1-2 to position 2-3.

5. Switch on the reader and follow the description in chapter : 3.3.1. Start „FUJITSU FLASH MCUProgrammer“ with „flash.exe“.

J1

1

2

3Setting

for Firmware Update

PC123456789

123456789

RS232 to TTL

RDTD

RTSCTS

Ground

Four-Channel RS-232 to

TTL/CMOS ConverterB&B Model 232LPTTL

J2

J3

X2

X3

X4

X1

J1

V2V1

C65

C73

male

conn

ecto

r 9Pi

n

Adapter cable

Connection cableID CAB.RS-A1690.000.00

Powersupplyconnector

male

conn

ecto

r 9Pi

n

fem

ale co

nnec

tor 9

Pin

fem

ale co

nnec

tor 9

Pin

male

conn

ecto

r 9Pi

n

fem

ale co

nnec

tor 9

Pin

Page 14: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 14 of 17 N21101-2e-ID-B.doc

3.3. Programming the Software-Flash-Loaders with „FUJITSU FLASH MCU Programmer“.

Please install the „FUJITSU FLASH MCU Programmer“ by a double click onto “PCW16setup.exe”.

After turning on the Reader, you can immediately start the Windows program „flash.exe“ inside thefolder „FMC16LX“. No operational firmware is necessary in the flash memory for using the hardwareflash loader. You can quit the hardware flash loader by turning off the Reader or doing a rest withoutany loss of memory in the flash chip before the firmware has been erased using “ flash.exe ”.

3.3.1. Start „FUJITSU FLASH MCU Programmer“ with „flash.exe“

Turn the Reader off and set the jumpers as described in Section 3.2. Hardware setting ID ISC.M02 orTurn the Reader back on.

! The program “ FUJITSU FLASH MCU Programmer ” must be started from a hard disk.

Also the MHX-File must be stored on the writeable hard disk.

Please check that the file and the program is not write protected.

Make all settings as described in the following Section 3.3.2. Port configuration.

3.3.2. Port configuration

After starting for the first time you should check the configuration of the serial RS232 port you areusing. To do this select the corresponding COM Port.

For this you should press the “Set Environment”-button and select the used COM-Port.

Page 15: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 15 of 17 N21101-2e-ID-B.doc

3.3.3. Select target

Select „MB90F562/B“ as the target, i.e. CPU and select the “Crystal Frequency” of “4 MHz”.If you have selected a wrong CPU, an error messages will be displayed and the delete andprogramming routines will not function properly.

3.3.4. Load file

The file with the new firmware „xxxxxx.mhx“ is on the CD-ROM or can be obtain via e-mail from FEIGELECTRONIC GmbH.

Select the file using the “Open“-button. Valid files have the suffix “MHX“.

3.3.5. Programming Firmware

To start the programming process press “Full Operation(D+E+B+P)“.

When executing the function all the necessary steps are automatically carried out. You can alsoperform these steps individually if desired. Programming progress is displayed in a window. Ifprogramming was successful a message box appears:

After programming is complete, you must remove the jumpers and set the DIP-switch back to defaultposition. If the LEDs are flashing alternating after switching on the reader you have to switch off and onthe reader again.

Page 16: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 16 of 17 N21101-2e-ID-B.doc

3.4. Error Messages

No.001 Download error*1Cause:Downloading failedAction:Return the folder and file configurations to the installation defaults.

No.003 Timeout errorCause:The microcontroller does not respond. (Not changed to flash memory reprogramming mode)Action:Recheck the setting of pins used for reprogramming flash memory.

No.006COM port open errorCause:The COM port is disabled.Action:Enable the COM port.

No.007 Download file open errorCause:m_flash.xxxnot foundAction:Return the folder and file configurations to the installation defaults.

No.008 File size get errorCause:File access failedAction:Check whether the PC is unstable.

No.009 COM port setting information get errorCause:The COM port is disabled.Action:Enable the COM port.

No.010 COM port setting information change errorCause:The COM port is disabled.Action:Enable the COM port.

No.011 Communication errorCause:The microcontroller returned a communication error.Action:Re-execute the command or replace the chip.

No.012 Read errorCause:Data cannot be read from flash memory in the microcontroller.Action:Re-execute the command or replace the chip.

Page 17: ID ISC.M02-B...OBID i-scan® Application-Note ID ISC.M02-BFEIG ELECTRONIC GmbH Page 5 of 17 N21101-2e-ID-B.doc 2.1. Required components Required components ID ISC.M02 X-Modem capable

OBID i-scan® Application-Note ID ISC.M02-B

FEIG ELECTRONIC GmbH Page 17 of 17 N21101-2e-ID-B.doc

No.013 Write errorCause:Data cannot be programmed to flash memory in the microcontroller.Action:Re-execute the command again or replace the chip.

No.015 COM port write errorCause:The COM port is disabled.Action:Check the RS-232C cable connected to the COM port.

No.016 COM port read errorCause:The COM port is disabled.Action:Check the RS-232C cable connected to the COM port.

No.017 File access errorCause:m_flash.xxxnot readAction:Return the folder and file configurations to the installation defaults.

No.018 Erase error *1Cause:Erasing failedAction:Return the folder and file configurations to the installation defaults.

No.101 Set “hex file.”Cause:“Hex file”not setAction:Set “hex file”in the dialog box.

No.102 Batch command errorCause:An error occurred at batch command executionAction:Return the folder and file configurations to the installation defaults.

No.103 Invalid “hex file”Cause:The selected “hex file”is invalid.Action:Select the Motorola-S format file as the “hex file.”

No.207 Memory allocation errorCause:Unable to allocate memory for executionAction:Quit any running application and retry.