diff --git a/pyocd/probe/pydapaccess/cmsis_dap_core.py b/pyocd/probe/pydapaccess/cmsis_dap_core.py index 1dce6e4da..9dbd45a68 100644 --- a/pyocd/probe/pydapaccess/cmsis_dap_core.py +++ b/pyocd/probe/pydapaccess/cmsis_dap_core.py @@ -1,5 +1,5 @@ # pyOCD debugger -# Copyright (c) 2006-2013,2018-2021,2025 Arm Limited +# Copyright (c) 2006-2013,2018-2021,2025,2026 Arm Limited # Copyright (c) 2021 Chris Reed # Copyright (c) 2022 Toshiba Electronic Devices & Storage Corporation # Copyright (c) 2025 Norbert Hipfl @@ -486,7 +486,8 @@ def jtag_sequence(self, cycles, tms, read_tdo, tdi): raise DAPAccessIntf.CommandError("DAP_JTAG_SEQUENCE failed") if len(resp) > 2: - return resp[2:] + return int.from_bytes(bytes(resp[2:]), byteorder="little") + return None def jtag_configure(self, devices_irlen=None): # Default to a single device with an IRLEN of 4.