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 the 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
||The memory address is not aligned to the 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 an 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 three bytes at address 0x1.
mrd -size h 0x2 2
Read two 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 eight bits (0x1) select the APB-AP and the lower eight bits (0x0) are the address of CSW.
mrd -address-space APR 0x04
Read AHB-AP TAR on Zynq. The higher eight bits (0x0) select the AHB-AP and the lower eight bits (0x4) are the address of TAR.
mrd -address-space AP1 0x80090088
Read address 0x80090088 on DAP APB-AP. AP 1 selects the APB-AP. 0x80090088 on APB-AP corresponds to DBGDSCR of Cortex-A9#0, on Zynq.
mrd -address-space AP0 0xe000d000
Read address 0xe000d000 on DAP AHB-AP. AP 0 selects the AHB-AP. 0xe000d000 on AHB-AP corresponds to QSPI device on Zynq.