®
OBID classic-pro APPLICATION-NOTE
ID CPR.M02 / ID CPR.02
Firmware Update
From Firmware Version 1.01 or higher
final
public (B)
2007-01-03
N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
Note
© Copyright 2003 by
FEIG ELECTRONIC GmbH
Lange Straße 4
D-35781 Weilburg-Waldhausen
Tel.: +49 6471 3109-0
http://www.feig.de
Edition: hg/07/01/03 - n30201-2e-id-b.doc
Copying of this document, and giving it to others and the use or communication of the contents thereof are
forbidden without express authority. Offenders are liable to the payment of damages. All rights are reserved in the
event of the grant of a patent or the registration of a utility model or design.
Indications made in this manual may be changed without previous notice. With the edition of this manual, all previous editions
become void.
Composition of the information in this manual has been done to the best of our knowledge. FEIG ELECTRONIC GmbH does
not guarantee the correctness and completeness of the details given in this manual and may not be held liable for damages
ensuing from incorrect or incomplete information. Since, despite all our efforts, errors may not be completely avoided, we are
always grateful for your useful tips.
The installation instructions given in this manual are based on advantageous boundary conditions. FEIG ELECTRONIC GmbH
does not give any guarantee promise for perfect function of an OBID®-system in cross surroundings.
FEIG ELECTRONIC GmbH assumes no responsibility for the use of any information contained in this manual and makes no
representation that they free of patent infringement. FEIG ELECTRONIC GmbH does not convey any license under its patent
rights nor the rights of others.
OBID® is a registered trademark of FEIG ELECTRONIC GmbH
OBID i-scan® is a registered trademark of FEIG ELECTRONIC GmbH
Windows® is a registered trademark of Microsoft Corporation
FEIG ELECTRONIC GmbH Page 2 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
Content
1. Introduction ....................................................................................................................................... 4
2. Programming of the Firmware using Terminal-Program „Hyper Terminal“................................ 4
2.1. Required components................................................................................................................ 5
2.2. Hardware preparation ID CPR.M02 ........................................................................................... 6
2.3. Hardware connection ID CPR.02 ............................................................................................... 7
2.4. „Hyper Terminal“ ........................................................................................................................ 8
2.4.1. Start Software-Flash-Loader .................................................................................................. 8
2.4.2. Start and configuration of the „Hyper Terminal“. .................................................................... 8
2.4.3. Programming of the Firmware .............................................................................................. 10
2.4.4. Firmware VERIFY and RESET............................................................................................. 12
3. Programming with the Hardware-Flash-Loader (FUJITSU FLASH MCU Programmer)............... 13
3.1. Needed components ................................................................................................................ 13
3.2. Hardware connection ID CPR.M02 .......................................................................................... 14
3.3. Hardware connection ID CPR.02 ............................................................................................. 15
3.4. Programming the Software-Flash-Loaders with „FUJITSU FLASH MCU Programmer“. .......... 16
3.4.1. Start „FUJITSU FLASH MCU Programmer“ with „flash.exe“................................................... 16
3.4.2. Port configuration .................................................................................................................. 16
3.4.3. Select target ......................................................................................................................... 17
3.4.4. Load file................................................................................................................................ 17
3.4.5. Programming Firmware ........................................................................................................ 18
3.5. Error Messages......................................................................................................................... 19
FEIG ELECTRONIC GmbH Page 3 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
1. Introduction
The firmware of the ID CPR.M02 and ID CPR.02 his stored in a flash memory chip. This allows you to
perform firmware updates 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. We
recommend the terminal program “Hyper Terminal”, which already exist in a Windows operating
system. 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) you can use
a terminal program to perform a firmware update.
• The easiest way to perform an firmware update is to use the “OBIDFirmwareUpdateTool”.
The tool is available on the download area. The description can be found in the manual
“N30300-xe-ID-B.pdf”
2. Programming of the Firmware using Terminal-Program „Hyper Terminal“
The software flash-loader can be started e.g. by using the demo program “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 be
started to perform the firmware update.
FEIG ELECTRONIC GmbH Page 4 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
2.1. Required components
Required ID CPR.02.VP/AB-
ID CPR.M02 ID CPR.02.P/A-A ID CPR.02.P/A-B
components ATS
X-Modem capable
Terminal Program X X X X
(e.g. Hyper Terminal)
RS232-TTL converter
1962.000.00
e.g. model 232LPTTL X - - -
B&B Electronic Ltd
(www.bb-europe.com)
Optional: RS232 / 485
converter
1687.000.00
e.g.. Model 845SD9R
- - X -
B&B Electronic Ltd
(www.bb-europe.com)
5V DC Powersuppply
ID Net.5V X - - -
1689.000.00
12V DC Powersupply
ID NET.12V-B - - - (X)
1688.001.00
Connecting cable
ID CAB.RS-A
1690.000.00
X - - -
or self-made
Adapter cable
X
self made
ID CPR.02.P/A-A/-B
ID CPR.02.VP/AB-ATS
ID CPR.M02.VP/AB-B-B/-BA
FEIG ELECTRONIC GmbH Page 5 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
2.2. Hardware preparation ID CPR.M02
1. Switch OFF the power supply of the Readers ID CPR.M02.
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 to use
the connection cable (see picture).
4. Switch on the power supply
Powersupply
connector
in
in
9P
9P
in
in
9P
9P
tor
tor
tor
tor
ec
ec
ec
ec
nn
nn
nn
nn
co
co
co
co
ale
ale
le
le
fem
fem
ma
ma
1 1
2 RD 2
3 TD 3
PC
4 4 RS232
5 Ground 5 to
6 6
7 RTS 7 TTL
8 CTS 8
9 9
Connecting cable
Four-Channel RS-232 ID CAB.RS-A
to 1690.000.00
TTL/CMOS Converter
B&B Model 232LPTTL
in
9P
Pin
r9
r
cto
cto
e
nn
ne
co
on
ale
c
le
Adapter cable
fe m
V1 V2
ma
X4
X1
C405
J1
C315
X3
FEIG ELECTRONIC GmbH Page 6 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
2.3. Hardware connection ID CPR.02
1. Switch OFF the power supply of the ID CPR.02.
2. Connect the RS232 port with the PC.
In case of the Readers ID CPR.02.P/A-B with a RS485 interface a RS232 / 485 converter can be
used (e.g.: B&B, Model 485SDR9R)
3. Switch ON the power supply.
4. Follow the instruction in chapter: 2. Programming of the Firmware using Terminal-Program „Hyper
Terminal“
FEIG ELECTRONIC GmbH Page 7 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
2.4. „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. Further
information’s you will find in the description of the Windows operating system.
2.4.1. Start Software-Flash-Loader
To start the software flash loader in the
Reader, 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 in the
reader (Defauld:“0“). In the case of using the Bus-Address „255“ the
error message: “ Errorcode:...-1038“ appears and the Software
Flashloader will not start!
After confirming with „OK“, you must quit the demo program “ID ISOStart“.
2.4.2. Start and configuration of the „Hyper Terminal“.
1. Start the „Hyper-Terminal“ Program from the “Start” menu “Programs / Accessories /
Communication”.
FEIG ELECTRONIC GmbH Page 8 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
Create a new connection, give a name (e.g. Update ID
CPR.M02) and choose a symbol for the connection.
If there already exist a configuration you can press
“close” and open the existing configuration file using
the „Hyper Terminal“ Menu „File / Öpen“.
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: None
FEIG ELECTRONIC GmbH Page 9 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
If the message: „Unable to open COM1......“,
appears after pressing the “OK”-button, there is
possibly a different program active, which uses
the COM-Port. Please check if the
demoprogram ID ISOStart is still running and
complete it if necessary.
2.4.3. Programming of the Firmware
To check the connection please press the Return-button once.
Now the prompt „Bootloader“ with the current firmware version
should appears.
Beside the prompt you have to write: „FLASHALL“, in
capital letters.
• After sending the command „FLASHALL“ it is not
allowed to interrupt the power supply of the
reader”!
This will be receipted with the response „ERASE WAIT“.
After a few seconds you will be requested by the
message „Start DOWNLOAD“ to send the new firmware-
mhx-file to the reader.
To do this you have about 2
minutes time. In this period of
time every 5 seconds the signs
„C“ resp. „§“ will appear. If you
don’t send a mhx-file to the reader during this period of time, the error message „ERROR 1“ will
appear. 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”.
FEIG ELECTRONIC GmbH Page 10 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
Ensure that the protocol is selected as
“Xmodem” and choose the new firmware.mhx
file. Press the “Send” button.
The following programming procedure will be
displayed in a window. This will take a few
seconds.
The successful programming procedure will be answered
with an “OK”.
FEIG ELECTRONIC GmbH Page 11 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
2.4.4. Firmware VERIFY and RESET
To ensure that there was no error while the programming
procedure you can compare the programmed firmware with
the original mhx-file using the command “VERIFY”.
Please write the command “VERIFY” beside the prompt and
choose again the mhx-file by press the “Send” button.
Was the process also confirmed with "OK" you can perform a
CPU Reset by using the command “RESET”.
If the LEDs are flashing alternating after a Reset you have to
switch off and on the reader again. Now only the green LED
should flashing.
Now the programming of the new firmware is finished. Please
complete the Hyper Terminal and check the reader functions
using the demoprogram ID ISOStart.
FEIG ELECTRONIC GmbH Page 12 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
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 the
hardware flash loader you have to fit some jumpers. Follow the instruction in chapter 3.2. Hardware
connection ID CPR.M02 resp. 3.3. Hardware connection ID CPR.02.
3.1. Needed components
ID
Needed components ID CPR.M02 ID CPR.02.P/A-A ID CPR.02.P/A-B CPR.02.VP/AB-
ATS
Program:
FUJITSU FLASH MCU X X X X
Programmer
RS232-TTL converter
1962.000.00
e.g. Model 232LPTTL X X X X
B&B Electronic Ltd
(www.bb-europe.com)
ID CAB.RS-B Cable
1690.001.00
- X X X
Connecting cable
ID CAB.RS-A
1690.000.00
X - - -
or self made
Power supply
ID Net.5V X X X X
1689.000.00
Adapter cable
X
self made
FEIG ELECTRONIC GmbH Page 13 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
3.2. Hardware connection ID CPR.M02
1. Switch off the reader.
2. Connect the reader to a PC as it is described in chapter : 2.2. Hardware preparation ID CPR.M02
3. The jumper J1 must be changed from position 1-2 to position 2-3.
4. Switch on the reader and follow the description in chapter : 3.4. Programming the Software-Flash-
Loaders with „FUJITSU FLASH MCU Programmer“. .
J1
Start Hardware
3
Flash Loader
2
V1 V2
X4
X1
C405
J1
C315
X3
FEIG ELECTRONIC GmbH Page 14 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
3.3. Hardware connection ID CPR.02
1. Switch off the power supply and open the case, see the correspond mounting instruction
2. The reader of the CPR-family has to be connected as you can see in the following drawing.
3. The jumpers J1 and J2 must be fitted.
4. Set the DIP-switches 1 and 2 to „ON“ position.
5. Switch on the reader and follow the description in chapter : 3.4. Programming the Software-Flash-
Loaders with „FUJITSU FLASH MCU Programmer“. .
6. After the successful update you have to remove the jumpers and bring the DIP switches into default
position.
FEIG ELECTRONIC GmbH Page 15 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
3.4. 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 the
folder „FMC16LX“. No operational firmware is necessary in the flash memory for using the hardware
flash loader. You can quit the hardware flash loader by turning off the Reader or doing a rest without
any loss of memory in the flash chip before the firmware has been erased using “ flash.exe ”.
3.4.1. Start „FUJITSU FLASH MCU Programmer“ with „flash.exe“
Turn the Reader off and set the jumpers as described in Section 3.2. Hardware connection ID
CPR.M02 or 3.3. Hardware connection ID CPR.02
Turn 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.4.2. Port configuration.
3.4.2. Port configuration
After starting for the first time you should check the configuration of the serial RS232 port you are
using. To do this select the corresponding COM Port.
For this you should press the “Set Environment”-
button and select the used COM-Port.
FEIG ELECTRONIC GmbH Page 16 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
3.4.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 and
programming routines will not function properly.
Note:
For the new reader type ID CPR.M02-VP/AB-C /-CA a „Crystal Frequency from „3,68 Mhz“ must
be used.
If this frequency is not available a new "CHIPDEF.INI" file can be stored in the folder of the Fujitsu tool.
For that please contact [email protected].
The settings in the "CHIPDEF.INI" file can be also modified manually by using the Windows Editor.
Please change the entries below the [MB90F562/B] as shown below:
[MB90F562/B]
DownloadFile=m_flash.562
LoadAddress=0x190
StartAddress=0xFF0000
EndAddress=0xFFFFFF
FlashSize=0x10000
Clock=3.68MHz,4MHz,8MHz,16MHz
Baud=4430,4800,9600,19200
3.4.4. Load file
The file with the new firmware „xxxxxx.mhx“ is on the CD-ROM or can be obtain via e-mail from FEIG
ELECTRONIC GmbH.
Select the file using the “Open“-button. Valid files have the suffix “MHX“.
FEIG ELECTRONIC GmbH Page 17 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
3.4.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 also
perform these steps individually if desired. Programming progress is displayed in a window. If
programming was successful a message box appears:
After programming is complete, you must remove the jumpers and set the DIP-switch back to default
position. If the LEDs are flashing alternating after switching on the reader you have to switch off and on
the reader again.
FEIG ELECTRONIC GmbH Page 18 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
3.5. Error Messages
No.001 Download error*1
Cause:Downloading failed
Action:Return the folder and file configurations to the installation defaults.
No.003 Timeout error
Cause: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 error
Cause:The COM port is disabled.
Action:Enable the COM port.
No.007 Download file open error
Cause:m_flash.xxxnot found
Action:Return the folder and file configurations to the installation defaults.
No.008 File size get error
Cause:File access failed
Action:Check whether the PC is unstable.
No.009 COM port setting information get error
Cause:The COM port is disabled.
Action:Enable the COM port.
No.010 COM port setting information change error
Cause:The COM port is disabled.
Action:Enable the COM port.
No.011 Communication error
Cause:The microcontroller returned a communication error.
Action:Re-execute the command or replace the chip.
No.012 Read error
Cause:Data cannot be read from flash memory in the microcontroller.
Action:Re-execute the command or replace the chip.
FEIG ELECTRONIC GmbH Page 19 of 20 N30201-2e-ID-B.doc
OBID® classic-pro Application-Note ID CPR.M02 /CPR.02
No.013 Write error
Cause: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 error
Cause:The COM port is disabled.
Action:Check the RS-232C cable connected to the COM port.
No.016 COM port read error
Cause:The COM port is disabled.
Action:Check the RS-232C cable connected to the COM port.
No.017 File access error
Cause:m_flash.xxxnot read
Action:Return the folder and file configurations to the installation defaults.
No.018 Erase error *1
Cause:Erasing failed
Action:Return the folder and file configurations to the installation defaults.
No.101 Set “hex file.”
Cause:“Hex file”not set
Action:Set “hex file”in the dialog box.
No.102 Batch command error
Cause:An error occurred at batch command execution
Action: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 error
Cause:Unable to allocate memory for execution
Action:Quit any running application and retry.
FEIG ELECTRONIC GmbH Page 20 of 20 N30201-2e-ID-B.doc