Kontron VMP1 User Manual
Page 71

VMP1
Bootstrap Loader
ID 19972, Rev. 0101
Page 5 - 5
® PEP Modular Computers GmbH
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 appro-
priate S9, S8 or S7 record. Other types of records are ignored.
The checksum of every record except end records is checked. Bad records are rejected
by the Bootstrap Loader. The address range of every record is also checked; records
that try to overwrite the Bootstrap Loader are rejected. 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.
In the case of the VMP1 the Flash addresses are only “virtual”. The downloaded image
is copied to RAM during startup and is executed there. For this reason images which
require to be programmed in should start at the address 0
×
0.
If S1 or S2 record input is preferred, please note that these records only include 16 and
24-bit wide addresses. If no switch to another record type is included it must be ensured
that the code is not larger than the address range covered.
For sending programming data, the lower (term) or upper (ser0) RJ45 front panel con-
nectors can be used. The ser0 port is preferable, because in this configuration it is pos-
sible to monitor the progress of the operation via the term port. In any case, the user
LED flashes slowly while downloading to give feedback of the usual kind.
If not specified otherwise, 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, for example OS-9.
Make sure that the XON/XOFF protocol is used on the host side. This is a fixed setting
and cannot be changed. Additionally, make sure that your host does not stop transmis-
sion after a number of lines (e.g. OS-9: use the 'nopause' attribute).
Serial parameters can be modified with the pf command.
$
$
Note:
The image must start at the absolute address 0
×
0 and must con-
tain executable PPC code at the absolute address 0
×
100
$
$
Important!
The ’If’ command cannot be used to program Motorola S-records
to RAM areas.