System hangs on i2c_master_transmit

Energiya
Posts: 9
Joined: Sat Jan 27, 2024 2:22 pm

System hangs on i2c_master_transmit

Postby Energiya » Sun Jun 15, 2025 10:08 am

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.

Energiya
Posts: 9
Joined: Sat Jan 27, 2024 2:22 pm

Re: System hangs on i2c_master_transmit

Postby Energiya » Sun Jun 15, 2025 10:44 am

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 38 times

Who is online

Users browsing this forum: ChatGPT-User, meta-externalagent and 3 guests