3551 Flash Software
3551 Flash Software
3551 Flash Software
Postfach 1166
D 24100 Kiel
Germany
Tel +494 3130 190
Fax +494 3130 19501
Email [email protected]
www.raytheonanschuetz.de
Updating software
in in microprocessors
with internal Flash memory
Operator Manual
Toute communication ou reproduction de ce document, toute Sin nuestra expresa autorizacin, queda terminantemente prohibida la
exploitation ou communication de son contenu sont interdites, sauf reproduccin total o parcial de este documento, as como su uso
autorisation expresse. Tout manquement cette rgle est illicite et indebido y/o su exhibicin o comunicacin a terceros. De los infractores
expose son auteur au versement de dommages et intrts. se exigir el correspondiente resarcimiento de daos y perjuicios.
Updating software
in microcontrollers Service Tools
Flashing
with internal Flash memory
2 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1 Device and software required . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 Reference: Controller type / device and device / controller type . . . . . . . . . 5
3 Preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.1 Installing the tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Installation notes for the tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.1 Siemens Memtool (V 2.1.2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.2 Infineon Memtool (V 3.0.9) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2.3 ST10 Memtool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2.4 Fujitsu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4 Flash procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.2 Flashing type Siemens (CA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2.1 Preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2.1.1 Preparatory action on the PC/laptop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2.1.2 Flash procedure preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.2 Flashing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.3 Flashing type Siemens (CB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.3.1 Preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.3.1.1 Preparatory action on the PC/laptop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.3.1.2 Flash procedure preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.3.2 Flashing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.4 Flashing type Siemens (AE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.4.1 Preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.4.1.1 Preparatory action on the PC/laptop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.4.1.2 Flash procedure preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.4.2 Flashing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.5 Flashing type Siemens CR16F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4.5.1 Preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4.5.1.1 Preparatory action on the PC/laptop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4.5.1.2 Flash procedure preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
4.5.2 Flashing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.6 Flashing Type Siemens (AC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.7 Flashing type Siemens ST10F 167 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.7.1 Preparatory action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.7.1.1 Preparatory action on the PC/laptop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Use the hyperlinks in the overview below to jump to the flash procedure concerned.
Siemens/Infinion (AC)
2 General Information
The instructions that follow explain the procedure for updating the software in
microcontrollers with integral flash memory.
Each of the controllers stated below is mounted on a PCB containing a SUBD 9pin
plug connector. In order to flash a controller of this type, the relevant device must be
open, the programming adapter connected and the relevant device switched on.
Please see the flash procedures for further details and any special features regarding
the devices.
In order to update software, the following devices and software are required:
PC or Laptop with serial interface (SUBD, 9 pin).
Programming adapter type 146006 (see figure 1).
Floppy disc or other data medium containing the HEX file for transfer.
CDROM containing:
PROG0047 EXX programming tool (XX = version number).
Microprocessor manufacturer tools needed to update the microcontroller.
Manual entitled Updating software in microcontrollers with internal
Flash memory
9pin SubD
9pin SubD
Push button Toggle switch
3 Preparatory action
Besides the manual, the CD supplied also contains the necessary tools for updating the
various microcontrollers (for the relevant manufacturer).
We recommend that you copy these tools on to the hard drive (C:) of the Laptop or PC.
The tools for the various manufacturers can be started from the hard drive.
3.2.4 Fujitsu
Copy the entire folder, complete with its subdirectories, onto the local hard drive.
You may give the folder a name of your choosing.
Start the EXEFile program from this folder and the Memtool will run.
4 Flash procedures
The device into which the microcontroller memory for update is installed must be
switched on, must be in operational status, and must not be operating while the flash
procedure is taking place.
We recommend that you disconnect all connections to connected consumers. You can
reestablish these connections after flashing has taken place.
After the flash procedure has taken place the device in which the microprocessor
is installed should be switched off, and then switched on again after a period of
approximately 2 minutes. This ensures that the instrument itself and the connected
consumers are set to the specified status.
See the relevant sections for any exceptions and special cases for each device.
Open the SiemensOnChip Memory Programming tool, version 3.0.9 software tool.
Check briefly (using figure 2 as a guide) that you have selected the correct tool for the
microcontroller you wish to flash.
Check the default settings shown in figure 4 by selecting DEVICE SETUP ...
Connect the two cables equipped with subD plugs on the programming device as
indicated on the label, between the PC serial port and the programming socket
(plug) on the PCB.
Switch on the target device.
Set the switch on the programming adapter to the PROG position.
Set the switch on the programming adapter to the Siemens position.
Press the RESET key on the programming adapter.
Check that the LED on the programming adapter is illuminated.
(Voltage supply for the programming adapter comes from the target device).
Figure 7 Display once the connection has been made between the target device and
the PC/laptop via the programming adapter
Figure 7 shows the contents of the FlashPROM on the target device (righthand
window).
4.2.2 Flashing
Click on the OPEN FILE button (see figure 8) to open a window from which the file
for transfer can be selected.
The file for transfer must be flagged as a HEX file (*.h86).
This download file is transferred into the lefthand window of the programming tool by
clicking on Open (see figure 9).
Click on the SELECT ALL button (see figure 10) to select all the files in the lefthand
window. In the next stage, only the files selected will be transferred to the target
device.
Click on the ADD SEL button to transfer the data selected into the righthand
window and display it at the position where it is to be imported.
Click on the PROGRAM button (see figure 10) to save the new HEX file into the flash
PROM of the target device.
The presettings specify which of the following functions will be carried during the
import procedure:
Delete the old contents
Write the new contents
Verify the data transfer
Open the SiemensOnChip Memory Programming Tool, version 2.1.2 software tool.
Check briefly (using figure 13 as a guide) that you have selected the appropriate tool
for the microcontroller you wish to flash.
Connect the two cables equipped with subD plugs on the programming device
as indicated on the label, between the PC serial port and the programming socket
(plug) on the PCB.
Switch on the target device.
Set the switch on the programming adapter to the PROG position.
Set the switch on the programming adapter to the Siemens position.
Press the RESET key on the programming adapter.
Check that the LED on the programming adapter is illuminated.
(Voltage supply for the programming adapter comes from the target device).
Figure 17 Display once the connection has been made between the target device and
the PC/laptop via the programming adapter
4.3.2 Flashing
Click on the OPEN FILE button (see figure 20) to open a window from which the file
for transfer can be selected.
The file for transfer must be flagged as a HEX file (*.h86).
Click on the Open button to transfer this file into the lefthand window of the
programming tool (see figure 20.
Click on the SELECT ALL button (see figure 21) to select all the files in the lefthand
window. In the next stage, only the files selected will be transferred to the target
device.
Click on the ADD button to transfer the data selected into the righthand window
and display it at the position where it is to be imported.
Click on the PROGRAM button (see figure 21) to save the new HEX file into the flash
PROM of the target device.
Figure 22 shows the display after a successful transfer into the Flash memory.
The word Ready is displayed.
Open the SiemensOnChip Memory Programming Tool, version 2.1.2 software tool.
Check briefly (using figure 23 as a guide) that you have selected the appropriate tool
for the microcontroller you wish to flash.
Connect the two cables equipped with subD plugs on the programming device
as indicated on the label, between the PC serial port and the programming socket
(plug) on the PCB.
Switch on the target device.
Set the switch on the programming adapter to the PROG position.
Set the switch on the programming adapter to the Siemens position.
Press the RESET key on the programming adapter.
Check that the LED on the programming adapter is illuminated.
(Voltage supply for the programming adapter comes from the target device).
Figure 27 Display once the connection has been made between the target device
and the PC/laptop via the programming adapter
4.4.2 Flashing
Click on the OPEN FILE button (see figure 30) to open a window from which the file
for transfer can be selected.
The file for transfer must be flagged as a HEX file (*.h86).
Click on the Open button to transfer this file into the lefthand window of the
programming tool (see figure 30).
Click on the SELECT ALL button (see figure 31) to select all the files in the lefthand
window. In the next stage, only the files selected will be transferred to the target
device.
Click on the ADD button to transfer the data selected into the righthand window
and display it at the position where it is to be imported.
Click on the PROGRAM button (see figure 31) to save the new HEX file into the
Flash PROM of the target device.
Figure 32 shows the display after a successful transfer into the Flash memory:
The word Ready is displayed.
Open the SiemensOnChip Memory Programming Tool, version 2.1.2 software tool.
Check briefly (using figure 33 as a guide) that you have selected the appropriate tool
for the microcontroller you wish to flash.
Do not ever place a tick in the REMAP box (see figure 35)!!
Confirm the settings with OK.
Connect the two cables equipped with subD plugs on the programming device
as indicated on the label, between the PC serial port and the programming socket
(plug) on the PCB.
Switch on the target device.
Set the switch on the programming adapter to the PROG position.
Set the switch on the programming adapter to the Siemens position.
Press the RESET key on the programming adapter.
Check that the LED on the programming adapter is illuminated.
(Voltage supply for the programming adapter comes from the target device).
Figure 37 Display once the connection has been made between the target device
and the PC/laptop via the programming adapter
4.5.2 Flashing
Click on the OPEN FILE button (see figure 40) to open a window from which the file
for transfer can be selected.
The file for transfer must be flagged as a HEX file (*.h86).
Click on the Open button to transfer this file into the lefthand window of the
programming tool (see figure 40).
Click on the SELECT ALL button (see figure 41) to select all the files in the lefthand
window. In the next stage, only the files selected will be transferred to the target
device.
Click on the ADD button to transfer the data selected into the righthand window
and display it at the position where it is to be imported.
Click on the PROGRAM button (see figure 41) to save the new HEX file into the
Flash PROM of the target device.
Figure 42 shows the display after a successful transfer into the Flash memory:
The word Ready is displayed.
Open the SiemensOnChip Memory Programming Tool, version 2.1.2 software tool.
Check briefly (using figure 43 as a guide) that you have selected the appropriate tool
for the microcontroller you wish to flash.
Connect the two cables equipped with subD plugs on the programming device
as indicated on the label, between the PC serial port and the programming socket
(plug) on the PCB.
Switch on the target device.
Set the switch on the programming adapter to the PROG position.
Set the switch on the programming adapter to the Siemens position.
Press the RESET key on the programming adapter.
Check that the LED on the programming adapter is illuminated.
(Voltage supply for the programming adapter comes via the target device).
Figure 47 Display once the connection has been made between the target device
and the PC/laptop via the programming adapter
4.7.2 Flashing
Click on the OPEN FILE button (see figure 50) to open a window from which the file
for transfer can be selected.
The file for transfer must be flagged as a HEX file (*.h86).
Click on the Open button to transfer this file into the lefthand window of the
programming tool (see figure 50).
Click on the SELECT ALL button (see figure 51) to select all the files in the lefthand
window. In the next stage, only the files selected will be transferred to the target
device.
Click on the ADD button to transfer the data selected into the righthand window
and display it at the position where it is to be imported.
Click on the PROGRAM button (see figure 51) to save the new HEX file into the
Flash PROM of the target device.
Figure 52 shows the display after a successful transfer into the Flash memory:
The word Ready is displayed.
Click on the OK (figure 53) and the display shown in figure 54will appear on your
PC/laptop.
Connect the two cables equipped with subD plugs on the programming device
as indicated on the label, between the PC serial port and the programming socket
(plug) on the PCB.
Switch on the target device.
Set the switch on the programming adapter to the PROG position.
Set the switch on the programming adapter to the Siemens position.
Press the RESET key on the programming adapter.
Check that the LED on the programming adapter is illuminated.
The voltage supply for the programming adapter comes from the target device.
Click on the Reload Monitor button on the PC/laptop display unit.
If the target device is connected to the PC/laptop via the programming adapter
the Monitor = OK LED is illuminated (see figure 55).
Select the port and the data transfer rate (BAUD rate) from the Connect and
Serial Port menu (see figure 56). After you have made the port setting make
sure that the COM... LED is illuminated green.
To delete the Flash PROM memory you can tick the Automatic Erase check box
(see figure 56) or you can delete the various sections in the Flash PROM individually
by clicking on the Erase Flash button (figure 57).
To select the HEX files you wish to transfer, click on the Select Hexfile button
(see figure 58).
Once the HEX file has loaded, you need to press the Program verify button.
Once the data has transferred you should see a message as shown in figure 59.
Old memory in
Flash PROM deleted.
Program transferred
and verified.
Please note: This type of Flash program is compatible to all lower versions.
Once it has been opened, the following message will appear on the PC/laptop display
unit.
This message states that the target device is not connected or has not yet been reset.
Figure 62 Window for flashing (target device not connected and not been reset)
In general:
After performing the connection to the programming adapter or, if the programming
adapter has been connected before starting the flash program, following window is
displayed:
type of processor
frequency
The type of processor and the frequency are automatically recognized (see figure 64).
To set the COM port and the Baud rate, the button Set Port has to be operated (see
figure 65).
After adjustment of COM port and Baud rate operate the button Apply (see figure 65),
after that, information of the adjusted parameters are displayed (see figure 66).
By operating the button File to program, the window to load the new software is
displayed (Figure 67).
Select data carrier and/or file and mark the respective file. The file must have a suffix
with *.h86 (figure 68)
Operate button OK and the window with information about the new software is
displayed (figure 69).
By operating the button Erase Flash (figure 69) the window to erase the memory of
the target device is displayed.
Connect the two cables equipped with subD plugs on the programming device
as indicated on the label, between the PC serial port and the programming socket
(plug) on the PCB.
Switch on the target device.
Set the switch on the programming adapter to the PROG position.
Set the switch on the programming adapter to the Fujitsu position.
Press the RESET key on the programming adapter.
Check that the LED on the programming adapter is illuminated.
The voltage supply for the programming adapter comes from the target device.
Click on the Download button (to activate the connection between the target
device and the PC/laptop).
Figure 73: Window after the connection has been made between the programming
adapter and the target device
From the Speed pulldown menu, set a quartz frequency of 4MHz (see figure 75).
You need to set the port selected for this PC/laptop from a pulldown menu
(see figure 76).
If you click on the Search button a window appears from which you can select the
download file for transfer (see figure 77).
The download file is then displayed in the oneline list field (see figure 78).
The flash procedure can be started by clicking on the Auto button. This automatically
deletes the contents of the Flash PROM and imports the new program (while verifying
that it has been correctly transferred) (see figure 79 Auto button and figure 80
Flash procedure).
Another way of importing the HEX file into the Flash PROM is first to delete the old
memory using the Erase button, then to check the delete procedure by clicking on
the Blank Check button, and then to import the file and verify that it has transferred
correctly by clicking on the Write + Verify button (see figure 79).
Connect the device to flash to the PC/laptop. Both devices should not be
switched ON while connecting. Plug COM1 or COM 2 at the PC/laptop.
Set or remove jumpers (if necessary), see respective manual to the device to flash.
Switch ON PC/Laptop and the device to flash.
Start Flashprogram (see figure 82).
After starting the Flashprogram below mentioned window is displayed (figure 83):
Figure 83: StartDisplay of the flashprogram (with pulldown menu to select type
of microcontroller)
The new software must have a suffix with .mhxBy operating ffnen
(see figure 85), the file to load can be selected.
By operating the button Full operation (see figure 86) the procedure starts to flash.
After a successful flash procedure following window is displayed (see figure 89).
After the flash procedure is completed, the jumpers have to be set or removed for
normal operation, the device to flash must be resettet and the connection between
device and PC/laptop must be removed.
Connect the device to flash to the PC/laptop. Both devices should not be
switched ON while connecting. Plug COM1 or COM 2 at the PC/laptop.
Set or remove jumpers (if necessary), see respective manual to the device to flash.
Switch ON PC/Laptop and the device to flash.
Start Flashprogram (see figure 90).
After starting the Flashprogram below mentioned window is displayed (figure 91):
Figure 91: StartDisplay of the flashprogram (with pulldown menu to select type
of microcontroller)
The new software must have a suffix with .mhxBy operating ffnen
(see figure 93), the file to load can be selected.
By operating the button Full operation (see figure 94) the procedure starts to flash.
After a successful flash procedure following window is displayed (see figure 89).
After the flash procedure is completed, the jumpers have to be set or removed for
normal operation, the device to flash must be resettet and the connection between
device and PC/laptop must be removed.
Plug connector
programming
adapter
RESET
Sensor PCB
Figure 100:Layout of plug connector and RESET key on the sensor PCB
Installation:
Although the flasher software has been checked for viruses, we strongly recommend
that you run your virus scanner prior to the installation to keep your system virus
free.
Close all running programs on your PC/Laptop.
If you want to keep a previously installed version you can install this version in
parallel.
You may remove a previous version of the tool in the control panel (add/remove
program).
Install STUtility running setup.exe and follow the onscreen instructions.
Important:
Setup errors may occur if an application is using msvcp60.dll, kernel32.dll or msvcrt.dll.
In that case, choose ignore: there will be no adverse effect on the application.
Usage:
Reset the application before starting ST10 utility.exe to enter Bootstrap Loader Mode.
If the ST10 cannot be contacted on bootstrap loader mode, the message Reset your
board to bootstrap loader mode and press RELOAD appears.
In this case:
Click Get Status to get the flash tool status. If an error occurred, it returns the last
error message.
When loading the monitor, the tool performs an autodevice detection. The device
then displays in the interface indicating that you are connected to ST10F168, for
example.
If the monitor loading was not successful, the following message will appear in the flash
type window:
ChipAutoDetection
Some baud rates cannot be set for some CPU frequencies because of the RS232
deviation between the baud rate register loaded in the Flash and the target baud rate.
TEST COM
This function is used to test the serial communication. It merely sends a byte 0x0 and
checks the response of the ST10.