Use the Registers view to work with the contents of processor and peripheral registers available on your target.
Figure 11-26 Registers view (with all columns displayed)
- Browse registers available on your target
- The Registers view displays all available processor registers on your target. Click and expand individual register groups to view specific registers.
- Click to collapse the registers tree.
- If you want to refresh the Registers view, from the view menu click .
- Search for a specific register
- You can use the search feature in the Registers view to search for a specific register or group.
- If you know the name of the specific register or group you want to view, click to display the search bar. Then, enter the name of the register or group you are looking for in the search bar. This lists the registers and groups that match the text you entered.
- For example, enter the text CP to view registers and groups with the text
CPin their name.
- Press Enter on your
keyboard, or double-click the register or group in the search results to
select it in the Register view.
Figure 11-27 Search for registers
Tip:You can also use CTRL+F on your keyboard to enable the search bar. You can use the ESC key on your keyboard to close the search bar.
- Toggle between numerical and hexadecimal values
- Click the button to change all numeric values to hexadecimal values. This works as a toggle and your preference is saved across sessions.
- Create and manage register sets
- You can use register sets to collect individual registers
into specific custom groups.
To create a register set:
- In the Registers view, under Register Set, click All Registers and select Create .
- In the Create or Modify
Register Set dialog box:
- Give the register set a name in Set Name, for example Core registers. You can create multiple register groups if needed.
- Select the registers you need in All registers, and click Add. Your selected registers appear under Chosen registers.
- Click OK, to confirm your selection and close the dialog box.
- The Registers view displays the specific register group you selected.
- To switch between various register groups, click All Registers and select the group you want.
To manage a register set:
- In the Registers view, under Register Set, click All Registers and select Manage .
- In the Manage Register
Sets dialog box:
- If you want to create a new register set, click New and create a new register set.
- If you want to edit an existing register set, select a register set, and click Edit.
- If you want to delete an existing register set, select a register set and click Remove.
- Click OK to confirm your changes.
- Modify the value of write access registers
- You can modify the values of registers with write access by clicking in
the Value column for the register
and entering a new value. Enable the Access column to view access rights for each register.
Figure 11-28 Registers access rights
- Drag and drop an address held in a register from the Registers view to other views
- Drag and drop an address held in a register from this view into either the Memory view to see the memory at that address, or into the Disassembly view to disassemble from that address.
- Change the display format of register values
- You can set the format of individual bits for Program Status Registers (PSRs).
- Freeze the selected view to prevent the values being updated by a running target
- Select Freeze Data from the view menu to prevent values updating automatically when the view refreshes.
Toolbar and context menu options
The following options are available from the view or context menu:
Links this view to the selected connection in the Debug Control view. This is the default. Alternatively you can link the view to a different connection. If the connection you want is not shown in the drop-down list you might have to select it first in the Debug Control view.
Copies the selected registers. If a register contains bitfields, you must expand the bitfield to copy the individual bitfield values.
It can be useful to copy registers to a text editor in order to compare the values when execution stops at another location.
- Select All
Selects all registers currently expanded in the view.
- Show Memory Pointed to By <register name>
Displays the Memory view starting at the address held in the register.
- Show Disassembly Pointed to By <register name>
Displays the Disassembly view starting at the address held in the register.
- Translate Address in <register name>
Displays the MMU view and translates the address held in the register.
- Send to <selection>
Displays a sub menu that enables you to add register filters to a specific Expressions view.
- <Format list>
A list of formats you can use for the register values.
- View Menu
The following View Menu options are available:
- New Registers View
Creates a new instance of the Registers view.
- Freeze Data
Toggles the freezing of data in the current view. This also disables or enables the Refresh option.
- Editing context menu options
The following options are available on the context menu when you select a register value for editing:
Reverts the last change you made to the selected value.
Copies and deletes the selected value.
Copies the selected value.
Pastes a value that you have previously cut or copied into the selected register value.
Deletes the selected value.
- Select All
- Selects the whole value.
Adding a new column header
Right-click on the column headers to select the columns that you want displayed:
The name of the register.
$to reference a register. To refer to a register that has bitfields, such as a PSR, specify
$. For example, to print the value of the
Mbitfield of the
CPSR, enter the following command in the Commands view:
The value of the register. A yellow background indicates that the value has changed. This might result from you either performing a debug action such as stepping or by you editing the value directly.
If you freeze the view, then you cannot change a register value.
The type of the register value.
The number of array or pointer elements.
The size of the register in bits.
The name of the register or the bit range for a bitfield of a PSR. For example, bitfield M of the CPSR is displayed as
- The access mode for the register.
- Show All Columns
- Displays all columns.
- Reset Columns
- Resets the columns displayed and their widths to the default.
Access columns are displayed by default.