Connect target device to PC Tutorial

## Connect target device to PC

In this example we demonstrate how to debug applications on a remote device using CODA (Carbide On-device Debug Agent). This enables you to test programs on the actual device it will operate on while observing its behavior using the Carbide debugger. The steps to do this include:

1. Connect target device to PC
2. Install CODA 4.x or later on the target device
3. Configure project for downloading
4. Debug project on target device

The most reliable connection between a remote device and your PC is a cable. In this case, the USB cable that physically connects your phone to the a PC USB connection. Once connected, Carbide uses plug-and-play (PnP) to create a remote connection to the phone or remote device.

NOTE This tutorial assumes that Carbide is setup properly enabling you to create, build, and debug applications with an emulator.

#### Connecting remote devices to PC

1. Connect the USB cable between the remote device and PC running Carbide.

   Use the Remote Connections view to verify a successful connection or by looking at the remote connection trim display shown at the bottom of the workplace window.

   The Status column indicates whether the service you need for debugging, CODA, is Available. If it's status is Not Accessible you are probably missing CODA on the remote device.

2. Click OK on the remote device when it asks to use Ovi Suite mode with USB.

   NOTE Debugging requires the use of Ovi or Suite mode. If you are in another mode, like Mass storage mode, an alert appears asking you to change.

NEXT: Install CODA

#### Other references

- Remote Target Debugging (Run-mode)