You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to use PyFTDI version 0.52.0 along with pyusb 1.1.1 and pyserial 3.5 to communicate with a FT2232H(Q) in JTAG mode. However, I encountered an issue when attempting to configure the JTAG interface using the configure() method provided by the JtagEngine class. The following traceback is raised:
Traceback (most recent call last): File "./jtag-test.py", line 14, in <module> jtag.configure(interface) File "/usr/local/lib/python3.7/dist-packages/pyftdi/jtag.py", line 451, in configure self._ctrl.configure(url) File "/usr/local/lib/python3.7/dist-packages/pyftdi/jtag.py", line 211, in configure url, direction=self.direction, frequency=self._frequency) File "/usr/local/lib/python3.7/dist-packages/pyftdi/ftdi.py", line 645, in open_mpsse_from_url devdesc, interface = self.get_identifiers(url) File "/usr/local/lib/python3.7/dist-packages/pyftdi/ftdi.py", line 421, in get_identifiers cls.DEFAULT_VENDOR) File "/usr/local/lib/python3.7/dist-packages/pyftdi/usbtools.py", line 318, in parse_url urlparts = urlsplit(urlstr) File "/usr/lib/python3.7/urllib/parse.py", line 418, in urlsplit url, scheme, _coerce_result = _coerce_args(url, scheme) File "/usr/lib/python3.7/urllib/parse.py", line 123, in _coerce_args return _decode_args(args) + (_encode_result,) File "/usr/lib/python3.7/urllib/parse.py", line 107, in _decode_args return tuple(x.decode(encoding, errors) if x else '' for x in args) File "/usr/lib/python3.7/urllib/parse.py", line 107, in <genexpr> return tuple(x.decode(encoding, errors) if x else '' for x in args) AttributeError: 'Ftdi' object has no attribute 'decode'
This is my code:
#!/usr/bin/env python3
import pyftdi from pyftdi import ftdi from pyftdi.jtag import JtagEngine
I am unsure how to resolve this issue and would appreciate any insights or suggestions on how to properly use the JTAG functionalities provided by PyFTDI with my current library versions. Thank you in advance for your help!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am currently trying to use PyFTDI version 0.52.0 along with pyusb 1.1.1 and pyserial 3.5 to communicate with a FT2232H(Q) in JTAG mode. However, I encountered an issue when attempting to configure the JTAG interface using the configure() method provided by the JtagEngine class. The following traceback is raised:
Traceback (most recent call last): File "./jtag-test.py", line 14, in <module> jtag.configure(interface) File "/usr/local/lib/python3.7/dist-packages/pyftdi/jtag.py", line 451, in configure self._ctrl.configure(url) File "/usr/local/lib/python3.7/dist-packages/pyftdi/jtag.py", line 211, in configure url, direction=self.direction, frequency=self._frequency) File "/usr/local/lib/python3.7/dist-packages/pyftdi/ftdi.py", line 645, in open_mpsse_from_url devdesc, interface = self.get_identifiers(url) File "/usr/local/lib/python3.7/dist-packages/pyftdi/ftdi.py", line 421, in get_identifiers cls.DEFAULT_VENDOR) File "/usr/local/lib/python3.7/dist-packages/pyftdi/usbtools.py", line 318, in parse_url urlparts = urlsplit(urlstr) File "/usr/lib/python3.7/urllib/parse.py", line 418, in urlsplit url, scheme, _coerce_result = _coerce_args(url, scheme) File "/usr/lib/python3.7/urllib/parse.py", line 123, in _coerce_args return _decode_args(args) + (_encode_result,) File "/usr/lib/python3.7/urllib/parse.py", line 107, in _decode_args return tuple(x.decode(encoding, errors) if x else '' for x in args) File "/usr/lib/python3.7/urllib/parse.py", line 107, in <genexpr> return tuple(x.decode(encoding, errors) if x else '' for x in args) AttributeError: 'Ftdi' object has no attribute 'decode'
This is my code:
#!/usr/bin/env python3
import pyftdi
from pyftdi import ftdi
from pyftdi.jtag import JtagEngine
jtag = JtagEngine()
url = 'ftdi://ftdi:2232:210328A4111A/1'
interface = pyftdi.ftdi.Ftdi.create_from_url(url)
jtag.configure(interface)
I am unsure how to resolve this issue and would appreciate any insights or suggestions on how to properly use the JTAG functionalities provided by PyFTDI with my current library versions. Thank you in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions