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

Freeze on RasPi 4 when importing board #943

Open
dlayne-i2 opened this issue Feb 18, 2025 · 0 comments
Open

Freeze on RasPi 4 when importing board #943

dlayne-i2 opened this issue Feb 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@dlayne-i2
Copy link

Board Name

Raspberry Pi 4

Steps

Hi,

I am encountering the exact same issue that another user encountered here: #563

I have an adafruit MCP2221A board that I am controlling via a small Python script. Everything works fine on windows. However, when running on the Pi 4, the entire python runtime hangs when importing board. The hang lasts indefinitely, but if I disconnect the MCP2221 while the issue is occurring, then I get an OSError: read error and the Python runtime exits

I have traced this hang down to a call to _hid_xfer on line 85, which is being called from gp_set_mode which is called from init in mcp2221.py

Note some important details:
-This MCP2221 has been converted to 5V logic level from the base 3.3V. I have a second board which is still at 3.3V, and this one works just fine on the Pi. It is only the board has been converted to 5V that fails (though both boards work fine on a windows machine)
-I went through the setup guide and all sanity checks pass. The board is identified properly if I list USB devices

Unfortunately for the project I am working on I require the 5V logic level (the DAC is being used to drive a power supply to dim some LEDs), so I need to get the 5V board working properly when connected to the RasPi 4.

Thanks

Description

No response

Additional information

No response

@dlayne-i2 dlayne-i2 added the bug Something isn't working label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant