From d48161853782439973fc84a1b58b8208d400d28d Mon Sep 17 00:00:00 2001 From: sys64738 Date: Tue, 21 Sep 2021 22:29:13 +0200 Subject: [PATCH] xvc2dap: actually configure jtag --- host/xvc2dap.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/host/xvc2dap.py b/host/xvc2dap.py index 2adc0b1..5ebe7a7 100755 --- a/host/xvc2dap.py +++ b/host/xvc2dap.py @@ -168,6 +168,8 @@ def xvc2dap_do(args: Any) -> int: try: dap.connect() + dap.configure_jtag(args.irlen) + with socket.socket() as sock: sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind((args.address, args.port)) @@ -204,6 +206,11 @@ def main() -> int: help="Connect to the CMSIS-DAP device with the "+\ "specified serial number, defaults to the first device found.") + parser.add_argument('--irlen', type=int, default=None, nargs='+', + help="devices and IRLEN configuration, defaults to "+\ + "CMSIS-DAP-specific value (usually 1 dev, irlen "+\ + "4). Use multiple --irlen args for multiple devices.") + parser.add_argument('address', type=str, default='localhost', nargs='?', help="Host to bind to, for the XVC server, default "+\ "localhost")