Freigeben über


Download the OS to the Device (Compact 2013)

9/29/2014

This section shows you how to use Platform Builder in Visual Studio to connect to your virtual test device and download the Windows Embedded Compact 2013 OS to the device, which requires two tasks:

  1. Configuring Platform Builder to recognize your virtual device.
  2. Connecting to your virtual device and download the OS run-time image.

Note

To complete the tasks in this section, you will need a virtual test device and an OS project with a finished run-time image. For more information, see Set Up a Virtual Test Device and Create Your First OS.

Configure Platform Builder to recognize your virtual device

So that Platform Builder will recognize your virtual device, use the procedures in this section to create a profile for your virtual device, set Platform Builder to detect your device, and then start your virtual device.

To create a device profile in Platform Builder

  1. In Visual Studio, open an OS design project that you have built into a completed run-time image. If the OS design does not have a run-time image, you will not be able to create the profile.

  2. Go to Target>Connectivity Options.

  3. In the Target Device Connectivity Options dialog box, under Device Configuration, select Add Device.

    Add a new target device in Visual Studio 2012

  4. In New target device name, enter a name for your device, and then click Add.

  5. Under the Kernel Download field, select Settings, which opens the Ethernet Download Settings dialog box. Leave the Ethernet Download Settings dialog box open.

  6. Start your virtual test device by using one of following procedures.

    In all versions of Hyper-V (Windows 8.1, Windows Server 2008 R2, or Windows Server 2012)

    In Virtual PC (Windows 7)

    1. Open Hyper-V Manager.
    2. In the Virtual Machines pane, select your virtual test device.
    3. In the Actions pane on the right side of the window, select Start.
    1. Open Virtual PC Console and select your virtual test device from the list.
    2. Select Start.

    Warning

    Ignore the “Hit space to enter configuration menu” message that displays five times when you start your virtual device. If you press the spacebar, you will enter the boot loader configuration for the device, which is far beyond the scope of this guide. For information about the boot loader and how it operates with virtual machines, see Boot Loader for Virtual Machines in Client Hyper-V.

    After the device displays the five boot loader configuration menu prompts, the device acquires an IP address from the DHCP server and broadcasts BOOTME messages, which are a form of Ethernet debugging packets. The device broadcasts the BOOTME messages for two minutes and displays the number of BOOTME messages it has sent.

    Download an OS to a device in Visual Studio 2012

  7. When your IDE receives the BOOTME messages, Platform Builder loads the device name in the Ethernet Download Settings dialog box under Active target devices. Select the active device name, and then select Apply.

    Platform Builder returns to the Target Device Connectivity Options dialog box and associates the device boot information with the new device profile.

  8. Close the Target Device Connectivity Options dialog box.

Connect a target device in Visual Studio 2012

Connect to your virtual device and download the run-time image

After Platform Builder associates the device profile with your virtual device, you can connect to the device and download your run-time image. If the device does not have an operating system, Platform Builder will automatically download the run-time image from the current OS project when you connect the device.

To connect to the device

  1. Open your OS design project, and then go to Target>Attach Device.

  2. If your device has stopped sending BOOTME messages, restart your device.

    When the device sends the BOOTME messages, Platform Builder starts to download the run-time image to the device. Both Platform Builder and the device display the download progress.

    Downloadeding an OS in progress

  3. When the download is complete, the device starts Windows Embedded Compact 2013, using the options from your OS design. If you used the OS from the example in Create an OS design, your device will show the Minimal Shell screen, as shown in the following image:

    A Compact 2013 device with the Minimal Shell

  4. After you’re finished, detach the device, and turn off your virtual machine.

Learn more about

  • Kernel debugger
    The Platform Builder kernel debugger integrates the functionality required to connect to a target device and download a run-time image with a full-featured debugger that you can use to view information about your code, set breakpoints, step through execution, and control debug output messages. For more information about the kernel debugger, see Kernel Debugger.
  • The sample virtual test device
    Compact 2013 includes a sample virtual hard drive—hd0_sample.vhd—that you can use as a starting point for a virtual device. For more information about how to use the sample device in your development, see Use the Sample Virtual Device.

See Also

Concepts

Create Your First OS