diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2021-04-06 13:59:14 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-11-20 14:47:04 +0000 |
commit | b973a76d8663dec254084d0d86d93762a2873805 (patch) | |
tree | e76501e0d447693cb6dfbc4f37806f6e5c208fc0 /doc | |
parent | bb78fa10c77411bbdf665c17eac954b7741f2040 (diff) | |
download | riscv-openocd-b973a76d8663dec254084d0d86d93762a2873805.zip riscv-openocd-b973a76d8663dec254084d0d86d93762a2873805.tar.gz riscv-openocd-b973a76d8663dec254084d0d86d93762a2873805.tar.bz2 |
target/arm_adi_v5,arm_dap: introduce multidrop_targetsel and its configuration
Add multidrop_targetsel to struct adiv5_dap.
Add option -dp-id and -instance-id to dap create command.
Add convenience function dap_is_multidrop()
Change-Id: Ibb93abb5f50b3665c320a10c1497421035762134
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/6140
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/openocd.texi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi index a6da167..85dc432 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -4404,6 +4404,20 @@ A DAP may also provide optional @var{configparams}: register during initial examination and when checking the sticky error bit. This bit is normally checked after setting the CSYSPWRUPREQ bit, but some devices do not set the ack bit until sometime later. + +@item @code{-dp-id} @var{number} +@*Debug port identification number for SWD DPv2 multidrop. +The @var{number} is written to bits 0..27 of DP TARGETSEL during DP selection. +To find the id number of a single connected device read DP TARGETID: +@code{device.dap dpreg 0x24} +Use bits 0..27 of TARGETID. + +@item @code{-instance-id} @var{number} +@*Instance identification number for SWD DPv2 multidrop. +The @var{number} is written to bits 28..31 of DP TARGETSEL during DP selection. +To find the instance number of a single connected device read DP DLPIDR: +@code{device.dap dpreg 0x34} +The instance number is in bits 28..31 of DLPIDR value. @end itemize @end deffn |