Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix I2C slave communication stuck #1018

Merged
merged 1 commit into from
Feb 4, 2025
Merged

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
@pennam pennam merged commit 540c1cd into arduino:main Feb 4, 2025
11 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants