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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Working with Debug Views6.2.5 Changing memory contentsTo change memory contents:1. Select Target → Reload Image to Target to reload the image dhrystone.axf.2. Click on the Src tab to view the source file dhry_1.c.3. Set a default breakpoint by double-clicking on line 301.4. Click Run to start execution.5. Enter 5000 when asked for the number of runs.The program starts and then stops when execution reaches the breakpoint at line301. The red box marks the location of the PC when execution stops.6. Use the Pane menu, in the Memory pane, to set the start address to 0x89A2 anddisplay the ASCII values, shown in Figure 6-12.Figure 6-12 Example memory displayThe memory locations 000089EF-000089F2 contain the four hexadecimal values0x33, 0x27, 0x52, and 0x44 corresponding to the string 3’RD.Right-click in the value at 000089ef, that is 0x33, to display the Memory valuecontext menu (see Operating on memory contents on page 6-25).This enables you to change the contents at the specified location. Select the optionSet Value... from the context menu to display the selection box, shown inFigure 6-11 on page 6-20, where you can enter the new value.Enter the required hexadecimal value 0x4E, or enter ‘N’, and click Set to updatethe memory display. You can use uppercase or lowercase to enter the new value.The new value is displayed in blue and the ASCII value changes from 3 to N.You can also use the drop-down arrow to select from a browser or to re-use a valueentered previously. The drop-down also gives access to your list of personalfavorites where you can store a data value for re-use in this, or future, debuggingsessions.6-28 Copyright © 2002-2005 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0153G

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

Saved successfully!

Ooh no, something went wrong!