core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_01.htm
author stechong
Wed, 20 Oct 2010 11:19:31 -0500
changeset 2165 2a7b5eccb0bc
parent 2087 617a89f9dffc
permissions -rw-r--r--
Keeping PlatSim internal only.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
<title>Connect target device to PC Tutorial</title>
<link rel="StyleSheet" href="../../../book.css" type="text/css"/>
</head>
<body >
<h2><strong>Connect  target device to PC</strong></h2>
<p>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:</p>
<ol>
    <li><strong>Connect target device to PC</strong></li>
    <li><a href="../trk/trk_installation_instr.htm">Install</a> <a href="../../concepts/trk.htm">CODA</a> 4.x or later on the target device</li>
    <li><a href="run_mode_debug_example_04.htm">Configure</a> project for downloading</li>
    <li><a href="../../tasks/projects/prj_build.htm">Debug</a> project on target device</li>
    </ol>
<hr>
<p>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.</p>
<p class="note"><strong>NOTE</strong> This tutorial assumes that Carbide is setup properly enabling you to create, build, and debug applications with an emulator.</p>
<div class="step">
    <h4 align="left">Connecting remote devices to PC</h4>
    <ol>
        <li>Connect the USB cable between the remote device and PC running Carbide.<br />
        	<p>Use the <strong>Remote Connections</strong> view to verify a successful connection or by looking at the remote connection trim display shown at the bottom of the workplace window.</p>
        	<p><img src="../images/run_mode_debug_01.png" alt="Remote Connection view">&nbsp;&nbsp;&nbsp;<img src="../images/run_mode_debug_02.png" alt="Remote Connection trim indicator"></p>
        	<p>The <strong>Status</strong> column indicates whether the service you need for debugging, CODA, is <strong>Available</strong>. If it's status is <strong>Not Accessible</strong> you are probably missing  CODA on the remote device.</p>
        </li>
        <li>Click OK on the remote device when it asks to use Ovi Suite mode with USB.<br />
        	<p class="note"><strong>NOTE</strong> 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.</p>
        </li>
    </ol>
</div>
<p><strong>NEXT</strong>: <a href="run_mode_debug_example_02.htm">Install CODA</a></p>
<h4>Other references</h4>
<ul>
    <li><a href="run_mode_debug_example_00.htm">Remote Target Debugging (Run-mode)</a></li>
</ul>
<div id="footer">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>

</body>
</html>