Page 1 of 1

System hangs on i2c_master_transmit

Posted: Sun Jun 15, 2025 10:08 am
by Energiya
Hello,
I have got system on ESP32S3. I use I2c line. Everything works fine on ESP-IDF v5.3.1 . I have just upgraded the system to ESP-IDF v5.4.1 and my app stopped working. I have got no error. Whole system hangs on i2c_master_transmit. I setup many registers. When I execute function i2c_master_transmit, it works 1-10 times ok and then hangs. The number of times i2c_master_transmit runs ok is random but no more than 10 times.

Re: System hangs on i2c_master_transmit

Posted: Sun Jun 15, 2025 10:44 am
by Energiya
I have resolved it by myself. There is bug in i2c_master.c file.
i2c_hal_master_set_scl_timeout_val must be above I2C_CLOCK_SRC_ATOMIC
2025-06-15_12-33.png
2025-06-15_12-33.png (205.61 KiB) Viewed 39 times