11.17.6. Breaking on a single memory cell in the Memory view

To set a memory access breakpoint on a single memory cell in the Memory view:

  1. Connect to the target.

  2. Load an executable image.

    This procedure uses the dhrystone image provided in the RVDS examples to demonstrate memory access breakpoints.

  3. Select View → Memory from the Code window main menu to open the Memory view.

  4. Set the Start address to the start of the memory area of interest. Figure 11.30 shows an example:

    Figure 11.30. Example Memory view

    Example Memory view

  5. Set the Data sizes field in the toolbar to the required size of the memory cells:

    • Select Default or 1 byte if you want to set a breakpoint at a single address memory cell.

    • Select any other size if you want to set a breakpoint on a multi-address memory cell.

      For example, select 4 byte to set a breakpoint on a four-byte memory cell.

  6. Right-click on the contents of the required memory location to display the context menu.

  7. Select Create Breakpoint At... from the context menu to open the Create Breakpoint dialog box:

    • for a single address memory cell, the address is inserted in the Location field

    • for a multi-address memory cell, the address range occupied by that memory cell is inserted in the Location field.

    Also, the breakpoint type is set to Hardware Access by default and the Value Match field is enabled.

  8. Change the breakpoint type, if required.

  9. Leave the Value Match field blank.

  10. Click OK to set the breakpoint and close the Create Breakpoint dialog box.

See also

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0153N