-
Notifications
You must be signed in to change notification settings - Fork 7k
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
New IDF 5.2.1 i2c driver does not detect not attached device (IDFGH-12367) #13398
Comments
@pggh Yes, no device connected to bus is allowed now..... Why you want to send data even there is no device? |
@mythbuster5 The device is connected externally. Or it may be not connected, in which case the write should fail. |
@pggh ok, I will set this behavior as a flag let you choose it fails or not. |
@mythbuster5 I can't think of a scenario when a device the does not ACK a write (address or data) should not be detectable. |
@pggh There indeed a scenario some user asks not return error code in old driver when a devie is not connected to bus. I guess it maybe they only want to say wave on bus? I don't know. You are not the only person ask to return err code when nack is detected. I'm considering to add this back. It's not complicated, only few lines changes. Maybe several days later, it can be on github. |
…_probe issue, and probe might failed. Fixed I2C cannot return err code when nack detected Closes espressif#13213, Closes espressif#12929, Closes espressif#13398,
Answers checklist.
IDF version.
5.2.1
Espressif SoC revision.
ESP32S3
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
own
Power Supply used.
External 5V
What is the expected behavior?
Accessing a not attached device causes i2c_master_transmit/i2c_master_receive/i2c_master_transmit_receive to fail.
What is the actual behavior?
Transfer continues with write/read even when no device is attached to the bus that would ACK the device write address.
The i2c_master_* functions return ES_OK.
Steps to reproduce.
init:
Debug Logs.
No response
More Information.
Because the new driver has so many bugs, I did not investigate the details.
The text was updated successfully, but these errors were encountered: