Kontron Bootstrap Loader User Manual

Bootstrap Loader
A software package for
on-site programming of FLASH devices
Manual Order Nr. 16878
User’s Manual
Index 0110
®
Bootstrap LoaderPreface

Revision History

Index Comment Date Initiator
0100 First Issue September,1997 acb 0110 Load/remove of OS-9 modules Jan. 1998 mf
This document contains proprietary information of PEP Modular Computers. It may not be copied or transmitted by any means, passed to others, or stored in any retrieval system or media, without the prior consent of PEP Modular Computers or its authorized agents.
The information in this document is, to the best of our kno wledge, entirely correct. However, PEP Modular Computers cannot accept liability for any inaccuracies, or the consequences thereof, nor for any liability arising from the use or application of any circuit, product, or example shown in this document.
PEP Modular Computers reserve the right to change, modify, or improve this document or the product described herein, as seen fit by PEP Modular Computers without further notice.
Bootstrap Loader Preface
Page 0- 2
© PEP Modular Computers
2/98

Table of Contents

Bootstrap LoaderTable Of Contents
Chapter
Introduction .............................................................................1
Chapter
Chapter
System Operation.....................................................................2
2.1 Startup...............................................................................................2
2.2 Entering the Command Mode...........................................................2
2.3 Preparing the Image.........................................................................3
2.4 Programming with Motorola S-Records...........................................3
2.5 Example using OS-9 development system.........................................3
2.6 Example using DOS..........................................................................4
2.7 Monitoring programming progress .................................................4
2.8 Programming from an Absolute Address..........................................5
2.9 BootWaitTime ...................................................................................5
2.10 ISaGRAF Start Flag..........................................................................6
2.11 Example using Hyperterminal from Windows 95 or Windows NT
1
1
2
®
®
............................................................................. 6
Chapter
OS-9 Module Support..............................................................9
3.1 General .............................................................................................9
3.2 Display OS-9 Modules......................................................................9
3.3 Removing OS-9 Modules .................................................................9
2/98 Page TOC- 1© PEP Modular Computers
3
Bootstrap Loader
3.4 Loading and Updating OS-9 Modules..............................................9
3.5 Example using OS-9 development system.......................................10
3.6 Example using Hyperterminal from Windows 95 or Windows NT
Table of Contents
®
®
...........................................................................10
Chapter
4
Command Reference ............................................................11
4.1 Boot Wait ........................................................................................11
4.2 Load Flash .....................................................................................11
4.3 Memory Display .............................................................................11
4.4 Port Format ...................................................................................12
4.5 ISaGRAF Start Flag .......................................................................12
4.6 Reset Systems .................................................................................13
4.7 Help ................................................................................................13
4.8 Load and Update Modules .............................................................13
4.9 List Modules ...................................................................................13
4.10 Remove Modules ............................................................................14
Appendices
Appendix A ISaGRAF applications on CM-302............................15
A.1 List Modules ............................................................................15
A.2 Remove Modules ......................................................................15
A.3 Load and Update Modules ......................................................15
Appendix B Utility 'genflash'...........................................................16
Appendix C Bootstrap Loader Start - 1 sec BREAK Signal ............16
Page TOC- 2 © PEP Modular Computers
2/98
Bootstrap Loader
BOOTSTRAP LOADER FOR VM 30, VM 162, VM 172, VM(6)62, VM(6)42, VSBC 32, IUC-32, (V)IUC, VSBC-4, SMART I/O AND SMART II (CM302)

1 Introduction

The Bootstrap Loader is a stand-alone software located in FLASH memory which allows the user to safely update the con­tents of the FLASH and delay the boot process for a specified time.
The Bootstrap Loader has the capability of pro gramming FLASH memory from “MOTOROLA S-R ECORDS” or from an absolute memory address. If the programmed image does not work, the Bootstrap Loader can be entered again. The mem­ory contents can be examined and ano ther programming cycle initiated.
The Bootstrap Loader is delivered already installed on PEP´s CPU boards equipped with FLASH devices. Please read this user manual before reprogramming any FLASH memory.
WARNING !
When programming FLASH memory, *NEVER* press the RESET button or switch off the main­power! This may damage the Bootstrap Loader and will consequently leave the board unusable due to corrupt FLASH contents.
However, the ABORT button may be used to cancel a running operation safely.
2/98 Page 1© PEP Modular Computers
Bootstrap Loader

2 System Operation

2.1 Startup

After system reset, the Bootstrap Loader is started. It searches the FLASH memory area for a valid start key. If this start key is found, the Bootstrap Loader checks the 'BootWaitTime' from serial EEPROM or R TC. If the entr y is valid, the co n­tinuation of the boot process is delayed by this time while flashing the green front panel LED to indicate that the system is alive but waiting for continuation. If the entry is not valid, a default of 5 seconds is used. After the BootWaitTime has passed, the program in FLASH is started.
The Bootstrap Loader has two modes of operation: non-interactive start mode as described abo ve and the interactive com­mand mode.
For normal board operation, only the non-interactive start mo de is used to start a program in FLASH. This is done auto­matically without any user interaction. The interactive command mode is used to re-program the FLASH memory contents or change the BootWaitTime.
The serial term port operates at 9600 Baud, 8 bits / character, 1 stop bit and no parity.

2.2 Entering the Command Mode

There are two possible cases: If no valid start key was found, the Bootstrap Loader's command mode is entered automatically
If the user wants to enter the Bootstrap Loader manually (e.g. for re-programming the FLASH contents) he must use the ABORT button on the front panel.
On CPUs without an ABORT button, the Bootstrap Loader will enter the command mode on detecting a BREAK character of at least one second length at the terminal connector.
The ABORT button must not be pushed until th e green LED appears, because this button ge nerates a NMI and the
Note:
exception vector tables must be initialized correctly to serve this NMI. Pressing the ABORT prior to the green LED leads to HALT in most cases. In this case, press the RESET button and try again.
The ABORT button must, however, be pushed before the green LED stops flashing (BootWaitTime), because system
Note:
control is passed to the downloaded binary image afterwards. The LED is cycled every 0.25 sec so if 1 second is specified as BootWaitTime, the LED will only flash 2 times.
CPUs without an user LED or without an ABORT button uses a BootWaitTime of at least 5 seconds.
Note:
CTRL-x deletes the complete input line while CTRL-a restores the last input line.
1)
.
1)
The start key is a special combination of data appended at the end of the load program or inside the load progr am itself.
Page 2
© PEP Modular Computers
2/98
Loading...
+ 16 hidden pages