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 and 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 the debugger locates to source code. So it will update 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.
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?.
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, do the following:
To export the current state of memory to a binary editor, do the following:
Note that subsequent modifications in the binary editor will not modify memory in the target.