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

ESP32-I2C Occasionally Invalid Readings (IDFGH-14482) #15252

Open
3 tasks done
elecrain opened this issue Jan 22, 2025 · 6 comments
Open
3 tasks done

ESP32-I2C Occasionally Invalid Readings (IDFGH-14482) #15252

elecrain opened this issue Jan 22, 2025 · 6 comments
Assignees
Labels
Status: Opened Issue is new

Comments

@elecrain
Copy link

elecrain commented Jan 22, 2025

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

For a project, I'm using an RTC IC with I2C. Sometimes, esp reads wrong values from registers. I've made a test with logic analyzer and osciloscope and esp logs. Evertime esp makes a reading, it prints out the 7 register. When the problem occurs, oscilloscope and logic anayzer matches out but esp prints are different. Esp prints out that it reads 1 byte different.

This problem only occurs in every 3-5 Hours. What might be the reason ?

The code only uses i2c_master_write_read_device function for reading.

Also notice, everytime this problem occurs, I2C structure misses one byte, and fills it with same as either previous or next byte.

Image

@github-actions github-actions bot changed the title ESP-I2C Occasionally Invalid Readings ESP-I2C Occasionally Invalid Readings (IDFGH-14482) Jan 22, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jan 22, 2025
@mythbuster5
Copy link
Collaborator

esp32?

@elecrain
Copy link
Author

elecrain commented Jan 22, 2025

Yes, I'm using ESP32-WROVER-E.

As addition, SDA Pin is GPIO-0 and SCL Pin is GPIO-32.

@elecrain elecrain changed the title ESP-I2C Occasionally Invalid Readings (IDFGH-14482) ESP32-I2C Occasionally Invalid Readings (IDFGH-14482) Jan 22, 2025
@mythbuster5
Copy link
Collaborator

I guess you encounter the same issue with #12860 please try patch there,.

@elecrain
Copy link
Author

Yes, it looks like we have the same issue with #12860. I've made the code update on source file and restarted the test process. I will be updating here if the problem persist to continue. Thanks!

@mythbuster5
Copy link
Collaborator

Any result?

@elecrain
Copy link
Author

Yesterday, I've had a problem with test setup, I've started to testing today and its being running for 3 hours with no problem. But i will be keep testing for at least a couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

3 participants