## Install CODA remote agent

In this example we demonstrate how to debug applications on a remote device using the Application CODA remote 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 remote agent (v3.2.7) or later on the target device
3. Configure project for downloading
4. Debug project on target device

To debug on a remote device you need a program to communicate between the Carbide debugger and your executable running on the device. That program is the CODA (Carbide On-device Debug Agent) remote agent, also known as Application CODA.

#### Installing or updating the TRK remote agent

1. Select the Connection to edit in the Remote Connections view.
2. Click the Edit Settings... icon () in the Remote Connections toolbar.

3. Click the Install Remote Agents tab.

4. Select the latest remote agent to install.

   Choose the remote agent to install. Since there are different builds for different OSes, knowing the OS installed on the device helps.

NOTE If you don't know what OS version is on the device, always choose the remote agent that supports the highest OS version available. Should that one not work, drop down to the next OS version in line and repeat.

5. Click Install.

NEXT: Configure project for debugging

#### Other references

- Remote Target Debugging (Run-mode)