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:
- Choose View > Targets or press Ctrl+Alt+T.
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
|
|
Connects the target interface selected in the Targets window.
|
|
Disconnects the connected target interface.
|
|
Reconnects the connected target interface.
|
|
Resets the connected target interface.
|
|
Displays the properties of the selected target interface.
|
Managing connections to target devices
To connect a target:
- In the Targets window, double-click the target to connect.
—or—
- Choose Target > Connect and click the target to connect.
—or—
- In the Targets window, click the target to connect.
- On the Targets window toolbar, click the Connect button
—or—
- In the Targets window, right-click the target to connect.
- Choose Connect.
To disconnect a target:
- Choose Target > Disconnect or press Ctrl+T, D.
—or—
- On the Targets window toolbar, click the Disconnect button.
—or—
- Right-click the connected target in the Targets window.
- 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:
- Choose Target > Reconnect or press Ctrl+T, E.
—or—
- On the Targets window toolbar, click the Reconnect button.
—or—
- In the Targets window, right-click the target to reconnect.
- 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:
- Choose View > Targets or press Ctrl+Alt+T.
- Click the disclosure arrow on the Targets window toolbar.
- Select or deselect Unknown property Target/Auto Connect.
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:
- Choose Project > Reset And Debug or press Ctrl+Alt+F5.
—or—
- On the Targets window toolbar, click the Reset button.
Creating a new target interface
To create a new target interface:
- From the Targets window shortcut menu, click New Target Interface.
A menu will display the types of target interface that
can be created.
- 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:
- Select a target.
- Select the Properties option from the target's shortcut menu.
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:
- Select Restore Default Targets from the Targets window shortcut menu.
- 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:
- Choose Export Target Definitions To XML from the Targets window shortcut menu.
- Specify the location and name of the file to which you want to save the target definitions and click Save.
To import an existing set of target-interface definitions:
- Select Import Target Definitions From XML from the Targets window shortcut menu.
- Select the file from which you want to load the target definitions and click Open.
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:
- In the Targets window, right-click the selected target.
- Choose Download File.
- From the Download File menu, select the type of file to
download.
- In the Open File dialog, select the executable file to
download and click Open to download the file.
CrossStudio supports the following file formats when downloading a program:
- Binary
- Intel Hex
- Motorola S-record
- CrossWorks native object file (AVR, MSP430, and MAXQ products)
- Texas Instruments text file
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:
- In the Targets window, right-click the selected target.
- Choose Verify File.
- From the Verify File menu, select the type of file to verify.
- 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:
- In the Targets window, right-click the target to erase.
- Choose Erase All from the shortcut menu.
To erase part of target memory:
- In the Targets window, right-click the target to erase.
- Choose Erase Range from the shortcut menu.