mrd [options] <address> [num]
<num> data values from the
active target's memory address specified by
||Overwrite access protection. By default accesses to reserved and invalid address ranges are blocked.|
||Return a Tcl list of values, instead of displaying the result on console.|
||Return data read from the target in binary format.|
||Write binary data read from the target to
||Access specified memory space instead default
memory space of current target. For Arm DAP
targets, address spaces DPR, APR and AP
||Memory address is not aligned to access size, before performing a read operation. Support for unaligned accesses is target architecture dependent. If this option is not specified, addresses are automatically aligned to access size.|
- Select a APU target to access Arm DAP and MEM-AP address space.
Memory addresses and data in requested format, if successful. Error string, if the target memory cannot be read.
Read a word at 0x0.
mrd 0x0 10
Read 10 words at 0x0.
mrd -value 0x0 10
Read 10 words at 0x0 and return a Tcl list of values.
mrd -size b 0x1 3
Read 3 bytes at address 0x1.
mrd -size h 0x2 2
Read 2 half-words at address 0x2.
mrd -bin -file mem.bin 0 100
Read 100 words at address 0x0 and write the binary data to mem.bin.
mrd -address-space APR 0x100
Read APB-AP CSW on Zynq. The higher 8 bits (0x1) select the APB-AP and lower 8 bits (0x0) is the address of CSW.
mrd -address-space APR 0x04
Read AHB-AP TAR on Zynq. The higher 8 bits (0x0) select the AHB-AP and lower 8 bits (0x4) is the address of TAR.
mrd -address-space AP1 0x80090088
Read address 0x80090088 on DAP APB-AP. 0x80090088 corresponds to DBGDSCR register of Cortex-A9#0, on Zynq AP 1 selects the APB-AP.
mrd -address-space AP0 0xe000d000
Read address 0xe000d000 on DAP AHB-AP. 0xe000d000 corresponds to QSPI device on Zynq AP 0 selects the AHB-AP.