Fill Memory with Data Pattern

To fill memory with a specified data pattern:

  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, Fill 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.
  8. Select the Fill memory option.

    The Import/Export/Fill Memory Action editor appears. This page lets you fill a user specified memory range with a user specified data pattern.

    Figure 3. Fill memory with a data pattern Page
    Fill memory with a data pattern Page
  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. Fill memory with a data pattern 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.

    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 this option to verify success of each data write to the memory.
  10. Click the Save icon on the IDE toolbar.

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

  11. Click the Execute icon to execute the task.