Skip to content

Commit

Permalink
probe: stlink: fix read size for JTAG_GET_BOARD_IDENTIFIERS to 128. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
flit committed Feb 7, 2022
1 parent 4eb314e commit 6a6fa28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyocd/probe/stlink/stlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def get_board_id(self) -> Optional[str]:
if self._jtag_version < self.MIN_JTAG_VERSION_GET_BOARD_IDS[self._hw_version]:
return None
response = self._device.transfer([Commands.JTAG_COMMAND, Commands.JTAG_GET_BOARD_IDENTIFIERS],
readSize=36)
readSize=128)
self._check_status(response[:2])

# Extract and return the board ID. If the ID field consists of all 0 bytes then we didn't
Expand Down

0 comments on commit 6a6fa28

Please sign in to comment.