Udostępnij za pośrednictwem


How to: Target a KITL-Enabled Run-Time Image from Visual Studio

If you create a run-time image in Windows Mobile and download the image to the Device Emulator, or to a physical device, you can connect to that image from Visual Studio by associating the device image with an installed SDK. The following steps guide you through configuring the target device and required services.

Note

For an Ethernet connection only, you cannot connect to a target device unless the development computer and target device are on the same subnet.

To perform the following procedures:

  • Visual Studio, Platform Builder 5.0 or later versions, and a KITL-enabled SDK must all be installed on the development computer.

  • You must have compiled a run-time image with KITL enabled, and have opened the run-time image from Platform Builder.

To configure the device

  1. On the Platform Builder Target menu, click Connectivity Options.

  2. Click Add Device.

  3. In the Associated OS Design/SDK (Optional) drop-down list, select the name of the SDK platform you want to associate with the target device.

  4. In the New target device name box, type a name for the target device.

    -or-

    If you want to use an existing device, verify that the New target device name box is blank.

  5. Click Add.

To configure kernel services

  1. Select Kernel Service Map.

  2. In the Target Device box, select the name of the target device you want to connect.

  3. In the Download box, select a download service.

  4. To the right of the Download box, click Settings.

  5. Configure the settings for the download service, and then click OK.

  6. In the Transport box, select a kernel transport.

  7. To the right of the Transport box, click Settings.

  8. Configure the settings for the transport service, and then click OK.

  9. Select one of the following settings in the Debugger box:

    • If your run-time image includes support for KdStub, the kernel debugger stub, click KdStub.

    • If your run-time image includes support for hardware-assisted debugging, select the appropriate hardware-assisted debugger.

    • If your run-time image does not include support for a debugger, click None.

To configure core services

  1. Click Core Service Settings.

  2. Select one of the following settings under Download Image:

    • To instruct Platform Builder to download a run-time image every time that Platform Builder connects with the target device, select Always.

    • To instruct Platform Builder to download a run-time image if the run-time image on the development computer differs from the run-time image on the target device, select Only if image changed.

    • To instruct Platform Builder to download a run-time image only the first time Platform Builder connects with the target device, select Only on initial download.

    • To instruct Platform Builder to jump to the run-time image on the target device, select Never (jump to image only).

  3. Click Apply.

See Also

Other Resources

Configuring and Using the Device Emulator