5.13. Creating the register tab for displaying custom registers

Having created the custom registers, you must have a way of displaying them in RealView Debugger, so that you can monitor or modify the values. You must define the visual appearance of the registers, and specify the name of the tab that is to contain the registers. The tab is displayed in the Registers view.

To define the visual appearance of the custom registers in the Registers view:

  1. Expand the Register_Window group in the left pane.

  2. Rename the Default group under Register_Window to EtherRouter. This specifies the name for the new register tab in the Registers view.

  3. Select EtherRouter in the left pane.

  4. Set the Line setting to $+.

    This makes the MemoryStatus register group an expandable entry in the register tab.

    Note

    It is important in the following steps to right-click on the last *Line you created when adding a new Line. If you right-click on the original Line setting, the lines are added in reverse order.

  5. Create a line setting to display the MemoryStatus register:

    1. Right-click on the *Line "$+" setting to display the context menu.

    2. Select Make New... from the context menu.

    3. Set the *Line setting to =MemoryStatus.

    4. Press Enter to complete the entry.

    This displays the MemoryStatus register. The name displayed for the register is defined by the Gui_name setting (that is Memory Remap Status), and the name and register value are displayed on the same line in the register tab.

  6. Create a line setting for the Newreg register to display the name INDICATORS in the register tab:

    1. Right-click on the *Line "=MemoryStatus" setting to display the context menu.

    2. Select Make New... from the context menu.

    3. Set the *Line setting to _INDICATORS.

      Literals entered in *Line (or Line) must be preceded by an underscore. The underscore is not displayed in the tab.

    4. Press Enter to complete the entry.

  7. Create a line for bit fields B_REMAP, B_LED_SWITCH, B_IND1, and B_IND2 of the MemoryStatus register:

    1. Right-click on the *Line "_INDICATORS" setting to display the context menu.

    2. Select Make New... from the context menu.

    3. Set the *Line setting to B_REMAP,B_LED_SWITCH,B_IND1,B_IND2.

    4. Press Enter to complete the entry.

    The Connection Properties window looks like Figure 5.15.

    Figure 5.15. The EtherRouter Register_window group

    The EtherRouter Register_window group

    All board file entries are now complete.

  8. Select Save and Close from the File menu to save your changes and close the Connection Properties window.

  9. Click the OK button to close the Connection Properties dialog box.

See also:

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