Creating Target Task to Export Memory

Perform these steps to create a target task to export memory:

  1. Select Window > Show View > Other.

    The Show View dialog box appears.

  2. From the Debug group, select Target Tasks.

    The Target Tasks view appears.

    Figure 1. Target Tasks View
    Target Tasks View
  3. Right-click in the Target Tasks view and select New Task from the context menu.

    The Create New Target Task wizard appears.

  4. In the Task Name text box, enter a name for the new task. For example, Exporting_Memory.
  5. Use the Run Configuration list box to specify the configuration that the task launches and uses to connect the target. For example, Active Debug Context.
    Note: If the task does not successfully launch the configuration that you specify, the Execute button of the Target Tasks view toolbar stays disabled.
  6. From the Task Type list box, select Import/Export/Fill Memory.
    Figure 2. Create New Target Task Wizard
    Create New Target Task Wizard
  7. Click Finish.

    The Import/Export/Fill Memory Action editor appears. This page lets you read data from a user specified memory range, encode it in a user specified format, and store this encoded data in a user specified output file.

  8. Select the Export memory option.
    Figure 3. Exporting Memory
    Exporting Memory
  9. Specify options as explained in the following table.
    Note: CodeWarrior IDE validates information as you enter it. If there are errors, a message appears near the page title.
    Table 1. Export Data from Memory into a File Options
    Item Description
    Memory space and address Enter the literal address and memory space on which the data transfer is performed.

    The Literal address field allows only decimal and hexadecimal values.

    Expression Enter the memory address or expression at which the data transfer starts.
    Access size Denotes the number of addressable units of memory that the debugger accesses in transferring one data element.

    The default values shown are 1, 2, 4, and 8 units. When target information is available, this list shall be filtered to display the access sizes that are supported by the target.

    Select File Enter the path to the file that contains the data to be imported. Click the Browse button to select the import file through the standard File Open dialog box.
    File type Defines the format in which the wizard encodes the data it imports. By default, the following file types are supported:
    • Annotated Hex Text
    • Hex Text
    • Motorola S-Record
    • Raw Binary
    • Signed Decimal Text
    • Unsigned decimal Text
    Number of Elements Enter the total number of elements to be transferred.
  10. Click the save icon on the IDE toolbar.

    CodeWarrior IDE saves your changes, closes the Configure Import/Export/Fill Memory task wizard, and displays the newly created export task in the Tasks list of the Target Tasks view.

  11. Click the Execute icon to execute the task.