11.22.1. Breaking on a custom memory mapped register

To set a breakpoint that tests when a custom register is accessed:

  1. Set up the custom registers for your target connection.

    You can do this by assigning BCD files that contain custom registers to your connection (such as the CP.bcd file provided with RealView Debugger).

    Note

    Setting up custom registers is outside the scope of this document.

  2. Connect to the target.

  3. Load your image.

  4. Select Debug → Breakpoints → Conditional → Break if X... from the Code windows main menu to display the Simple Break if X dialog box. Figure 11.40 shows an example.

    Figure 11.40. Simple Break if X dialog box

    Simple Break if X dialog box

    If you have previously set a breakpoint using this dialog box, then the details of the last breakpoint you set are shown.

  5. Select the breakpoint type.

    For custom registers, select one of the following:

    HW Access

    For breakpoints that activate when the register location is read from or written to.

    HW Read

    For breakpoints that activate when the register location is read from.

    HW Write

    For breakpoints that activate when the register location is written to.

  6. Click the expression selector button, to select from:

    • various lists, including your Favorites List

    • expressions used in previous breakpoints during this session.

  7. Select <Register list...> from the menu to display the Register List Selection dialog box. Figure 11.41 shows an example.

    Figure 11.41. Register List Selection dialog box

    Register List Selection dialog box

  8. Select the custom register from the list.

  9. Click OK to close the Register List Selection dialog box. The register expression is inserted into the Simple Break if X dialog box.

    The register name is preceded by reg:, for example, reg:@G_SC_PCI.

  10. Click OK to set the breakpoint and close the Simple Break if X dialog box.

See also

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0153K
Non-Confidential