6 example using dos, 7 monitoring programming progress, Bootstrap loader – Kontron Bootstrap Loader User Manual

Page 10

Advertising
background image

Bootstrap Loader

Page 4

© PEP Modular Computers

2/98

Host:

xmode /t0 baud=38400 nopause
iniz /tO

Target:

pf ser0 38400
lf -u

Host:

binex -s3 -a=4000000 pbVM42 >/t0

2.6 Example using DOS

The host is assumed to be a PC with Windows, Windows95 or WindowsNT. A serial cable is used to connect the ser0 port
of the board to program to COM2 of the PC. Additionally, we assume that we want to program a Motorola S-record built
for address 0, e.g the VxWorks file bootrom.hex. The serial connection should run at 19200 Baud. The following steps
must be performed:

Host:

Under MSDOS, configure the COM 2 port to the correct parameters:

mode com2: baud=19200 parity=n data=8 stop=1

Target:

pf ser0 19200 lf -o=4000000

Host:

type bootrom.hex >com2:

2.7 Monitoring programming progress

In both examples, the programming can be monitored over the term port. The characters displayed have the following
meaning:

• r

Read S-record; valid and in range

• t

Protected sector touched

• e

Erase sector

• c

Copy to buffer, program later

• p

Program record

None of the above characters indicate an error. The first sector (which includes Reset SP / PC) and the last sector (which
includes the Bootstrap Loader itself) are protected. These sectors are not immediately programmed like the other sectors.
The contents of these protected sectors are buffered in RAM and programmed at the end of the operation. This is done to
limit the time the Bootstrap Loader itself is not in FLASH or not startable, because if the Bootstrap Loader crashes during
this critical period of time, it will not start again afterwards.

Advertising