Closed xsherlockpl closed 3 years ago
Thank you very much. I haven't had a similar issue, but mcp2221.Reset may have a problem. mcp2221.Reset is a "Hacks" to release by resetting MCP2221A when the connection to I2C fails and it stops at Read. It's not working properly as a HID driver, so you might want to comment it out. It will be removed in future improvements.
Also, please tell me the Python version in detail. I have certainly not tried the new version. I didn't notice that Python had reached 3.9. It's changing faster than it was in the Python2 era.
I slept with the problem and now it is obvious that the problem is a Reset() function on my setup. It just crashes the the board.
I use Ubuntu 20.10 Python 3.8.6 (default, Jan 27 2021, 15:42:20) And that little board from Adafruit MCP2221A Breakout connected over USB-C https://www.adafruit.com/product/4471
Without Reset() it works great and I have not seen a crash yet.
Dear, I'm trying to run the example but it fails.
It gets stuck after printing RESET for quite a long time. and then crashes
I can see the device (adafruit board) is connected to the USB.
is that incompatibility with python3?
I found that post that might be related to the issue https://github.com/trezor/cython-hidapi/issues/86
My output from enumerate is the following:
So i accually can open path to device
and if I hard code device path into the PyMCP2221A library itself AND will commnet out mcp2221.Reset() It will run! but mcp2221.Reset() changes the usb path every time so that is not an option
What can be causing that?
TIA