target/arm_adi_v5: add command "dpreg"
For very low level debug or development around DAP, it is useful to have direct access to DP registers. Add command "dpreg" by mimic the syntax of the existing "apreg" command: $dap_name dpreg reg [value] Change-Id: Ic4ab451eb5e74453133adee61050b4c6f656ffa3 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/4612 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
committed by
Tomas Vanek
parent
d92773b205
commit
6738e447c5
@@ -4087,6 +4087,18 @@ or set a new value @var{value}.
|
||||
Select AP @var{num}, defaulting to 0.
|
||||
@end deffn
|
||||
|
||||
@deffn Command {$dap_name dpreg} reg [value]
|
||||
Displays the content of DP register at address @var{reg}, or set it to a new
|
||||
value @var{value}.
|
||||
|
||||
In case of SWD, @var{reg} is a value in packed format
|
||||
@math{dpbanksel << 4 | addr} and assumes values 0, 4, 8 ... 0xfc.
|
||||
In case of JTAG it only assumes values 0, 4, 8 and 0xc.
|
||||
|
||||
@emph{Note:} Consider using @command{poll off} to avoid any disturbing
|
||||
background activity by OpenOCD while you are operating at such low-level.
|
||||
@end deffn
|
||||
|
||||
@deffn Command {$dap_name baseaddr} [num]
|
||||
Displays debug base address from MEM-AP @var{num},
|
||||
defaulting to the currently selected AP.
|
||||
|
||||
Reference in New Issue
Block a user