Selecting target initialization file

A target initialization file is a command file that the CodeWarrior debugger executes each time the launch configuration to which the initialization file is assigned is debugged. You can use the target initialization file for all launch configuration types (Attach, Connect and Download). The target initialization file is executed after the connection to the target is established, but before the download operation takes place.

The debugger executes the commands in the target initialization file using the target connection protocol, such as a JTAG run control device.

Note: You do not need to use an initialization file if you debug using the CodeWarrior TRK debug protocol.

To select a target initialization file, follow these steps:

  1. Go to the Remote Systems view.
  2. Right-click a remote system name and choose Properties from the shortcut menu.

    The Properties for <Remote System> dialog appears.

  3. Click the Initialization tab.
    Figure 1. Properties for <Remote System> - Initialization settings

    Properties for <Remote System> - Initialization Settings

  4. Click the ellipsis button in the Initialize target script column corresponding to the core for which you want to select the target initialization file.
    Tip: Click in the specified cell of the Initialize target script column for the ellipsis button to appear.

    The Target Initialization File dialog appears.

    Figure 2. Target Initialization File dialog

    Target Initialization File Dialog

    1. Select the File checkbox to enable the textbox.
    2. Enter the target initialization file path in the File textbox. You can use the Workspace, File System, or Variables buttons to select the desired file.
    3. Click OK.

      The target initialization file path appears in the Initialize target column.

  5. Click OK.