8.4.2. Procedure

To set up a temporary map:

  1. Right-click in the Memory Map tab, shown in Figure 8.6, to display the context menu.

    Figure 8.6. Default memory map

    Default memory map
  2. Select Create Map Entry... from the context menu to display the Create Map Entry dialog box. An example is shown in Figure 8.7.

    Figure 8.7. Create Map Entry dialog box

    Create Map Entry dialog box

    Note

    In RealView Debugger, memory mapping is defined by a start address and a block size by default, not by an end address. If you want to specify the end address, you must unselect the Size is inclusive Length (vs Addr.) check box.

  3. Specify the starting location for the new map entry in the Start Addr field.

    For this example, leave the address as 0x0.

  4. Specify the block size for the new map entry in the Size field.

    For this example, enter 0x8000.

    By default, this specifies the size of the memory block to be defined. To specify the absolute end address, rather than the size:

    1. Unselect the Size is inclusive Length (vs. Addr) check box.

    2. Enter the required address in the Size field. For example, enter 0xFFFFFFF0.

    RealView Debugger automatically sets the size you specify. If the computed size does not fall on a page boundary an error dialog is displayed and you must re-enter the block size.

    If you enter a value of 0x0, all memory from the starting address is remapped.

  5. Select the access type in the Access list.

    For this example, leave the type as RAM - Read/Write Memory.

  6. Select the memory type to be allocated from the Type list. The options listed depend on your target:

    • For processors that do not support paged memory, such as all ARM architecture-based processors and the StarCore DSPs, the only type available is Any.

    • For processors that support paged memory, such as the CEVA, Inc. DSPs, the types available are:

      • Prog - Program Memory (Executable)

      • Data - Data Memory

  7. If required, select the size of memory accesses in bytes from the Access Size.

    Note

    By default, memory access is set to byte-size (8 bits) for a Default Mapping entry in the Memory Map tab.

  8. If you selected Flash - FLASH/EEPROM Updateable as the Access type, then you must specify the Flash MEthod (FME) file to use for the target in the FLASH Programming Method File (FLASH Only) field. Otherwise, skip this step.

    To specify the FME file to use for Flash programming:

    1. Click the file browser button.

    2. Select <Select File ...> from the menu to display the Select File dialog box.

    3. Locate the required FME file.

    4. Click Open.

      The FME file and path are inserted into the FLASH Programming Method File (FLASH Only) field.

  9. Enter a description for this entry in the Description field.

    For this example, enter Area before image.

  10. Click OK to confirm your changes. The memory map is updated to show the memory block you have added.

  11. Repeat these steps for other memory map entries you want to define.

    For this example, create two map entries with the settings shown in Table 8.1.

    Table 8.1. Settings for new map entries

    SettingSecond BlockThird block
    Start address0x80000x10000
    Length0x80000xFFFF0000
    DescriptionMiddleArea after image

    Note

    If you right-click on the Default Mapping entry, and select Create Map Entry..., then the start address for the new entry is set to the next unused address.

  12. Expand each memory map entry to see the details. The memory map looks like that shown in Figure 8.8.

    Figure 8.8. Example of a memory map

    Example of a memory map

See also

Copyright © 2002-2007 ARM Limited. All rights reserved.ARM DUI 0153I
Non-Confidential