jtag/drivers/jlink: allow SWD multidrop
commit4423e05d9df8803e2311e70d5a2ffc55a92e5676
authorTomas Vanek <vanekt@fbl.cz>
Mon, 28 Nov 2022 09:54:48 +0000 (28 10:54 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 28 Jan 2023 15:56:05 +0000 (28 15:56 +0000)
treec69b82175562c008d04698e7d9efc8358c6fdb3a
parent227577ba7616ca129790090e1101b503f7b9cdb7
jtag/drivers/jlink: allow SWD multidrop

SW-DPv2 and SWJ-DPv2 devices do not reply to DP_TARGETSEL write cmd.

Ignore the received ACK after TARGETSEL write.

While on it, use swd_ack_to_error_code() for unified error code
translation of the received ACK value for all other commands.

Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Change-Id: If978c88c8496e31581175385e59c32faebfd20aa
Reviewed-on: https://review.openocd.org/c/openocd/+/7383
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: zapb <dev@zapb.de>
src/jtag/drivers/jlink.c