| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → xPC Target |
| Contents | Index |
| Learn more about xPC Target |
| On this page… |
|---|
DOSLoader mode allows you to boot a target PC from a device other than removable media or a dedicated network, such as a hard disk or flash memory. You can then download a target application from the host PC to the target PC. After the target PC boots the kernel, it waits for the host computer to download a real-time application. You can control the target application from either the host PC or the target PC. See DOSLoader Mode Overview for further details.
The following summarizes the sequence of events for DOSLoader mode. For a detailed step-by-step procedure, see DOSLoader Target Setup.
As necessary, format a 3.5-inch disk or have available a blank CD.
Copy a version of DOS onto this disk and insert this DOS disk into the host PC disk drive.
In the xPC Target Explorer xPC Target Hierarchy pane, select a target PC Configuration node.
DOS files — Provide your own copy of DOS to boot the target PC. For example, you can acquire DOS from FreeDOS.
The MathWorks has tested the xPC Target software with FreeDOS Beta 8 ("Nikita") distribution, MS-DOS (6.0 or higher), PC DOS, and Caldera OpenDOS.
autoexec.bat — xPC Target version of this file that calls the xpcboot.com executable to boot the xPC Target kernel.
*.rtb — This file contains the xPC Target kernel. It also contains, as applicable, specifications such as serial or TCP/IP communications and the IP address of the target PC.
xpcboot.com —- Contains the xPC Target boot executable. This file executes an xPC Target application and executes the *.rtb file.
Set up the target PC boot device such as a 3.5-inch floppy disk, flash disk, or a hard disk drive.
When you boot the target PC, the target PC loads DOS, which then calls the xPC Target autoexec.bat file to start the xPC Target kernel (*.rtb). The target PC then awaits commands from the host PC.
To execute a target application, build and download one from the host PC to the target PC. DOSLoader mode does not automatically load a target application to the target PC. The xPC Target application executes entirely in protected mode using the 32-bit flat memory model.
Note This mode requires that the host PC and target PC communicate either via an RS-232 serial connection or a TCP/IP network connection. |
To use either the DOSLoader mode, your DOS environment must comply with the following restrictions:
The CPU must execute in real mode.
While loaded in memory, the DOS partition must not overlap the address range of a target application.
To satisfy these restrictions,
Do not use additional memory managers like emm386 or qemm.
Avoid any utilities that attempt to load in high memory (for example, himem.sys). If the target PC DOS environment does not use a config.sys file or memory manager entries in the autoexec.bat file, there should be no problems when running xpcboot.com.
You can use the function getxpcenv to see the current selection for TargetBoot, or you can view this through the xPC Target Explorer window. Start the MATLAB interface and execute the function
xpcexplr
In the xPC Target Explorer xPC Target Hierarchy pane, select a target PC Configuration node. You see the boot mode tabs. The choices are
Boot Floppy — For creating a 3.5-inch target boot disk.
CD Boot — For creating a boot image that you can burn onto a CD to create a target boot CD.
DOS Loader — For invoking the kernel on the target PC from DOS.

Network Boot — For creating a boot image that you can boot from within a dedicated network.
Standalone (visible only for xPC Target Embedded Option™) — For invoking the kernel on the target PC from DOS and automatically starting the target application without connecting to a host computer. With this mode, the kernel and the target application are combined as a single module that is placed on the boot device.
In the Configuration node, select DOS Loader. The xPC Target environment is updated when you change the value. Create DOSLoader files by clicking the Create DOS Loader button.
For more detailed information about how to use the xPC Target Explorer window, see xPC Target Explorer in the xPC Target Getting Started Guide.
DOSLoader mode allows for booting the target PC from devices other than disk drives or networks, such as flash disks and hard drives. To use this mode, you need a minimal DOS system on the boot device. Use the following DOS command, where drive is the drive that you want to use as the boot device, such as C:.
sys drive
It is helpful to copy additional DOS utilities to the boot disk, including
A DOS editor to edit files
The format program to format a hard disk or flash memory
The fdisk program to create partitions
The sys program to transfer a DOS system onto another drive, such as the hard disk drive
Note xPC Target does not include a DOS license. You must obtain a valid DOS license for your target PC. |
Once configured for booting, you can transfer the DOSLoader files (created using xpcexplr) to the device. A config.sys file is not necessary. The autoexec.bat file should be used to boot the xPC Target loader. This is described in the following sections.
![]() | Booting from a DOS Device | DOSLoader Target Setup | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |