Creating Target Task to Import Memory

Perform these steps to create a target task to import 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, Importing_Memory.
  5. Use the Run Configuration list box to specify the configuration that the task launches and uses to connect the target. For example, select 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 editor lets you read encoded data from a user specified file, decode it, and copy it into a user specified memory range.

    Note: The Import memory option is selected by default.
    Figure 3. Importing Memory
    Importing Memory
  8. 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. Import Data from a File into memory Page 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
    Fill Pattern Denotes the sequence of bytes, ordered from low to high memory, the wizard mirrors in the target.

    The field accept only hexadecimal values. If the width of the pattern exceeds the access size, the wizard displays an error message.

    Number of Elements Enter the total number of elements to be transferred.
    Verify Memory Writes Check the option to verify success of each data write to the memory.
  9. 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 import task in the Tasks list of the Target Tasks view.

  10. Click the Execute icon to execute the task.