13.07.2015 Views

RealView Debugger User Guide - ARM Information Center

RealView Debugger User Guide - ARM Information Center

RealView Debugger User Guide - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Memory Mapping5.6 Setting top_of_memory and stack valuesIf defined, the top_of_memory variable specifies the highest address in memory that theC library can use for stack space. By default, a semihosting call returns top_of_memory.Stack and base are then set to be immediately below top_of_memory.<strong>RealView</strong> <strong>Debugger</strong> uses default settings for stack and base that are target-dependent.For both RVISS and <strong>ARM</strong> processors, the default setting for top_of_memory is 0x80000.When you first connect to an <strong>ARM</strong> architecture-based debug target, <strong>RealView</strong><strong>Debugger</strong> displays a warning message in the Cmd tab:Warning: No stack/heap or top of memory defined - setting top_of_memory to0x80000.To avoid this message, permanently set top_of_memory using the Connection Propertieswindow. Configure this for your debug target so that it is used whenever you connectwith <strong>RealView</strong> <strong>Debugger</strong>. See the chapter that describes configuring custom targets in<strong>RealView</strong> <strong>Debugger</strong> v1.8 Target Configuration <strong>Guide</strong> for details of how memory isconfigured in <strong>ARM</strong> architecture-based debug targets, and for an example of how to setup your memory map.You can set top_of_memory, and other <strong>ARM</strong> runtime controls specific to <strong>ARM</strong>processors, as part of a project definition. However, the available options depend onyour target processor and target vehicle.You can also set top_of_memory on a temporary basis, that is for the current session,using the @top_of_memory register. To do this select Debug → Memory/RegisterOperations → Set Register... to display the Interactive Register Setting dialog box,where the register contents can be changed.NoteIf you are using the default RVISS to simulate an <strong>ARM</strong> processor, this is not a suitabletarget for setting top_of_memory in this way.<strong>ARM</strong> DUI 0153G Copyright © 2002-2005 <strong>ARM</strong> Limited. All rights reserved. 5-13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!