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

Wire.end() makes the rp2040 crash or hang somewhere, the reason being slave_th.terminate(); #622

Closed
GuyMaalouf opened this issue Feb 9, 2023 · 1 comment · Fixed by #623

Comments

@GuyMaalouf
Copy link

I am trying to end the I2C to start a new one with a new address (for software addressing purposes). But every time I try to use Wire.end() it just hangs or crashes.

@facchinm
Copy link
Member

facchinm commented Feb 9, 2023

Hi @TheWorkshopByGM ,
which core version are you using? The patch b441a19 is included in 3.5.4 and in fact doesn't set slave to NULL when calling end(), which could create issues if you switch role.
I'll post a PR soon to target the issue, if you could test it it would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants