Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add raw JTAG support #86

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Rename jtag_rawrw -> jtag_raw_rw, fix style issue
  • Loading branch information
colinoflynn committed Mar 1, 2021
commit 2127ed62eaefc5f3cfda6422de82e9ab5511aa5b
4 changes: 2 additions & 2 deletions pylink/jlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -5199,7 +5199,7 @@ def cp15_register_write(self, cr_n, op_1, cr_m, op_2, value):
###############################################################################

@interface_required(enums.JLinkInterfaces.JTAG)
def jtag_rawrw(self, tdo, tms, numbits=None):
def jtag_raw_rw(self, tdo, tms, numbits=None):
"""Writes a list of raw bits to TDO+TMS, returns TDI input.

Args:
Expand All @@ -5218,7 +5218,7 @@ def jtag_rawrw(self, tdo, tms, numbits=None):
buf_size = len(tdo)

if numbits is None:
numbits = len(tdo)*8
numbits = len(tdo) * 8

tdobuf = (ctypes.c_ubyte * buf_size)(*bytearray(tdo))
tmsbuf = (ctypes.c_ubyte * buf_size)(*bytearray(tms))
Expand Down