The memory window shows the contents of the connected target’s memory areas. The memory window does not show the complete address space of the target, instead you must enter both the start address and the number of bytes for the memory window to display. You can specify the start address and the size using debugger expressions which enables you to position the memory display at the start address of a variable or use a value in a register. You can also specify if you want the expressions to be evaluated each time the memory window is updated or you can re-evaluate them yourself with the press of a button. The memory window updates each time your program stops on a breakpoint or single step and whenever you traverse the call stack. If any values that were previously displayed have changed they will be displayed in red.
Memory window user interface
The Memory window is divided into a tool bar and the main data display.
Memory tool bar
Button | Description |
Address | Start address to display, specified as a debugger expression. |
Size | Number of bytes to display, specified as a debugger expression. |
![]() |
Select binary display. |
![]() |
Select octal display. |
![]() |
Select unsigned decimal display. |
![]() |
Select signed decimal display. |
![]() |
Select hexadecimal display. |
![]() |
Select byte display which also includes an ASCII display. |
![]() |
Select 2 byte display. |
![]() |
Select 4 byte display. |
![]() |
Evaluate the address and size expressions and update the memory window. |
![]() |
Move the data display up one line. |
![]() |
Move the data display down one line. |
![]() |
Move the data display up by Size bytes. |
![]() |
Move the data display down by Size bytes. |
Left click operations
The following operations are available with the left click of the mouse:
Action | Description |
Single Click | First click selects the line, second click selects the displayed memory value. Once the memory value is selected it can be modified by typing in a new value. Note that the input radix is the same as the display radix i.e. 0x is not required to specify a hex number. |
Right click menu operations
The following operations are available on the right click menu:
Action | Description |
Auto Evaluate | Re-evaluate Address and Size each time the memory window is updated. |
Set Number of Columns... | Set the number of columns to display - default is 8. |
Access Memory By Display Width | Access memory in terms of the display width. |
Export To Binary Editor | Create a binary editor with the current memory window contents. |
Save As | Save the current memory window contents to a file. Supported file formats are
|
Load From | Load the current memory window from a file. Supported file formats are
|
Using the memory window
Showing the memory window
To display memory window n if it is hidden, do one of the following:
- From the View menu, click Other Windows then Memory n .
—or—
- From the Debug menu, click Debug Windows then Memory n .
—or—
- Type Ctrl+T, M, n .
—or—
- Right click the tool bar area to display the View menu.
- From the popup menu, click Other Windows then Memory n .
Display formats
You can set the memory window to display 8-bit, 16-bit, and 32-bit values that are formatted as hexadecimal, decimal, unsigned decimal, octal or binary. You can also change the number of columns that are displayed.
You can change a value in the memory window by clicking the value to change and editing it as a text field. Note that when you modify memory values you need to prefix hexadecimal numbers with “0x”, binary numbers with “0b” and octal numbers with “0”.
Saving memory contents
You can save the displayed contents of the memory window to a file in various formats. Alternatively you can export the contents to a binary editor to work on them.
Saving memory
You can save the displayed memory values as a binary file, Motorola S-record file, Intel hex file, or a Texas Instruments TXT file..
To save the current state of memory to a file, do the following:
- Selects the start address and number of bytes to save by editing the Start Address and Size fields in the memory window tool bar.
- Right click the main memory display.
- From the popup memu, select Save As then select the format from the submenu.
Exporting memory
To export the current state of memory to a binary editor, do the following:
- Selects the start address and number of bytes to save by editing the Start Address and Size fields in the memory window tool bar.
- Right click the main memory display.
- From the popup memu, select Export to Binary Editor.
Note that subsequent modifications in the binary editor will not modify memory in the target.