We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc1ae68 commit 35e5de9Copy full SHA for 35e5de9
pyocd/coresight/dap.py
@@ -69,7 +69,6 @@
69
70
BASEPTR0_VALID_MASK = 0x00000001
71
BASEPTR0_PTR_MASK = 0xfffff000
72
-BASEPTR0_PTR_SHIFT = 12
73
74
ABORT_DAPABORT = 0x00000001
75
ABORT_STKCMPCLR = 0x00000002
@@ -498,7 +497,7 @@ def _check_version(self) -> None:
498
497
baseptr0 = self.read_reg(DP_BASEPTR0)
499
valid = (baseptr0 & BASEPTR0_VALID_MASK) != 0
500
if valid:
501
- base = (baseptr0 & BASEPTR0_PTR_MASK) >> BASEPTR0_PTR_SHIFT
+ base = baseptr0 & BASEPTR0_PTR_MASK
502
if self._addr_size > 32:
503
baseptr1 = self.read_reg(DP_BASEPTR1)
504
base |= baseptr1 << 32
0 commit comments