espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.72k stars 7.3k forks source link

Docs and technical reference manual inconsistent for clock stretching timeout on ESP32-C3 (IDFGH-9276) #10659

Open TheButlah opened 1 year ago

TheButlah commented 1 year ago

Answers checklist.

General issue report

In https://github.com/esp-rs/esp-hal/issues/352 I have been working on delving into esp-idf's implementation of clock stretching.

Is I2C_TIME_OUT_VALUE linear or exponential? Is the technical reference correct that its linear?

If it is exponential, the docs for i2c_set_timeout() should be changed, and if its linear, the docs for i2c_ll_set_tout() should be changed.

TheButlah commented 1 year ago

This issue has been marked as done - what was the resolution? @mythbuster5

mythbuster5 commented 11 months ago

Yeah.. the docs of i2c_ll_set_tout should be changed. It's linear.

TheButlah commented 11 months ago

We still have contradicting evidence. According to this experiment, i2c_ll_set_tout and I2C_TIME_OUT_VALUE is exponential, and the TRM is wrong.