Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions pyocd/coresight/dap.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@

BASEPTR0_VALID_MASK = 0x00000001
BASEPTR0_PTR_MASK = 0xfffff000
BASEPTR0_PTR_SHIFT = 12

ABORT_DAPABORT = 0x00000001
ABORT_STKCMPCLR = 0x00000002
Expand Down Expand Up @@ -498,7 +497,7 @@ def _check_version(self) -> None:
baseptr0 = self.read_reg(DP_BASEPTR0)
valid = (baseptr0 & BASEPTR0_VALID_MASK) != 0
if valid:
base = (baseptr0 & BASEPTR0_PTR_MASK) >> BASEPTR0_PTR_SHIFT
base = baseptr0 & BASEPTR0_PTR_MASK
if self._addr_size > 32:
baseptr1 = self.read_reg(DP_BASEPTR1)
base |= baseptr1 << 32
Expand Down
Loading