| |||
| Home > Debug Configuration Tutorial > 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:
Expand the Register_Window group
in the left pane.
Rename the Default group under Register_Window to EtherRouter.
This specifies the name for the new register tab in the Registers view.
Select EtherRouter in the left
pane.
Set the Line setting to $+.
This makes the MemoryStatus register group
an expandable entry in the register tab.
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.
Create a line setting to display the MemoryStatus register:
Right-click on the *Line "$+" setting
to display the context menu.
Select Make New... from the context menu.
Set the *Line setting to =MemoryStatus.
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.
Create a line setting for the Newreg register
to display the name INDICATORS in the register
tab:
Right-click on the *Line
"=MemoryStatus" setting to display the context menu.
Select Make New... from the context menu.
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.
Press Enter to complete the entry.
Create a line for bit fields B_REMAP, B_LED_SWITCH, B_IND1,
and B_IND2 of the MemoryStatus register:
Right-click on the *Line "_INDICATORS" setting
to display the context menu.
Select Make New... from the context menu.
Set the *Line setting to B_REMAP,B_LED_SWITCH,B_IND1,B_IND2.
Press Enter to complete the entry.
The Connection Properties window looks like Figure 5.15.
All board file entries are now complete.
Select Save and Close from the File menu to save your changes and close the Connection Properties window.
Click the OK button to close the Connection Properties dialog box.
See also: