6.3. Setting up a memory map

Mapping memory, before you load an image for debugging, enables you to have full access to all the memory on your debug target. You can do this:

In this example, you are going to set up memory manually for the current session. Target memory settings defined in this way are only temporary and are lost when you close down RealView Debugger.

With memory mapping enabled, set up your map in the Process Control pane:

  1. Right-click on the Start entry in the Map tab to display the context menu, shown in Figure 6.1.

  2. Select Add or Copy Map Entry... to display the Add/Copy/Edit Memory Map dialog box, shown in Figure 6.2. See Memory map configuration for more details on the fields in this dialog box.

    Figure 6.2. Add/Copy/Edit Memory Map dialog box

    Add/Copy/Edit Memory Map dialog box
  3. Change the dialog box to change the default memory mapping as follows:

    1. Enter 0x0 in the Start Addr field.

    2. Enter 0x8000 in the End field.

  4. Enter Area before image in the Description field to describe this block.

  5. Click OK to confirm your changes and the Process Control Map tab is updated.

  6. Set up the second block of memory using these settings:

    1. Start address = 0x8000

    2. Length = 0x8000

    3. Description = Middle

  7. Click OK to confirm your changes and the Process Control Map tab is updated.

  8. Set up the third block of memory using these settings:

    1. Start address = 0x10000

    2. Length = 0xFFFF0000

    3. Description = Area after image

  9. Click OK to confirm your changes and the Process Control Map tab is updated, shown in Figure 6.3.

    Figure 6.3. Memory mapped

    Memory mapped
Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential