4.11.3. Setting the top of memory

Select View → Registers to open the Register pane at the default location. The Debugger Internals are available from the Debug tab inside this pane. To see a list of the available tabs, right click on the double arrows to the left of the Register pane tabs.

In RVDK, top_of_memory is used to set the application stack base for a semihosted application running on a remote target.

If top_of_memory is not set, RVDK sets it to a default value of 0x80000. A warning is displayed in the Cmd and Log tabs:

No stack/heap or top of memory defined - using defaults.

The value of top_of_memory can be overridden for a single debug session from the Debug tab in the Register pane.

The value of top_of_memory can also be set for a particular target connection using the Connection Properties window:

  1. Ensure that you disconnect from the target before making these changes.

  2. Select Target → Connect to Target... to open the Connection Control window.

  3. Right-click on the connection, for example RVI-ME, and select Connection Properties... from the context menu.

    The appropriate branch in the Connection Properties window opens automatically.

  4. Drill down through the tree:

    • Advanced_Information

    • Default

    • ARM_config

  5. Right-click on the Top memory entry and set the new connection default.

  6. Select File → Save and Close.

Note

To use the new setting, you must now connect to the target.

If a Board/Chip definition file is selected for this connection, then this file might contain a value for top_of_memory that overrides the target connection setting.

Copyright © 2005, 2006 ARM Limited. All rights reserved.ARM DUI 0276B
Non-Confidential