User`s guide
DOS Loader Target Applications
4-13
The file autoexec.bat is copied to the DOS disk. This file should contain at
least the following line:
xpcboot xxx.rtb
where xxx.rtb is the file described in table 11-1. We recommend that you view
this
autoexec.bat file to confirm this.
Now the target boot disk can be removed from the host and put into the target
PC disk drive. By rebooting the target PC, DOS is booted from the target boot
disk and the
autoexec.bat file with the result in the xPC Target loader being
automatically executed. From this point onwards, the CPU runs in protected
mode and DOS is discarded.
You can repeat this procedure as necessary. There are no restrictions on the
number of xPC Target boot floppies that you can create. However, xPC Target
and the xPC Target Embedded Option do not include DOS licenses. It is
assumed that you will purchase valid DOS licenses for your target PCs from
the supplier of your choice.
If the
xpcboot command is not placed in the autoexec.bat, xpcboot.com is not
executed when the target PC is booted. Instead, the target will be finished once
it has booted DOS. You can then use the DOS environment to create a DOS
partition on a hard disk, format it, and transfer
xpcboot.com and xxx.rtb onto
it. The
autoexec.bat file can then be placed on the hard disk and edited so that
it automatically boots the xPC Target loader the next time the target PC is
booted. After this step the floppy disk drive can be removed from the system.
The same procedure works with flash disks and other boot devices.
Creating a Target Application for DOS Loader
After having booted the target PC as described in the proceeding section, the
target PC is ready to receive xPC Target applications from the host computer.
Only now, these applications are received by the DOSLoader component of
xPC Target. In every aspect, the DOSLoader mode will allow your target PC
to operate just as it normally would when running the xPC Target after booting
from a standard xPC Target boot disk. When you click Build for your model,
the target application is downloaded to the target PC using the communication
protocol as you specified earlier in the xPC Target Setup window.