forked from auracaster/openocd
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>
This commit is contained in:
committed by
Antonio Borneo
parent
bb78fa10c7
commit
b973a76d86
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user