User`s guide

4 Embedded Option
4-22
c Reboot the target PC. DOS is booted from the target boot disk and the
autoexec.bat files, resulting in the automatic execution of the xPC
Target loader. From this point onward, the CPU runs in protected mode
and DOS is discarded.
If you want to boot the target PC from flash memory instead of the 3.5 inch
disk, see “Copying the Kernel to Flash Memory” on page 4-14 for a
description of how to copy the kernel to flash memory. The same procedure
works with flash disks and other boot devices.
Copying the Kernel/Target Application to Flash Disk
You build a target application on a host PC using Real-Time Workshop,
xPC Target, and a C/C++ compiler. One method for transferring the files from
the host PC to a target PC is to use an external 3.5 inch disk drive.
After you build a stand-alone application on a host PC, you can copy files from
a 3.5 inch disk to the flash disk. If you have not already copied the necessary
files to a 3.5 inch disk, see “Creating a Kernel/Target Application” on page 4-21.
1 If there is a 3.5 inch disk in the target PC external disk drive, remove it. On
the target PC, press the
Reset button.
2 Halt the boot process and bring up the DOS prompt. For example, if you see
the message for selecting the operating system to start, select
Microsoft
Windows
.
The boot process is stopped and a DOS prompt is displayed.
3 Insert the 3.5 inch disk with the stand-alone application and utility files into
the external 3.5 inch disk drive of the target PC.
4 Type
copy A:\xpc_osc3.rtb C:\work
copy A:\xpcboot.com C:\work
copy A:\autoexec.bat C:\work
5 If you want your stand-alone application to run when you press the Reset
button on your target PC, save a copy of the file
C:\autoexec.bat to a
backup file, such as
C:\autoexec_back.wrk.