3 preparing the image, 4 programming with motorola s-records, 5 example using os-9 development system – Kontron Bootstrap Loader User Manual

Page 9: Bootstrap loader

Advertising
background image

Bootstrap Loader

2/98

Page 3

© PEP Modular Computers

2.3 Preparing the Image

The image must be compiled / linked to run from the FLASH base address of the CPU. The image must start with the Re-
setSP / ResetPC vectors as usual for ROM / FLASH images on 68000 processor boards.

A binary image must be converted to Motorola S-records or loaded to a VME memory board with battery-backup, FLASH
or EPROM population.

2.4 Programming with Motorola S-Records

Programming is done with the If command.

The If command accepts S1, S2 and S3 records. Operation is terminated by the appropriate S9, S8 or S7 record. Other
types of records are ignored.

The checksum of every record is checked; bad records are refused by the Bootstrap Loader. The address range of every
record is also checked; records that try to overwrite the Bootstrap Loader are refused. Additionally, every record must
match the programmable area exactly. To give the user an overview of the available ranges, the startup banner includes
address information.

If Sl or S2 record input is preferred, please note that these records only include 16 and 24-bit wide addresses. Therefore,
in order to reach the FLASH area an address offset must be specified using the '-o=...' option of the If command. Addition-
ally, it must ensured that the code is not larger than the covered address range.

Note: The If command cannot be used to program Motorola S-records to RAM areas.

For sending programming data, the lower (term) or upper (serO) RJ12 front panel connectors can be used. The serO port
should be preferred because in this configuration it is possible to monitor the progress of the operation via the term port.

If not otherwise specified, sectors which are not touched by the programming operation are not erased. If you want to erase
all sectors while programming, the '-c' option can be specified along with the If command. This is useful for software
which searches memory during startup and should not find any old modules (e.g. OS-9).

Make sure that the XON/XOFF protocol is used on the host side. This is a fixed setting and cannot be changed. Addition-
ally, make sure that your host does not stop transmission after a number of lines (e.g. OS-9: use the 'nopause' attribute).

Serial parameters can be modified with the pf command.

Note: On CPUs without a ser0 serial connection the Bootstrap Loader will refuse loading the data from ser0.

2.5 Example using OS-9 development system

The host is assumed to be an OS-9 development system. A serial cable is used to connect the ser0 port of the board to pro-
gram to t0 of the development system. Additionally, we assume that we want to program a PEPbug image which is avail-
able as a file 'pbVM42' in a binary image format. The serial connection should run at 38400 Baud. The following steps
must be performed:

Advertising