The Targets window (and its associated menu) displays the set of target interfaces you can connect to in order to download and debug your programs. Using the Targets window in conjunction with the Properties window enables you to define new targets based on the specific target types supported by the particular CrossStudio release.

To activate the Targets window:

You can connect, disconnect, and reconnect to a target system. You can also use the Targets window to reset and load programs.

Targets window layout

Button Description
Connect the target interface selected in the Targets window.
Disconnect the connected target interface.
Reconnect the connected target interface.
Reset the connected target interface.
Display the properties of the selected target interface.

Managing connections to target devices

To connect a target:

—or—

—or—

  1. In the Targets window, click the target to connect.
  2. On the Targets window toolbar, click the Connect button

—or—

  1. In the Targets window, right-click the target to connect.
  2. Choose Connect.
To disconnect a target:

—or—

—or—

  1. Right-click the connected target in the Targets window.
  2. Choose Disconnect from the shortcut menu.

Alternatively, connecting a different target will disconnect the current target connection.

You can disconnect and reconnect a target in a single operation using the reconnect feature. This may be useful if the target board has been power cycled, or reset manually, because it forces CrossStudio to resynchronize with the target.

To reconnect a target:

—or—

—or—

  1. In the Targets window, right-click the target to reconnect.
  2. Choose Reconnect from the shortcut menu.

Automatic target connection

You can configure CrossStudio to automatically connect to the last-used target interface when loading a solution.

To enable or disable automatic target connection:
  1. Choose View > Targets or press Ctrl+Alt+T.
  2. Click the disclosure arrow on the Targets window toolbar.
  3. Select or deselect Automatically Connect When Starting Debug.

Resetting the target

Reset of the target is typically handled by the system when you start debugging. However, you can manually reset the target from the Targets window.

To reset the connected target:

—or—

Creating a new target interface

To create a new target interface:
  1. From the Targets window shortcut menu, click New Target Interface. A menu will display the types of target interface that can be created.
  2. Select the type of target interface to create.

Setting target interface properties

All target interfaces have a set of properties. Some properties are read-only and provide information about the target, but others are modifiable and allow the target interface to be configured. Target interface properties can be viewed and edited using CrossStudio's property system.

To view or edit target properties:

The Targets window provides the facility to restore the target definitions to the default set. Restoring the default target definitions will undo any of the changes you have made to the targets and their properties, therefore it should be used with care.

To restore the default target definitions:
  1. Select Restore Default Targets from the Targets window shortcut menu.
  2. Click Yes when the systems asks whether you want to restore the default targets.

Importing and exporting target definitions

You can import and export your target-interface definitions. This may be useful if you make a change to the default set of target definitions and want to share it with another user or use it on another machine.

To export the current set of target-interface definitions:
To import an existing set of target-interface definitions:

Downloading programs

Program download is handled automatically by CrossStudio when you start debugging. However, you can download arbitrary programs to a target using the Targets window.

To download a program to the currently selected target:

CrossStudio supports the following file formats when downloading a program:

Verifying downloaded programs

You can verify a target's contents against arbitrary programs on disk using the Targets window.

To verify a target's contents against a program:
  1. In the Targets window, right-click the selected target.
  2. Choose Verify File.
  3. From the Verify File menu, select the type of file to verify.
  4. In the Open File dialog, select the executable file to verify and click Open to verify the file.

CrossStudio supports the same file types for verification as for downloading.

Erasing target memory

Usually, erasing target memory is done when CrossStudio downloads a program, but you can erase a target's memory manually.

To erase all target memory:
  1. In the Targets window, right-click the target to erase.
  2. Choose Erase All from the shortcut menu.
To erase part of target memory:
  1. In the Targets window, right-click the target to erase.
  2. Choose Erase Range from the shortcut menu.