| |||
Home > DS-5 Debugger commands > DS-5 Debugger commands listed in alphabetical order > memory |
This command defines a memory region.
mem
orystart_address
{ end_address
| +size} [attributes
]...
Where:
start_address
Specifies the start address for the region.
end_address
Specifies the inclusive end address for the region.
You can use 0x0
as a shortcut to represent the
end of the address space.
size
Specifies the size of the region.
attributes
Specifies additional attributes:
access_mode
Specifies the access mode for the region:
na
no access
ro
read-only
wo
write-only
rw
read/write. This is the default.
width
Specifies the access width:
8
8-bit
16
16-bit
32
32-bit
64
64-bit.
It is only necessary to specify a specific access width where the memory region is sensitive to this, for example, when accessing some peripherals.
If no
is
specified then the debugger uses any available access width and
generally provides the highest performance.width
bp
| nobp
Controls whether or not software breakpoints can
be set in the region. bp
is the default.
hbp
| nohbp
Controls whether or not hardware breakpoints can
be set in the region. hbp
is the default.
cache
| nocache
Controls whether the debugger can cache data read from the memory region. Enabling the caching of memory can improve debugger performance. Memory regions that can be modified by external sources should not be cached by the debugger. For example volatile peripherals.
nocache
is the default.
verify
| noverify
Controls whether or not a write operation must verify
the value written by reading the value back and comparing it to
the value written. The verify
option also requires
the rw
attribute to be specified so that the verify
operation to be performed. ARM recommends that you mark areas of
memory containing peripherals as noverify
, because
some peripheral registers are volatile such that reading their value
changes their contents as a side-effect.
verify
is the default.