3 programming flash memory, 1 preparing the image, 2 programming with motorola s-records – Kontron VM162 User Manual

Page 95: Appendix bootstrap loader

Advertising
background image

Appendix Bootstrap Loader

4

Juli 23, 1997

Page BOOT- 3

© PEP Modular Computers

3

Programming FLASH Memory

3.1 Preparing the Image

The image must be compiled / linked to run from the FLASH base address 0x4000000. 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.

3.2 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. Additio-
nally, it must ensured that the code is not larger than the covered address range.

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

For the neccessary serial connection, 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. Additio-
nally, 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.

Advertising
This manual is related to the following products: