Use the Memory view to display and modify the contents of memory.
This view enables you to:
- Specify the start address for the view, either as an absolute address or as an expression, for example
$pc+256. You can also specify an address held in a register by dragging and dropping the register from the Registers view into the Memory view.
- Specify the display size of the Memory view in bytes, as an offset value from the start address.
- Specify the format of the memory cell values. The default is hexadecimal.
- Set the width of the memory cells in the Memory view. The default is 4 bytes.
- Display the ASCII character equivalent of the memory values.
- Freeze the view to prevent it from being updated by a running target.
Figure 15-22 Memory view
The Memory view only provides the facility to modify how memory is displayed in this view. It does not enable you to change the access width for the memory region. To control the memory access width, you can use:
Memory view default preferences
You can specify default preferences to apply to the Memory view. Specifying default options ensures that your preferences are applied across all debug connections.
To specify default options for the Memory view, set them under Window > Preferences > Arm DS > Debugger > Memory View.
Figure 15-25 Memory View preferences
- Number of columns
The options enable you to resize the number of columns shown in the Memory view.
- Fit to view
Select to resize the number of columns automatically.
- 2, 4, 8, 16
Select the number of columns to display in the Memory view in a 2, 4, 8, or 16-column layout.
Select and specify the custom column layout you require.
- Data format
Specify the format of the memory cell values. The default is hexadecimal.
- Data size
Set the width of the memory cells in the Memory view. The default is 4 bytes.
- Hide base prefix for memory values
Select to hide the base prefix where applicable.
- For hexadecimal values, this option hides the preceding 0x. So the value 0xEA000016 is shown as EA000016.
- For binary values, this option hides the preceding 0b. So the value 0b00010110 is shown as 00010110.
- For octal values, this option hides the preceding 0. So the value 035200000026 is shown as 35200000026.
- Hide Characters column
Select to the hide the Characters column in the Memory view.
When this option is unselected, ASCII characters are shown in the Memory view: Show Characters column in the Memory view
Figure 15-26 Show Characters column in the Memory view
Another way to toggle the visibility of the Characters column, is to right-click the context menu and select or unselect the Characters option: Select Characters from context menu to show theASCII characters
Figure 15-27 Select Characters from context menu to show the ASCII characters
- Show tooltip
Select to control the display of tooltips on memory cell values.
- Automatically align the memory addresses
Aligns the memory view to the currently selected data width.
- Show compressed addresses
Shows the least significant bytes of the address that are not repeating.
- Show details panel
Shows the details panel, which displays the value of the selected memory cell in different formats.