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-S3 i2c_master_write_to_device timeout is incorrect (IDFGH-10347) #11605

Open
3 tasks done
readmodifywrite opened this issue Jun 6, 2023 · 0 comments
Open
3 tasks done
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@readmodifywrite
Copy link

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.

IDF version.

ca8bf60

Operating System used.

Linux

How did you build your project?

Command line with Make

If you are using Windows, please specify command line type.

None

Development Kit.

Custom board

Power Supply used.

External 3.3V

What is the expected behavior?

I'm using i2c_master_write_to_device() with a 50 millisecond timeout:

i2c_master_write_to_device( I2C_PORT, dev_addr, (uint8_t *)src, len, pdMS_TO_TICKS(50) );

When the I2C fails (such as when there is no I2C chip connected on that address), the actual timeout is almost 1 second exactly. The timeout ticks setting seems to be ignored, and is in any case completely wrong.

What is the actual behavior?

A 50 ms timeout setting should result in a 50 ms timeout, not 1000 ms.

Steps to reproduce.

Use i2c_master_write_to_device with a timeout and an address that isn't present on the bus. Time it.

Debug Logs.

No response

More Information.

No response

@readmodifywrite readmodifywrite added the Type: Bug bugs in IDF label Jun 6, 2023
@github-actions github-actions bot changed the title ESP32-S3 i2c_master_write_to_device timeout is incorrect ESP32-S3 i2c_master_write_to_device timeout is incorrect (IDFGH-10347) Jun 6, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

2 participants