The Memory windows show the contents of the connected target's memory areas.

To activate the first Memory window:

There are four memory window in total and you can display other memory windows similarly.

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 to display. You can specify the start address and size using debugger expressions, which enables you to position the memory display at the start address of a variable or to use a value in a register. You can also specify whether 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. Memory windows update each time your program stops on a breakpoint after a or single step, and whenever you traverse the call stack. If any values that were previously displayed have changed, they are highlighted in red.

Memory window user interface

The Memory window has a toolbar and a main data display.

Button Description
Address Start address to display (a debugger expression).
Size Number of bytes to display (a debugger expression).
Select binary display.
Select octal display.
Select unsigned decimal display.
Select signed decimal display.
Select hexadecimal display.
Select byte display, which 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 commands

The following operations are available by left-clicking 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 entering 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.

Shortcut menu commands

The shortcut menu contains the following commands:

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, the default being 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 Binary File, Motorola S-Record File, Intel Hex File, TI Hex File, and Hex File.
Load From Load the current Memory window from a file. Supported file formats are Binary File, Motorola S-Record File, Intel Hex File, TI Hex File, and Hex File.

Using the memory window

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 specify how many columns to display.

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.

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:
To export the current state of memory to a binary editor:

Note that subsequent modifications in the binary editor will not modify memory in the target.