3.6.3. Configuring a memory map

If you want to set up a memory map that is used automatically when you connect to a target processor, you must configure this in your board file. The memory definition is contained in the Advanced_Information group for the target processor.


This example uses the connection created in Setting up an Integrator board and core module. However, in this example, the linked AP and CM940T board groups are removed to ensure a default memory mapping.

To configure a memory map for any hardware debug target:

  1. Ensure that RealView Debugger is not connected to a target.

  2. Select Target ? Connect to Target... to display the Connection Control window.

  3. Right-click on the MP3Player entry and select Connection Properties... from the context menu.

  4. Right-click on the *BoardChip_name AP setting in the right pane, and select Delete from the context menu.

    Repeat this for the *BoardChip_name CM940T setting.

  5. Expand the following entries in turn:

    1. CONNECTION=MP3Player (change as required)

    2. Advanced_Information

    3. Default

    4. Memory_block

  6. Right-click on the Default entry, under Memory_block, to display the context menu.

  7. Select Make Copy... from the context menu to describe the memory map for the chosen target. Give this entry a suitable name, for example SSRAM, and click Create.

  8. Click on the new SSRAM entry in the left pane to display it in the right pane.

  9. Set the value of Start, in the right pane, to 0x0.

  10. Set the value of Length to 0x20000.

  11. Set the value of Description to Static RAM as shown in Figure 3.27.

    Figure 3.27. Viewing the contents of the new group

    Viewing the contents of the new group
  12. Select File ? Save and Close to save your changes and close the Connection Properties window.

  13. Connect to your target and load an image, for example dhrystone.axf.

  14. Select View ? Memory Map tab to view the new memory map, shown in Figure 3.28, before loading an image.

    Figure 3.28. New memory map in the Process Control pane

    New memory map in the Process Control pane
Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0182G