Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Chapter X
IC Bootloader TOOLKIT
This manual was prepared with great care. The details and data in this document are regularly checked and updated
and are at any time subject to change without notice. Nevertheless, INTER CONTROL does not assume liability for the
correctness of the details/data in this document, since, despite great effort, mistakes cannot always be completely ruled
out. In addition, INTER CONTROL reserves the right to make at any time technical changes to the product, which can
also result in deviations from the contents of this document.
The document includes information that enjoys protection of copyright. No part of this publication may be reproduced
and/or translated into other languages without the prior written permission of INTER CONTROL.
Of course, any ideas and suggestions regarding amendments, or notes concerning mistakes in this document are
welcome. Please refer to INTER CONTROL.
INTER CONTROL
Hermann Koehler Elektrik GmbH & Co. KG
Schafhofstrae 30
D-90411 Nrnberg
Germany
Tel.:
Fax:
E-mail:
Internet:
X- IC Bootloader TOOLKIT
Manual
digsy
REVISION HISTORY
VERSION
1.0.0
1.0.1
DATE
04.08.03
10.01.12
Seite 2
DESCRIPTION
Document creation
Bootl. Toolkit3 added
X- IC Bootloader TOOLKIT
Manual
digsy
Contents
XVI. IC Bootloader TOOLKIT ..................................................................................................... 4
XVI.1 INTER CONTROL BOOTLOADER TOOLKIT PROGRAM ........................................ 4
XVI.1.1 ABSTRACT .......................................................................................................... 4
XVI.2 Introduction.................................................................................................................. 5
XVI.3 License Window .......................................................................................................... 6
XVI.4 Main Window ............................................................................................................... 7
XVI.4.1 Main Screen Buttons............................................................................................ 8
XVI.4.1.1 Login ................................................................................................................ 8
XVI.4.1.2 Logout ............................................................................................................ 10
XVI.4.2 Combo Boxes .................................................................................................... 10
XVI.4.2.1 Devices .......................................................................................................... 10
XVI.4.2.2 Com Ports ...................................................................................................... 10
XVI.4.3 Menu Items ........................................................................................................ 11
XVI.4.3.1 Download Menu............................................................................................. 11
XVI.4.3.2 Upload Menu ................................................................................................. 12
XVI.4.3.3 Erase Menu ................................................................................................... 13
XVI.4.3.4 Project Menu ................................................................................................. 14
XVI.4.3.5 Info Menu ....................................................................................................... 17
XVI.4.3.6 Help Menu ..................................................................................................... 18
XVI.5 Bootstrap window ...................................................................................................... 19
XVI.6 Bootloader ToolKit 2.x.x ............................................................................................ 21
XVI.6.1 Main Window ..................................................................................................... 22
XVI.6.2 Main Screen Buttons.......................................................................................... 23
XVI.6.2.1 Flashing ......................................................................................................... 23
XVI.6.2.2 Select File ...................................................................................................... 24
XVI.6.3 Combo Boxes .................................................................................................... 24
XVI.6.3.1 Product .......................................................................................................... 24
XVI.6.3.2 Com Port ....................................................................................................... 24
XVI.6.4 Menu Items ........................................................................................................ 25
XVI.6.4.1 File Menu ....................................................................................................... 25
XVI.6.4.2 Help Menu ..................................................................................................... 26
XVI.6.4.3 Functions Menu ............................................................................................. 27
XVI.7 Notes ......................................................................................................................... 29
Seite 3
X- IC Bootloader TOOLKIT
Manual
digsy
X. IC BOOTLOADER TOOLKIT
X.1 INTER CONTROL BOOTLOADER TOOLKIT PROGRAM
X.1.1
ABSTRACT
This manual describes how to use the InterControl Bootloader Tool Kit .This program is
compatible with the digsy family of products. This application interfaces with the digsy device
via the serial port and also an universal serial bus (USB) emulating a serial port. It is capable of
downloading, uploading, erasing device contents for e.g. application program, retain data,
firmware etc. to and from the flash memory of the device.
Seite 4
X- IC Bootloader TOOLKIT
Manual
digsy
X.2 Introduction
The IC Bootloader ToolKit3 follows the Bootloader ToolKit2 and has many added functionalities.
It is compatible with the digsycompact E, digsycompact R, digsycompact-Subunit I/O, digsyCGM,
digsyCMV range of products. All digsy devices use an Operating System (OS) developed by
Inter Control. During login, the Bootloader firmware is now loaded into a free RAM (Random
Access Memory) area of the device, the firmware is downloaded to the device only when
explicitly requested by the user. The user can also download the application program, retain
data, graphic data, mask blocks etc. as the case maybe. The user can also upload and erase
such area contents. A list of allowed operations for a particular digsy device is provided in an
initialization file (ini).
Before using this programme ensure that the digsy device and the computer are connected via
a serial interface using the desired serial port. Usually there are two serial ports present on the
computer namely COM1 and COM2. However this program can also communicate via a USB
(Universal Serial Bus) port emulating a serial port. The more recent computers come almost
exclusively with USB ports.
The terms device and digsy have been used interchangeably.
Seite 5
X- IC Bootloader TOOLKIT
Manual
digsy
The first time the user uses the application, a window appears asking the user to enter the
license number. The license number comprises of three fields. The full functionality of the
ICBootloaderToolkit 3 is available only on entering a valid license number. The user can
however download firmware and erase permitted blocks without a license.
HINT :
Seite 6
X- IC Bootloader TOOLKIT
Manual
digsy
Click to login
Click to logout
Exit application
HINT :
To use all the functionalities of this program, static firmware version has to be
minimum V2.x.x or higher. If a version lower than V2.x.x is read the older
Bootloader ToolKit program is started on receiving confirmation from the user.
The user can only download firmware, erase the application program and
retain data using the older Bootloader ToolKit.
Seite 7
X- IC Bootloader TOOLKIT
Manual
digsy
When Login is clicked, a message box pops up asking the user to reset the device. The user
should have already selected a com port and device. At this point the device should be reset.
The download process of the dynamic bootloader firmware should start, provided the current
firmware versions are valid. The static version read from the device is displayed in the
Versions group box under Static. This process involves writing the contents of the dynamic
bootloader firmware hex file to a free RAM area of the device.
In event of an error occuring relevant error messages are displayed.
HINT:
Apart from intel hex files ( .hex), bootloader project files ( .blp) are also used by
the application. Bootloader project files are used when operating on different
blocks at a time (see Project menu)
Seite 8
X- IC Bootloader TOOLKIT
Manual
digsy
The entire process of downloading the dynamic Bootloder firmware to the RAM lasts up to
approximately twenty seconds the version read from the device is now the dynamic version
displayed under Versions. If the dynamic Bootloader firmware is successfully downloaded, the
device goes into the online state.
The dynamic version is read from the device at regular intervals to determine if the device is
currently online. The indicator blinks as long as the device is online. The serial port used is
therefore not available to other applications.
The user can now download to, upload from and erase contents of permitted data blocks in the
device.
HINT:
When an operation is underway a Stop button is visible just above the progress
bar. The user can abort the process by simply clicking on it.
Seite 9
X- IC Bootloader TOOLKIT
Manual
digsy
X.4.1.2 Logout
When Logout is clicked, the currently used serial port is freed by the the program. The user has
to login again, to continue using the program options.
X.4.2
Combo Boxes
X.4.2.1 Devices
The Devices combo box displays the list of the digsy family of products supported by this
application. The user can choose the desired device from this list.
Seite 10
X- IC Bootloader TOOLKIT
X.4.3
Manual
digsy
Menu Items
HINT:
Before downloading any data to the device , existing device block contents
are erased. If downloading is halted midway, the memory block/s content
is/are invalid.
Seite 11
X- IC Bootloader TOOLKIT
Manual
digsy
HINT:
During the actual upload operation the contents are written to a temporary file
named after the current serial port used, e.g. temp_COM1.hex. Only on
successful completion of upload is this file renamed to the user defined file
name.
Seite 12
X- IC Bootloader TOOLKIT
Manual
digsy
HINT:
Once a memory block/s is erased, the relevant memory area becomes invalid
and its contents cannot be uploaded.
Seite 13
X- IC Bootloader TOOLKIT
Manual
digsy
HINT:
A bootloader project file (.blp) typically contains the name of device and the
options selected by the user (e.g. block 02 represents the retain data block/s,
see figure 1.9)
Seite 14
X- IC Bootloader TOOLKIT
Manual
digsy
Device blp file
compatibility status
Open bootloader
project file (.blp)
Once the user confirms an operation the project window is closed and the operation resumes in
the main window. Each operation can have one or multiple stages. The number of stages
depend on the memory blocks selected by the user. If an error occurs during a particular stage
of the operation the user is asked if the operation should be aborted, continued or the error
ignored. If the user chooses Abort, the entire operation is terminated, if he chooses Ignore, the
next stage of the operation is executed and if he chooses Retry, the particular stage which
returned the error is repeated (see figure 1.7).
Once the operation is complete a message reflecting the end status of the project is displayed
(see figure 1.8).
HINT:
Use the Project menu options to operate on more than one block at a time.
Seite 15
X- IC Bootloader TOOLKIT
Manual
digsy
HINT:
If for an enabled option the corresponding intel hex file does not exist, the intel
hex file name is displayed in red.
Device name
Memory block
number
Corresponding
hex file name for
memory block.
Seite 16
X- IC Bootloader TOOLKIT
Manual
digsy
Seite 17
X- IC Bootloader TOOLKIT
Manual
digsy
Seite 18
X- IC Bootloader TOOLKIT
X.5
Manual
digsy
Bootstrap window
The appropriate bootstrap intel hex file has to be selected by clicking on the
Select Bootstrap File button. The last used file name if available, is displayed.
When the user clicks Start a message box pops up asking the user to switch on the device in
the Bootstrap mode. If the device is not switched on in the correct mode, the operation fails.
Directly after the bootstrap program has been downloaded, the dynamic bootloader firmware is
downloaded to the device RAM. On successful completion the device is in the online state.
HINT:
It is important that the user change into the bootstrap mode. E.g. set the pin
ILDN to ground for digsyDCx / digsyDCx -Subunit I/O or position a jumper on
digsyCGM and digsyCMV.
The Download Bootloader button is now enabled. The user can select the relevant hex file and
proceed to download the bootloader firmware.
In event of an error occuring relevant error messages are displayed for all operations.
The bootloader firmware hex files are named as follows:
bl2_dcx_v21.hex
bl2_io_v21.hex
bl2_cgm.hex
bl2_cmv.hex
HINT:
All bootloader firmware, bootstrap hex files are located in the directory where
the program is installed.
Seite 19
X- IC Bootloader TOOLKIT
Manual
digsy
On completion, the user can exit this window and return to the main window.
The user can download, upload, erase as before after a normal Login.
This particular functionality is intended to be distributed only to selected users (see figure 1.13).
Click to select
bootstrap file.
Download
bootloader
Last used
bootstrap file
Click to start
downloading
bootstrap
program.
Exit window
Seite 20
X- IC Bootloader TOOLKIT
Manual
digsy
HINT:
The Bootloader ToolKit2 is meant for firmware versions below V2.x.x. The
program can download firmware and erase retain data and application
program.
HINT:
The users having firmware versions higher than V2.x.x can skip reading the
following sections.
Seite 21
X- IC Bootloader TOOLKIT
Manual
digsy
Select device to
use
Select desired
com port
Indicates percentage of
flashing completed
Displays user
selected hex file
name
Password protected
special features of the
Bootloader Kit for IC
use only
Exit application
Seite 22
X- IC Bootloader TOOLKIT
Manual
digsy
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, e.g. 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 (see figure 1.15), in case of error the result
will be displayed against a red background.
WARNING:
It is advisable that the user does not terminate the Flashing process during the
early stages.
Seite 23
X- IC Bootloader TOOLKIT
Manual
digsy
X.6.3
Combo Boxes
X.6.3.1 Product
The Product Combo Box displays the list of available products. The user can choose the device
from this list.
Seite 24
X- IC Bootloader TOOLKIT
X.6.4
Manual
digsy
Menu Items
Seite 25
X- IC Bootloader TOOLKIT
Manual
digsy
Seite 26
X- IC Bootloader TOOLKIT
Manual
digsy
HINT:
Erasing the APP will result in all user information and configurations being set
to default (e.g. the 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 figure 1.18).
HINT:
If the Erase Retain operation is successful both the retain blocks are erased
Seite 27
X- IC Bootloader TOOLKIT
Manual
digsy
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.
HINT:
Device
CGM
DCE
DCE-IO
Bootloader Version
V1.9
V1.3
V1.3
Firmware Version
V4.2.1
V6.1.11
V6.1.7
Table X.1 Bootloader and firmware versions for which Erase APP and Erase Retain are
applicable
Seite 28
X- IC Bootloader TOOLKIT
X.7 Notes
Seite 29
Manual
digsy