| |||
| Home > Mapping Target Memory > Setting up a temporary memory map > Procedure | |||
To set up a temporary map:
Right-click in the Memory Map tab, shown in Figure 8.6, to display the context menu.
Select Create Map Entry... from the context menu to display the Create Map Entry dialog box. An example is shown in Figure 8.7.
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.
Specify the starting location for the new map entry in the Start Addr field.
For this example, leave the address as 0x0.
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:
Unselect the Size is inclusive Length (vs. Addr) check box.
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.
Select the access type in the Access list.
For this example, leave the type as RAM - Read/Write
Memory.
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
If required, select the size of memory accesses in bytes from the Access Size.
By default, memory access is set to byte-size (8 bits) for
a Default Mapping entry in the Memory
Map tab.
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:
Click the file browser button.
Select <Select File ...> from the menu to display the Select File dialog box.
Locate the required FME file.
Click Open.
The FME file and path are inserted into the FLASH Programming Method File (FLASH Only) field.
Enter a description for this entry in the Description field.
For this example, enter Area before image.
Click OK to confirm your changes. The memory map is updated to show the memory block you have added.
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
| Setting | Second Block | Third block |
|---|---|---|
| Start address | 0x8000 | 0x10000 |
| Length | 0x8000 | 0xFFFF0000 |
| Description | Middle | Area after image |
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.
Expand each memory map entry to see the details. The memory map looks like that shown in Figure 8.8.
Chapter 6 Programming Flash with RealView Debugger in the RealView Debugger Target Configuration Guide.