4.16.3. Defining the memory rules

Define the rules that control which memory map block is used:

  1. Expand the Map_rule group.

    The map rule defines which memory block to use. In this example, M_SlowROM is activated if B_Remap is set to Enabled (one). Otherwise M_FastRAM is used.

  2. Rename the Default group of Map_rule to R_FastRAM.

  3. Set the following values:

    1. Set Register to Newreg (use the context menu).

    2. Set Mask to 0x0001 (to check the value of the B_REMAP bit field only).

    3. Set Value to 0 (M_FastRAM displayed when B_REMAP bit field is set to Disabled).

    4. Set On_equal to M_FastRAM.

    Figure 4.29 shows an example:

    Figure 4.29. Settings for the R_FastRAM map rule

    Settings for the R_FastRAM map rule

  4. Create the R_SlowROM rule:

    1. Right-click on R_FastRAM to display the context menu.

    2. Select Make Copy... from the context menu to display the Enter Name of New object dialog box. The name R_FastRAM_1 is inserted.

      Note

      If the name of a rule you are copying ends with a number, then RealView Debugger increments the number for the new rule.

    3. Change the name to R_SlowROM.

    4. Click Create.

  5. Select R_SlowROM and set Value to 1. That is, display the M_SlowROM memory block when the B_Remap bit field is set to Enabled.

  6. Set the value of *On_equal to M_SlowROM. Figure 4.30 shows an example:

    Figure 4.30. Settings for the R_SlowROM map rule

    Settings for the R_SlowROM map rule

    All board file entries are now complete.

  7. Select Save and Close from the File menu to save your changes and close the Connection Properties window.

  8. Click the OK button to close the Connection Properties dialog box.

Copyright © 2002-2010 ARM Limited. All rights reserved.ARM DUI 0182M
Non-ConfidentialID102410