pyftdi icon indicating copy to clipboard operation
pyftdi copied to clipboard

When opening MPSSE interface, debug/tracer params are not fully used

Open tacooper opened this issue 4 months ago • 1 comments

(using version 0.56.0)

it looks like the tracer param is not passed through to Ftdi.open_mpsse_from_device() from other calling functions: https://github.com/eblot/pyftdi/blob/main/pyftdi/ftdi.py#L603 https://github.com/eblot/pyftdi/blob/main/pyftdi/ftdi.py#L632

in particular, this is unusable in SpiController.configure() here: https://github.com/eblot/pyftdi/blob/main/pyftdi/spi.py#L432

it also looks like the debug param is not used in this function: https://github.com/eblot/pyftdi/blob/main/pyftdi/ftdi.py#L690

I can try to eventually open a PR when I get some spare time, but wanted to bring this to users' attention.

tacooper avatar Aug 20 '25 22:08 tacooper

Thanks for reporting this issue. The whole API for opening a FTDI connection is getting old and has stacked up too many ways to initialize the device. It would be nice to rewrite the whole API, with wrappers to support the old APIs. Anyway, patches are always welcomed.

eblot avatar Aug 23 '25 11:08 eblot