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

fix I2C slave communication stuck #1018

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maidnl
Copy link
Contributor

@maidnl maidnl commented Jan 23, 2025

using I2C as slave leads to I2C bus stuck and no more communication possible, this seems to be the same than issue #448
This strange behavior has been observed on Nordic nRF52840 is due to an unprotected access to rxBuffer in I2C slave implementation
This PR protects access to rxBuffer using core util critical section enter / exit function

@maidnl maidnl requested a review from pennam January 23, 2025 10:28
libraries/Wire/Wire.cpp Outdated Show resolved Hide resolved
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 this pull request may close these issues.

2 participants