Bootloadertoolkit
Bootloadertoolkit
Bootloadertoolkit
Chapter X
Bootloader TOOLKIT
Herausgegeben: 21.06.02
Speicherdatum: 21.06.02
Version: 1.0.0
Bearbeitung: N. Majumdar
Die Erstellung dieses Dokuments erfolgte mit größtmöglicher Sorgfalt. Die Angaben in diesem Dokument werden
regelmäßig auf Aktualität und Richtigkeit überprüft und können jederzeit ohne gesonderte Mitteilung geändert oder
ergänzt werden. Die Richtigkeit der Angaben in diesem Dokument kann gleichwohl nicht garantiert werden, da sich
Fehler trotz intensiver Bemühungen nicht immer vermeiden lassen. INTER CONTROL behält sich daneben technische
Änderungen am Produkt vor, die ebenfalls zu Abweichungen vom Inhalt dieses Dokuments führen können.
Das Dokument enthält Informationen, die durch Copyright geschützt sind. Vervielfältigen und/oder Übersetzen in andere
Sprachen ist ohne vorherige schriftliche Zustimmung von INTER CONTROL nicht zulässig.
Anregungen und Vorschläge zu Änderungen, bzw. Hinweise auf Fehler in diesem Dokument nehmen wir dankbar auf.
Bitte wenden Sie sich an INTER CONTROL.
INTER CONTROL
Hermann Köhler Elektrik GmbH & Co. KG
Schafhofstraße 30
D-90411 Nürnberg
Germany
Contents
X BOOTLOADER TOOLKIT
X.1 INTERCONTROL BOOTLOADER TOOLKIT PROGRAM
X.1.1 ABSTRACT
This article describes how to use the Bootloader Tool Kit.This program is compatible with the
® ®
digsy family of products. This programme interfaces with the digsy device via the serial port
® ®
and writes the digsy application program(APP)and the operating system(OS) to the digsy
device‘s flash memory. This Program is also capable of reading version,type of OS,APP from
®
the digsy device.
X.2 Introduction
®
All digsy devices use an Operating System(OS) developed by InterControl and an Application
Program (APP) usually created by the user. The OS provides the basic functionality of the
device like I/O (Input/Output) handling,communication routines for CAN(Controller Area
Network) , RS-232 interfaces etc. The APP fulfills the individual requirements of the user. Both
®
the OS and the APP reside in the Flash Memory of the digsy device and can be subjected to
updates.
The Bootloader Tool Kit application is used to download the contents of Intel Hexadecimal files
®
to the digsy device flash memory via a serial interface.
®
Before using this programme ensure that the digsy device and the computer are connected via
serial interface using the desired serial port. Usually there are two serial ports present on the
computer namely COM1 and COM2.
®
Once the application is started the serial port to which the digsy device is connected must be
chosen by the user in the application. If the application is not being used the first time the last
used serial port is automatically opened if not used by another application .
®
Writing to the flash memory is possible only when the computer and the digsy device are
correctly connected.
®
The terms device and digsy have been used interchangeably.
®
Select device Displays the digsy
to use Version
Displays user
selected hex Indicates percentage of
file name flashing completed
Password protected
Exit special features of the
application Bootloader Kit for IC
use only
X.3.1.1 Flashing
When ` Flashing ´ is clicked a message box pops up asking the user to reset the device, the
user should reset the device. At this point the flashing process should start provided the
versions are valid. This process involves writing the contents of the hex file to the flash
memory of the device.
An error message will popup if the file selected by the user is not compatible with the device.In
this situation the user should select a file suitable for the device. The files used by the
application are HEX-FILES.(File extension .hex )
HINT: The file name suitable for a particular device has the first three letters matching
with the device.If the device is CGM the corresponding file names will also
begin with CGM.eg.CGM1_311.hex or CGM1_304.hex.
The entire flashing process lasts approximately three minutes. After the flashing process is
completed the checksums are calculated and results displayed. If transmission is successful the
results are displayed against a green background,in case of error the result will be displayed
against a red background.See Fig 1.1.
WARNING: It is advisable that the user does not terminate the Flashing process during the
early stages.
X.3.2.1 Product
The Product Combo Box displays the list of available products. The user can choose the device
from this list.
The Com Port Combo Box lists the total number of available serial ports on the user‘s machine.
The user can choose the desired serial port from this list. Port selection will be successful if the
serial port is free i.e not used by another application. The last used serial port if free is
automatically opened at the start of the application. In this case if the download file is selected
the user can start flashing straightaway.
a)Erase APP- erases the contents of the application programme from the flash memory of the
device. The user is asked to reset the device and prompted for confirmation before the contents
are erased. See Fig 1.4
HINT: Erasing the APP will result in all user information and configurations being set
to default for e.gThe baudrate is set to 19200 when the device is restarted.
b)Erase Retain- erases the contents of the retain variables from the flash memory of the
device.Retain variables as the name suggests are those variables which retain their values
even when the device is switched off. The user is asked to reset the device and prompted for
confirmation before the contents are erased.
See Fig 1.4.
HINT: If the Erase Retain operation is successful both the retain blocks are erased.
HINT: The Erase APP and the Erase Retain functions are available only from Version
® ®
1.3 for digsy DCE /DCE-IO and Version 1.9 for digsy CGM.
1
2
3